Assertion in genericServiceTypePtr() when there is no service type installed

Jarosław Staniek js at iidea.pl
Thu Jun 14 18:22:09 BST 2007


I have installed /opt/kde4/share/kde4/servicetypes/kexihandler.desktop
by cmake from http://websvn.kde.org/trunk/koffice/kexi/data/

But received this before crash:

kio (KTrader): KMimeTypeTrader::weightedOffers( Kexi/Handler, Application )
kio (KTrader): WARNING: KMimeTypeTrader: mimeType Kexi/Handler not found
kio (KTrader): query for mimeType Kexi/Handler, Application : returning 0 
offers

Should application crash where there is no service type installed (or found)?

the backtrace:
---
#15 0x400992ff in qFatal (msg=0x4018e61c "ASSERT: \"%s\" in file %s, line %d")
    at qglobal.cpp:2376
#16 0x40098b32 in qt_assert (assertion=0x405475fe "genericServiceTypePtr", 
    file=0x405474e8 
"/home/kde-devel/kde/src/KDE/kdelibs/kdecore/services/kservicetypeprofile.cpp", 
line=261) at qglobal.cpp:1904
#17 0x404bc11f in KServiceTypeProfile::sortMimeTypeOffers (list=@0xbfffe6d0, 
    mimeType=@0xbfffe880, genericServiceType=@0xbfffe860)
    
at /home/kde-devel/kde/src/KDE/kdelibs/kdecore/services/kservicetypeprofile.cpp:261
#18 0x404abe95 in KMimeTypeTrader::weightedOffers (this=0x81972c8, 
    mimeType=@0xbfffe880, genericServiceType=@0xbfffe860)
    
at /home/kde-devel/kde/src/KDE/kdelibs/kdecore/services/kmimetypetrader.cpp:153
#19 0x404abed8 in KMimeTypeTrader::query (this=0x81972c8, 
    mimeType=@0xbfffe880, genericServiceType=@0xbfffe860, 
    constraint=@0xbfffe850)
    
at /home/kde-devel/kde/src/KDE/kdelibs/kdecore/services/kmimetypetrader.cpp:161

-- 
regards / pozdrawiam, Jaroslaw Staniek
 Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
 Kexi & KOffice: http://www.kexi-project.org, http://www.koffice.org
 KDE3 & KDE4 Libraries for MS Windows: http://kdelibs.com, http://www.kde.org




More information about the kde-core-devel mailing list