[KPhotoAlbum] crash when calling external tools

vincent delft vincent_delft at yahoo.com
Mon Nov 12 15:22:48 GMT 2007


Here you have:
"
[vi at myhost fapws2]$ kphotoalbum
kphotoalbum: ERROR: appInfos():
kphotoalbum:  types: (image/jpeg)
kphotoalbum: ERROR:   mime: image/jpeg, offer:
Kuickshow
kphotoalbum: ERROR:   mime: image/jpeg, offer: KView
kphotoalbum: ERROR:   mime: image/jpeg, offer:
KIconEdit
kphotoalbum: ERROR:   mime: image/jpeg, offer: Krita
kphotoalbum: ERROR:   mime: image/jpeg, offer:
KolourPaint
kphotoalbum: ERROR:   mime: image/jpeg, offer: GNU
Image Manipulation Program
kphotoalbum: ERROR:   mime: image/jpeg, offer:
showFoto
kphotoalbum: ERROR: appInfos():
kphotoalbum:  types: (image/jpeg)
kphotoalbum: ERROR:   mime: image/jpeg, offer:
Kuickshow
kphotoalbum: ERROR:   mime: image/jpeg, offer: KView
kphotoalbum: ERROR:   mime: image/jpeg, offer:
KIconEdit
kphotoalbum: ERROR:   mime: image/jpeg, offer: Krita
kphotoalbum: ERROR:   mime: image/jpeg, offer:
KolourPaint
kphotoalbum: ERROR:   mime: image/jpeg, offer: GNU
Image Manipulation Program
kphotoalbum: ERROR:   mime: image/jpeg, offer:
showFoto
kio (KMimeType): WARNING: KServiceType::offers :
servicetype  not found
kphotoalbum: ERROR: id: -103, name: '&showFoto',
mimeType: '', offers.count(): 0
ASSERT: "offers.count() == 1" in ExternalPopup.cpp
(78)
KCrash: Application 'kphotoalbum' crashing...
"



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

> vincent delft wrote:
> > Here after the output I've got when I try to open
> the
> > picture with showfoto or with kuickshow. 
> 
> OK, please apply this new attachment to a fresh
> checkout/unpacked
> tarball and report back yet again.
> 
> Cheers,
> -jkt
> 
> -- 
> cd /local/pub && more beer > /dev/mouth
> > Index: MainWindow/ExternalPopup.cpp
>
===================================================================
> --- MainWindow/ExternalPopup.cpp	(revision 734030)
> +++ 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));
> +    kdError() << "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 )
> +        kdError() << " type: " << (**it).type() <<
> ", name: " << (**it).name() << endl;
>      Q_ASSERT( offers.count() == 1 );
>      KService::Ptr ptr = offers.first();
>      KURL::List lst;
> @@ -110,10 +114,12 @@
>  MainWindow::OfferType
> MainWindow::ExternalPopup::appInfos(const
> QStringList& files )
>  {
>      StringSet types = mimeTypes( files );
> +    kdError() << "appInfos():" << endl << " types:
> " << types.toList() << endl;
>      OfferType res;
>      for ( StringSet::const_iterator mimeTypeIt =
> types.begin(); mimeTypeIt != types.end();
> ++mimeTypeIt ) {
>          KTrader::OfferList offers =
> KTrader::self()->query( *mimeTypeIt,
> QString::fromLatin1("Type == 'Application'"));
>          for(KTrader::OfferList::Iterator offerIt =
> offers.begin(); offerIt != offers.end(); ++offerIt)
> {
> +            kdError() << "  mime: " << *mimeTypeIt
> << ", offer: " << (**offerIt).name() << endl;
>              res.insert( qMakePair(
> (*offerIt)->name(),
> (*offerIt)->pixmap(KIcon::Toolbar) ) );
>             
> _appToMimeTypeMap[(*offerIt)->name()].insert(
> *mimeTypeIt );
>          }
> > _______________________________________________
> KPhotoAlbum mailing list
> KPhotoAlbum at kdab.net
> http://mail.kdab.net/mailman/listinfo/kphotoalbum
> 


__________________________________________________
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