[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Problem when embedding ReadOnly parts
From:       Björn Sahlström <kbjorn () users ! sourceforge ! net>
Date:       2002-07-16 14:19:26
[Download RAW message or body]

In KBear I've added the ability to open files internally using KParts and this 
works very well, with one exception ! When clicking on a mp3 file KBear 
crashes, if I set to use Nescape plugin it works but if I want to use 
Kaboodle it crash, all other mimetypes seems to work though ?. 
I create a ReadOnly part by using 
ComponentFactory::createPartInstanceFromQuery<KParts::ReadOnlyPart>

I the open the part with openURL

see backtrace below:

[New Thread 1024 (LWP 21562)]
0x410d4409 in wait4 () from /lib/libc.so.6
#0  0x410d4409 in wait4 () from /lib/libc.so.6
#1  0x4115398c in __check_rhosts_file () from /lib/libc.so.6
#2  0x40f9cd56 in waitpid (pid=21565, stat_loc=0x0, options=0)
    at wrapsyscall.c:172
#3  0x406a8c07 in KCrash::defaultCrashHandler (sig=11) at kcrash.cpp:224
#4  0x40f9a5bb in pthread_sighandler (signo=11, ctx=
      {gs = 0, __gsh = 0, fs = 0, __fsh = 0, es = 43, __esh = 0, ds = 43, 
__dsh = 49168, edi = 136642688, esi = 3221218752, ebp = 3221218440, esp = 
3221218440, ebx = 1103285692, edx = 136642896, ecx = 1, eax = 0, trapno = 14, 
err = 4, eip = 1080782086, cs = 35, __csh = 0, eflags = 66118, esp_at_signal 
= 3221218440, ss = 43, __ssh = 0, fpstate = 0xbfffe208, oldmask = 2147483648, 
cr2 = 20})
    at signals.c:97
#5  0x41047478 in killpg () from /lib/libc.so.6
#6  0x41c248df in KaboodleFactory::~KaboodleFactory (this=0x8250150, 
    __in_chrg=3) at kaboodle_factory.cpp:42
#7  0x406b86de in KLibrary::~KLibrary (this=0x8250080, __in_chrg=3)
    at klibloader.cpp:136
#8  0x406b9e32 in KLibLoader::close_pending (this=0x80f77d0, wrap=0x8262db0)
    at klibloader.cpp:515
#9  0x406b9bd4 in KLibLoader::unloadLibrary (this=0x80f77d0, 
    libname=0x82aa618 "libkaboodlepart") at klibloader.cpp:474
#10 0x406b8be3 in KLibrary::unload (this=0x8250080) at klibloader.cpp:196
#11 0x418aa296 in KParts::ReadOnlyPart * 
KParts::ComponentFactory::createPartInstanceFromLibrary<KParts::ReadOnlyPart> 
(
    libraryName=0x827b9c8 "libkaboodlepart", parentWidget=0x826bc88, 
    widgetName=0x418de8d3 "PreviewWidget", parent=0x826bc88, 
    name=0x418de8c7 "PreviewPart", args=@0xbfffe7c0, error=0x0)
    at /opt/kde3/include/kparts/componentfactory.h:180
#12 0x418a9fdc in KParts::ReadOnlyPart * 
KParts::ComponentFactory::createPartInstanceFromService<KParts::ReadOnlyPart> 
(service=@0xbfffe6b0, 
    parentWidget=0x826bc88, widgetName=0x418de8d3 "PreviewWidget", 
    parent=0x826bc88, name=0x418de8c7 "PreviewPart", args=@0xbfffe7c0, 
    error=0x0) at /opt/kde3/include/kparts/componentfactory.h:233
#13 0x418a9ddd in KParts::ReadOnlyPart * 
KParts::ComponentFactory::createPartInstanceFromServices<KParts::ReadOnlyPart, 
QValueListIterator<KSharedPtr<KService> > > (begin=0xbfffe700, 
end=0xbfffe6f0, parentWidget=0x826bc88, 
    widgetName=0x418de8d3 "PreviewWidget", parent=0x826bc88, 
    name=0x418de8c7 "PreviewPart", args=@0xbfffe7c0, error=0x0)
    at /opt/kde3/include/kparts/componentfactory.h:280
#14 0x418a9c4a in KParts::ReadOnlyPart * 
KParts::ComponentFactory::createPartInstanceFromQuery<KParts::ReadOnlyPart> 
(serviceType=@0x81996d0, 
    constraint=@0x804f618, parentWidget=0x826bc88, 
    widgetName=0x418de8d3 "PreviewWidget", parent=0x826bc88, 
    name=0x418de8c7 "PreviewPart", args=@0xbfffe7c0, error=0x0)
    at /opt/kde3/include/kparts/componentfactory.h:363
#15 0x418a60a8 in KBearDirLister::getPreviewPartInternal (this=0x81995a0, 
    mime=@0x81996d0) at kbeardirlister.cpp:122
#16 0x418a62a5 in KBearDirLister::getPreviewPart (this=0x81995a0, 
    url=@0x824686c, parent=0x826bc88) at kbeardirlister.cpp:136
#17 0x418984f5 in KBearFileSysPart::slotOpenFile (this=0x8198868, 
    item=0x8246868) at kbearfilesyspart.cpp:851
#18 0x41898c2a in KBearFileSysPart::slotFileSelected (this=0x8198868, 
    item=0x8246868) at kbearfilesyspart.cpp:930
#19 0x4189ea68 in KBearFileSysPart::qt_invoke (this=0x8198868, _id=64, 
    _o=0xbfffe990) at kbearfilesyspart.moc:356
#20 0x40a0b4fb in QObject::activate_signal (this=0x81d09a8, clist=0x81d1d40, 
    o=0xbfffe990) at kernel/qobject.cpp:2080
-- 
MVH
Björn Sahlström
kbjorn@users.sourceforge.net

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic