Bug 187167

Summary: dolphin crashes when you close the dolphin window before a preview can be generated
Product: [Applications] dolphin Reporter: Ron <linuxed7>
Component: generalAssignee: Peter Penz <peter.penz19>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra, sebastian, trueg
Priority: NOR    
Version: 16.12.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: example of how to reproduce crash

Description Ron 2009-03-14 19:31:16 UTC
Version:           1.2.1 (using KDE 4.2.1)
OS:                Linux
Installed from:    Ubuntu Packages

Unfortunately I can't post the backtrace because none was generated.  When Dolphin crashes it simply states the following.

"This backtrace appears to be of no use.  This is probably because your packages are built in a way which prevents creation of proper backtraces, or the stack frame was seriously corrupted in the crash."

To reproduce the bug open a folder in dolphin containing a number of files.  It doesn't really matter what type of files (text, images, etc).  Click on the file that is closest to the close button (the X) in the top right corner of the window.  This is only necessary so you can quickly move from the file to the close button.  Click on the file to open it and then immediately click on the X to close Dolphin.  Make sure that you close the Dolphin window before the preview can be generated in the Information pane.  I've attached an example in the post below.
Comment 1 Ron 2009-03-14 19:32:00 UTC
Created attachment 32109 [details]
example of how to reproduce crash
Comment 2 Dario Andres 2009-03-14 22:36:41 UTC
You can generate a backtrace if you install the "kdebase-apps-dbg", and "kdelibs5-dbg" packages. Thanks
Comment 3 Ron 2009-03-15 13:06:28 UTC
The debugging packages didn't seem to help.  I installed kdelibs5-dbg and kdebase-dbg.  There doesn't appear to be a package named kdebase-apps-dbg in the Ubuntu repository.  It still states that no backtrace can be generated.  I tried running dolphin using gdb and then reproduced the crash.  I then tried to generate a crash report with "thread apply all backtrace" but still no luck.  The following was displayed using gdb.

dolphin(11751) KFileMetaInfoPrivate::init: KUrl("file:///home/username/Books/txt/003.png.txt")                                                                          
dolphin(11751) MetaDataWidget::setFile: KUrl("file:///home/username/Books/txt/003.png.txt")
QThread: Destroyed while thread is still running
QObject::connect: Cannot connect (null)::finished() to Soprano::Client::ClientConnection::slotThreadFinished()
"/usr/bin/dolphin(11751)" Error in thread 1104632144 : "Invalid iterator ID."
"/usr/bin/dolphin(11751)" Error in thread 1104632144 : "Invalid iterator ID."
"/usr/bin/dolphin(11751)" Error in thread 1104632144 : "Invalid iterator ID."
KCrash: Application 'dolphin' crashing...
sock_file=/home/username/.kde/socket-NAME/kdeinit4__0
QSocketNotifier: Invalid socket 15 and type 'Read', disabling...
QSocketNotifier: Invalid socket 17 and type 'Read', disabling...
QSocketNotifier: Invalid socket 20 and type 'Read', disabling...
QSocketNotifier: Invalid socket 24 and type 'Read', disabling...
dolphin: Fatal IO error: client killed
Fatal Error: Accessed global static 'Solid::DeviceManagerPrivate *globalDeviceManager()' after destruction. Defined at /build/buildd/kde4libs-4.2.1a/solid/solid/devicemanager.cpp:32
Unable to start Dr. Konqi

(gdb) thread apply all backtrace
No registers.
Comment 4 Dario Andres 2009-03-15 13:09:10 UTC
This is already useful:

Fatal Error: Accessed global static 'Solid::DeviceManagerPrivate
*globalDeviceManager()' after destruction. Defined at
/build/buildd/kde4libs-4.2.1a/solid/solid/devicemanager.cpp:32

Thanks
Comment 5 Ron 2009-04-10 10:20:46 UTC
I was able to retrieve a partial backtrace for this bug in KDE 4.2.2.  I'm not sure how much it will help though since it still states that no valid backtrace could be generated.  Any ideas how to install debugging symbols for libQtCore.so.4 and libQtNetwork.so.4 in Kubuntu 8.10?  I've already installed the libqt4-dbg package and there are still a few question marks that appear next to some of the qt4 libraries in the backtrace.

**********BEGIN BACKTRACE**************

This backtrace appears to be of no use.
This is probably because your packages are built in a way which prevents creation of proper backtraces, or the stack frame was seriously corrupted in the crash.

[Thread debugging using libthread_db enabled]
[New Thread 0x7f71738c26f0 (LWP 29180)]
[New Thread 0x42641950 (LWP 29206)]
0x00007f716f51b4b2 in select () from /lib/libc.so.6
[Current thread is 0 (LWP 29180)]

Thread 2 (Thread 0x42641950 (LWP 29206)):
#0  0x00007f716f4e46e1 in nanosleep () from /lib/libc.so.6
#1  0x00007f716f4e4507 in sleep () from /lib/libc.so.6
#2  0x00007f7171a7c3cf in KCrash::startDrKonqi (argv=0x4263ff48, argc=15) at /build/buildd/kde4libs-4.2.2/kdeui/util/kcrash.cpp:412
#3  0x00007f7171a7ccda in KCrash::defaultCrashHandler (sig=11) at /build/buildd/kde4libs-4.2.2/kdeui/util/kcrash.cpp:337
#4  <signal handler called>
#5  0x00007f716ffbf341 in QMutex::lock () from /usr/lib/libQtCore.so.4
#6  0x00007f71720cae75 in ?? () from /usr/lib/libQtNetwork.so.4
#7  0x00007f71720d7b33 in QAbstractSocket::setSocketDescriptor () from /usr/lib/libQtNetwork.so.4
#8  0x00007f71720e3bef in ?? () from /usr/lib/libQtNetwork.so.4
#9  0x00007f71720e44d0 in QLocalSocket::connectToServer () from /usr/lib/libQtNetwork.so.4
#10 0x00007f716d1318fa in Soprano::Client::LocalSocketClientConnection::newConnection (this=0x17a10e0) at /build/buildd/soprano-2.2.2+dfsg.1/server/localsocketclient.cpp:69
#11 0x00007f716d132a62 in Soprano::Client::ClientConnection::socket (this=0x17a10e0) at /build/buildd/soprano-2.2.2+dfsg.1/server/clientconnection.cpp:77
#12 0x00007f716d132bb2 in Soprano::Client::ClientConnection::iteratorClose (this=0x8, id=24714776) at /build/buildd/soprano-2.2.2+dfsg.1/server/clientconnection.cpp:638
#13 0x00007f716d1359d2 in Soprano::Client::ClientModel::closeIterator (this=0x17bb110, id=826095239) at /build/buildd/soprano-2.2.2+dfsg.1/server/clientmodel.cpp:220
#14 0x00007f716d1364ea in Soprano::Client::ClientStatementIteratorBackend::close (this=0x1c60870) at /build/buildd/soprano-2.2.2+dfsg.1/server/clientstatementiteratorbackend.cpp:73
#15 0x00007f71725d8452 in Soprano::Iterator<Soprano::Statement>::next (this=0x1ca7b20) at /build/buildd/soprano-2.2.2+dfsg.1/soprano/iterator.h:245
#16 0x00007f717262f1d7 in Soprano::Util::MutexStatementIteratorBackend::next (this=0x1ca7b00) at /build/buildd/soprano-2.2.2+dfsg.1/soprano/util/mutexstatementiteratorbackend.cpp:44
#17 0x00007f717289d460 in Soprano::Iterator<Soprano::Statement>::next (this=0x42640c00) at /usr/include/soprano/iterator.h:242
#18 0x00007f7172897b41 in Nepomuk::ResourceData::load (this=0x1c40330) at /build/buildd/kde4libs-4.2.2/nepomuk/core/resourcedata.cpp:379
#19 0x00007f71728981f8 in Nepomuk::ResourceData::property (this=0x1c40330, uri=@0x42640f30) at /build/buildd/kde4libs-4.2.2/nepomuk/core/resourcedata.cpp:246
#20 0x00007f71728b0f02 in Nepomuk::Resource::property (this=<value optimized out>, uri=@0x3) at /build/buildd/kde4libs-4.2.2/nepomuk/core/resource.cpp:238
#21 0x00007f71728b1fbb in Nepomuk::Resource::rating (this=0x42641010) at /build/buildd/kde4libs-4.2.2/nepomuk/core/resource.cpp:710
#22 0x0000000000443021 in MetaDataWidget::Private::LoadFilesThread::run (this=0x17fc730) at /build/buildd/kdebase-4.2.2/apps/dolphin/src/metadatawidget.cpp:144
#23 0x00007f716ffc4362 in ?? () from /usr/lib/libQtCore.so.4
#24 0x00007f716cf0c3ea in start_thread () from /lib/libpthread.so.0
#25 0x00007f716f522cbd in clone () from /lib/libc.so.6
#26 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f71738c26f0 (LWP 29180)):
#0  0x00007f716f51b4b2 in select () from /lib/libc.so.6
#1  0x00007f71720e0bc4 in ?? () from /usr/lib/libQtNetwork.so.4
#2  0x00007f71720cc886 in ?? () from /usr/lib/libQtNetwork.so.4
#3  0x00007f71720db11b in QAbstractSocket::waitForReadyRead () from /usr/lib/libQtNetwork.so.4
#4  0x00007f716d132bed in Soprano::Client::ClientConnection::iteratorClose (this=0x17a10e0, id=826095239) at /build/buildd/soprano-2.2.2+dfsg.1/server/clientconnection.cpp:643
#5  0x00007f716d1354aa in ~ClientModel (this=0x17bb110) at /build/buildd/soprano-2.2.2+dfsg.1/server/clientmodel.cpp:46
#6  0x00007f71728a039a in ~QGlobalStaticDeleter (this=0x7f7172adecb8) at /build/buildd/kde4libs-4.2.2/nepomuk/core/nepomukmainmodel.cpp:77
#7  0x00007f716f4726ad in exit () from /lib/libc.so.6
#8  0x00007f716f45a46d in __libc_start_main () from /lib/libc.so.6
#9  0x0000000000421529 in _start ()
#0  0x00007f716f51b4b2 in select () from /lib/libc.so.6
Comment 6 Sebastian Trueg 2009-04-28 16:20:34 UTC

*** This bug has been marked as a duplicate of bug 190165 ***