[KPhotoAlbum] crash when calling external tools

vincent delft vincent_delft at yahoo.com
Wed Nov 7 21:40:30 GMT 2007


Here after all the data I've got.


$ kphotoalbum
kio (KMimeType): WARNING: KServiceType::offers :
servicetype  not found
ASSERT: "offers.count() == 1" in ExternalPopup.cpp
(74)
KCrash: Application 'kphotoalbum' crashing...


here after the backtrace
(no debugging symbols found)
Using host libthread_db library
"/lib/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb6876a40 (LWP 7934)]
[New Thread 0xb64deb90 (LWP 7936)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#6  0xb737ef09 in QString::QString () from
/opt/qt/lib/libqt-mt.so.3
#7  0xb7caf61e in KRun::run () from
/opt/kde/lib/libkio.so.4
#8  0xb7cb049e in KRun::run () from
/opt/kde/lib/libkio.so.4
#9  0x0808e7cb in ?? ()
#10 0x0808e8d7 in ?? ()
#11 0xb70c24f1 in QObject::activate_signal () from
/opt/qt/lib/libqt-mt.so.3
#12 0xb70c3010 in QObject::activate_signal () from
/opt/qt/lib/libqt-mt.so.3
#13 0xb73fafc0 in QPopupMenu::activated () from
/opt/qt/lib/libqt-mt.so.3
#14 0xb71c2082 in QPopupMenu::actSig () from
/opt/qt/lib/libqt-mt.so.3
#15 0xb71c25d8 in QPopupMenu::mouseReleaseEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#16 0xb70f8f04 in QWidget::event () from
/opt/qt/lib/libqt-mt.so.3
#17 0xb7064c9a in QApplication::internalNotify ()
   from /opt/qt/lib/libqt-mt.so.3
#18 0xb7065ab8 in QApplication::notify () from
/opt/qt/lib/libqt-mt.so.3
#19 0xb775d862 in KApplication::notify () from
/opt/kde/lib/libkdecore.so.4
#20 0xb70054eb in QETWidget::translateMouseEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#21 0xb7003896 in QApplication::x11ProcessEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#22 0xb70143ad in QEventLoop::processEvents () from
/opt/qt/lib/libqt-mt.so.3
#23 0xb707b180 in QEventLoop::enterLoop () from
/opt/qt/lib/libqt-mt.so.3
#24 0xb706466f in QApplication::enter_loop () from
/opt/qt/lib/libqt-mt.so.3
#25 0xb71c59e7 in QPopupMenu::exec () from
/opt/qt/lib/libqt-mt.so.3
#26 0x08080390 in ?? ()
#27 0xb70f9200 in QWidget::event () from
/opt/qt/lib/libqt-mt.so.3
#28 0xb71b0762 in QMainWindow::event () from
/opt/qt/lib/libqt-mt.so.3
#29 0xb7064c9a in QApplication::internalNotify ()
   from /opt/qt/lib/libqt-mt.so.3
#30 0xb7065cd2 in QApplication::notify () from
/opt/qt/lib/libqt-mt.so.3
#31 0xb775d862 in KApplication::notify () from
/opt/kde/lib/libkdecore.so.4
#32 0xb70052b5 in QETWidget::translateMouseEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#33 0xb7003896 in QApplication::x11ProcessEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#34 0xb70143ad in QEventLoop::processEvents () from
/opt/qt/lib/libqt-mt.so.3
#35 0xb707b180 in QEventLoop::enterLoop () from
/opt/qt/lib/libqt-mt.so.3
#36 0xb707b016 in QEventLoop::exec () from
/opt/qt/lib/libqt-mt.so.3
#37 0xb70646ff in QApplication::exec () from
/opt/qt/lib/libqt-mt.so.3
#38 0x0807d37a in ?? ()
#39 0xb6a70390 in __libc_start_main () from
/lib/libc.so.6
#40 0x0807cf71 in ?? ()


--- Jan Kundrát <jkt at gentoo.org> wrote:

> vincent delft wrote:
> > I've got the following crash when I rigth-clic on
> a
> > picture and try to open it with showfoto: 
> > "
> > kio (KMimeType): WARNING: KServiceType::offers :
> > servicetype  not found
> > ASSERT: "offers.count() == 1" in ExternalPopup.cpp
> > (74)
> > KCrash: Application 'kphotoalbum' crashing...
> 
> Could you please try the attached patch and report
> back what it prints
> on stderr before the crash?
> 
> My wild guess is that KPA's query for matching
> applications generates
> empty result set, but I'd like to know that for sure
> before fixing.
> 
> Cheers,
> -jkt
> 
> -- 
> cd /local/pub && more beer > /dev/mouth
> > Index: MainWindow/ExternalPopup.cpp
>
===================================================================
> --- MainWindow/ExternalPopup.cpp	(revision 733678)
> +++ MainWindow/ExternalPopup.cpp	(working copy)
> @@ -26,6 +26,7 @@
>  #include <krun.h>
>  #include <klocale.h>
>  #include <kfileitem.h>
> +#include <kdebug.h>
>  
>  void MainWindow::ExternalPopup::populate(
> DB::ImageInfoPtr current, const QStringList&
> imageList )
>  {
> @@ -71,6 +72,9 @@
>  {
>      QString name = text( id );
>      KTrader::OfferList offers =
> KTrader::self()->query(
> *(_appToMimeTypeMap[name].begin()),
> QString::fromLatin1("Type == 'Application' and Name
> == '%1'").arg(name));
> +    kdDebug() << "id: " << id << ", name: '" <<
> name << "', mimeType: '" <<
> *(_appToMimeTypeMap[name].begin()) << "',
> offers.count(): " << offers.count() << endl;
> +    for ( KTrader::OfferList::const_iterator it =
> offers.begin(); it != offers.end(); ++it )
> +        kdDebug() << " type: " << (**it).type() <<
> ", name: " << (**it).name() << endl;
>      Q_ASSERT( offers.count() == 1 );
>      KService::Ptr ptr = offers.first();
>      KURL::List lst;
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Kphotoalbum mailing list