Bug 279569

Summary: Busy device in places panel hangs Dolphin
Product: [Applications] dolphin Reporter: dE <de.techno>
Component: panels: placesAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: afiestas, mail
Priority: NOR    
Version: 1.6.1   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description dE 2011-08-07 06:15:16 UTC
Version:           1.6.1 (using KDE 4.6.4) 
OS:                Linux

When dolphin is erasing RW disks, Dolphin freezes until the blanking operation is finished.

Reproducible: Always



Expected Results:
Comment 1 dE 2011-08-07 06:16:16 UTC
Notice, this problem might be related to 277737.
Comment 2 Peter Penz 2012-01-05 22:14:15 UTC
Could you please check whether hiding the "Places Panel" on the left "solves" the issue? Thanks!
Comment 3 dE 2012-05-22 04:22:35 UTC
No, it has no relation to the palces panel.
Comment 4 dE 2012-08-06 03:12:41 UTC
On second thought, yes.

Is there a general bug related to this places panel which hangs dolphin in case of a bad/slow device?
Comment 5 Jeroen van Meeuwen (Kolab Systems) 2012-08-24 16:20:05 UTC
Resetting assignee to default as per bug #305719
Comment 6 Frank Reininghaus 2013-04-30 12:44:58 UTC
Does this still happen in KDE 4.10 or later?
Comment 7 Frank Reininghaus 2013-05-24 08:27:30 UTC
No response -> closing.
Comment 8 dE 2013-06-14 14:01:56 UTC
Yes, it presists with 4.10
Comment 9 Frank Reininghaus 2013-06-14 14:06:06 UTC
In that case, we have to find out where in the code the freeze occurs. Please do the following in a shell:

(a) gdb dolphin
(b) At the gdb prompt, type 'run'
(c) Wait until Dolphin appears, then reproduce the freeze.
(d) Switch to the shell, press Ctrl+Z.
(e) At the gdb prompt, type 'thread apply all backtrace', and paste or attach the result here.
Comment 10 dE 2013-06-14 15:30:38 UTC
Which packages do I have to compile with debugging symbols for this? KIO?
Comment 11 Frank Reininghaus 2013-06-14 15:35:24 UTC
In principle, you can even do it without debugging symbols, it could just be that the backtrace is not very helpful then (depending on where the freeze occurs, which is something that I don't know yet). If you want to be on the safe side, just compile all of kdelibs and kde-baseapps with debugging symbols (but kio and solid in kdelibs are probably more interesting than others).
Comment 12 dE 2013-06-14 16:37:55 UTC
kde-baseapps: Actually I don't have most of these installed (for e.g. no games). I'm using Gentoo with kdebase-meta.

(gdb) run
Starting program: /usr/bin/dolphin 
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffef31d700 (LWP 26962)]
"/org/freedesktop/UDisks2/drives/HP_DVD_Writer_1260v_3524546_206239502311" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/ST31000524AS_6VPJYF30" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/ST380211AS_5PS029M1" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/ST380211AS_5PS029M1" : property "DeviceNumber" does not exist 
"/org/freedesktop/UDisks2/drives/ST380211AS_5PS029M1" : property "Device" does not exist 
Advanced probing on /dev/sr0 failed while reading block size
"/org/freedesktop/UDisks2/drives/ST31000524AS_6VPJYF30" : property "DeviceNumber" does not exist 
"/org/freedesktop/UDisks2/drives/ST31000524AS_6VPJYF30" : property "Device" does not exist

This step 

"/org/freedesktop/UDisks2/drives/ST380211AS_5PS029M1" : property "Device" does not exist 
Advanced probing on /dev/sr0 failed while reading block size

Took a lot of time to come up. It came up after the DVD was erased.
Comment 13 dE 2013-06-14 16:48:00 UTC
Now: If dolphin is up and running, then it doesn't hang.
Comment 14 Frank Reininghaus 2013-06-14 17:25:59 UTC
It seems that my debugging instructions were not clear enough :-(

(In reply to comment #12)
> This step 
> 
> "/org/freedesktop/UDisks2/drives/ST380211AS_5PS029M1" : property "Device"
> does not exist 
> Advanced probing on /dev/sr0 failed while reading block size
> 
> Took a lot of time to come up. It came up after the DVD was erased.

While you wait for this message to come up, i.e., while the app is frozen, please press Ctrl+Z in the shell and then type "thread apply all backtrace" at the gdb prompt.
Comment 15 dE 2013-06-14 17:34:28 UTC
Oh, that's just the program output....... I'm sorry I forgot.

I'd enough of gdb fixing segfaults in that program I just made.

I'll provide the output, wait...
Comment 16 dE 2013-06-14 17:35:47 UTC
However....

(In reply to comment #13)
> Now: If dolphin is up and running, then it doesn't hang.
Comment 17 Frank Reininghaus 2013-06-15 09:05:18 UTC
(In reply to comment #16)
> However....
> 
> (In reply to comment #13)
> > Now: If dolphin is up and running, then it doesn't hang.

Does that mean that you cannot reproduce the problem any more? I thought that you can still reproduce the freeze when running Dolphin in gdb. Then it should also be possible to interrupt it with Ctrl+Z during the freeze, right?
Comment 18 dE 2013-06-15 09:39:42 UTC
(In reply to comment #17)
> (In reply to comment #16)
> > However....
> > 
> > (In reply to comment #13)
> > > Now: If dolphin is up and running, then it doesn't hang.
> 
> Does that mean that you cannot reproduce the problem any more? I thought
> that you can still reproduce the freeze when running Dolphin in gdb. Then it
> should also be possible to interrupt it with Ctrl+Z during the freeze, right?

No, it doesn't hang during running, but it wont start till the erase process is finished.

And it appears that this problem happens when with only certain optical media FS.
Comment 19 Frank Reininghaus 2013-06-15 09:44:43 UTC
(In reply to comment #18)
> No, it doesn't hang during running, but it wont start till the erase process
> is finished.

Sounds like the process hangs while the application is starting? Then please interrupt the process while it hangs and provide a backtrace.
Comment 20 Frank Reininghaus 2013-07-26 08:16:32 UTC
Still waiting for a backtrace.
Comment 21 dE 2013-07-29 15:04:07 UTC
Dolphin refuses to stop with cntrl+z when erasing CD-RW with K3b. Sigint does not work.

This's what I got after failed attempts -- 

gdb dolphin
GNU gdb (Gentoo 7.5.1 p2) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/dolphin...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/dolphin 
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffee123700 (LWP 26894)]
"/org/freedesktop/UDisks2/drives/HP_DVD_Writer_1260v_3524546_206239502311" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/ST31000524AS_6VPJYF30" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/ST380211AS_5PS029M1" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/ST31000524AS_6VPJYF30" : property "DeviceNumber" does not exist 
"/org/freedesktop/UDisks2/drives/ST31000524AS_6VPJYF30" : property "Device" does not exist 
^Z^Z^C^C^C^C^Z^Z^Z^Z^Z^Z^Z^Z^Z^C^C^C^Z^Z^Z^C^C^Z^Z^C^C^Z^Z
Program received signal SIGINT, Interrupt.
[Switching to Thread 0x7fffee123700 (LWP 26894)]
0x0000003fba8e1ad3 in poll () from /lib64/libc.so.6
(gdb) ^CQuit
(gdb) bt
#0  0x0000003fba8e1ad3 in poll () from /lib64/libc.so.6
#1  0x0000003fb9449606 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x0000003fb9449734 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ffff53d76f6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007ffff53a821f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007ffff53a84a8 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007ffff52ac280 in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007ffff5389f5f in ?? () from /usr/lib64/qt4/libQtCore.so.4
#8  0x00007ffff52ae9fc in ?? () from /usr/lib64/qt4/libQtCore.so.4
#9  0x0000003fbac08ec6 in start_thread () from /lib64/libpthread.so.0
#10 0x0000003fba8ea6ed in clone () from /lib64/libc.so.6
Comment 22 Frank Reininghaus 2013-07-29 15:12:09 UTC
Thanks for the update. I'm afraid I'm unable to help without a useful backtrace :-(

@Alex: could this be related to Solid?
Comment 23 Julian Steinmann 2018-03-31 09:03:13 UTC
Can you still reproduce this bug in a newer version of Dolphin? If not, I'll close this bug soon.
Comment 24 Julian Steinmann 2018-04-15 16:07:22 UTC
No response -> closing. Thanks for reporting this bug, please reopen the report if you can still reproduce this behavior with newer versions of Dolphin.