Bug 282115 - Dolphin crashes when generating a thumbnail and switching windows
Summary: Dolphin crashes when generating a thumbnail and switching windows
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 1.7
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Peter Penz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-16 01:11 UTC by martynas.janu
Modified: 2012-02-10 14:40 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.8.1
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description martynas.janu 2011-09-16 01:11:40 UTC
Application: dolphin (1.7)
KDE Platform Version: 4.7.1 (4.7.1) (Compiled from sources)
Qt Version: 4.7.4
Operating System: Linux 3.0.4-gentoo i686
Distribution: "Gentoo Base System release 2.0.3"

-- Information about the crash:
The crash occurs not every time, but very occasionally. When holding the mouse over an item (a picture file for instance), the little preview popup begins to generate. Sometimes, if I ALT+TAB  to another window, or press CTRL+F (file search) Dolphin crashes.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Dolphin (dolphin), signal: Segmentation fault
[Current thread is 1 (Thread 0xb3da8710 (LWP 16717))]

Thread 3 (Thread 0xb311cb70 (LWP 16720)):
#0  0xb7797305 in pthread_mutex_unlock () from /lib/libc.so.6
#1  0xb5405c8b in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#2  0xb5406b5b in ?? () from /usr/lib/libglib-2.0.so.0
#3  0xb5407265 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0xb5db2bbf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/qt4/libQtCore.so.4
#5  0xb5d8430a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/qt4/libQtCore.so.4
#6  0xb5d845aa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/qt4/libQtCore.so.4
#7  0xb5c8b56b in QThread::exec() () from /usr/lib/qt4/libQtCore.so.4
#8  0xb5d65a9c in ?? () from /usr/lib/qt4/libQtCore.so.4
#9  0xb5c8e023 in ?? () from /usr/lib/qt4/libQtCore.so.4
#10 0xb5531d23 in start_thread () from /lib/libpthread.so.0
#11 0xb7789b7e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xb264eb70 (LWP 16723)):
#0  0xb78c6424 in __kernel_vsyscall ()
#1  0xb7782aa1 in select () from /lib/libc.so.6
#2  0xb5d6523f in ?? () from /usr/lib/qt4/libQtCore.so.4
#3  0xb5c8e023 in ?? () from /usr/lib/qt4/libQtCore.so.4
#4  0xb5531d23 in start_thread () from /lib/libpthread.so.0
#5  0xb7789b7e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb3da8710 (LWP 16717)):
[KCrash Handler]
#7  0xb5d85146 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/qt4/libQtCore.so.4
#8  0xb628c512 in QApplicationPrivate::dispatchEnterLeave(QWidget*, QWidget*) () from /usr/lib/qt4/libQtGui.so.4
#9  0xb6314934 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/qt4/libQtGui.so.4
#10 0xb633e902 in ?? () from /usr/lib/qt4/libQtGui.so.4
#11 0xb5406791 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#12 0xb5406f98 in ?? () from /usr/lib/libglib-2.0.so.0
#13 0xb5407265 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#14 0xb5db2b7d in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/qt4/libQtCore.so.4
#15 0xb633e516 in ?? () from /usr/lib/qt4/libQtGui.so.4
#16 0xb5d8430a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/qt4/libQtCore.so.4
#17 0xb5d845aa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/qt4/libQtCore.so.4
#18 0xb5d89061 in QCoreApplication::exec() () from /usr/lib/qt4/libQtCore.so.4
#19 0xb6289bf8 in QApplication::exec() () from /usr/lib/qt4/libQtGui.so.4
#20 0xb7853e00 in kdemain () from /usr/lib/libkdeinit4_dolphin.so
#21 0x080486cb in _start ()

Possible duplicates by query: bug 282067, bug 280972, bug 280181, bug 279871, bug 279526.

Reported using DrKonqi
Comment 1 martynas.janu 2011-09-16 02:30:54 UTC
I have managed to accurately reproduce the bug.

Steps:

1. Open a directory in dolphin that contains at least one image.
2. Move the mouse over the file and wait for the popup with the image preview.
3. Quickly ALT+TAB, so that you are in another window but you can still see the popup.
4. Move the mouse over the popup. Crash.

Note: One must ALT+TAB quickly enough, because if there is a longer delay between pressing ALT and then TAB, the popup disappears and the crash doesn't occur.
Comment 2 Peter Penz 2011-09-16 14:32:15 UTC
Thanks for the report. I still cannot reproduce the crash with the steps from comment #1: When I press Alt+Tab the tooltip ("popup") disappears and I cannot move the mouse above it. I had nearly no delay between pressing Alt + Tab... I'm sure I'm doing something wrong, probably you could give me some additional hints?
Comment 3 martynas.janu 2011-09-16 14:36:22 UTC
(In reply to comment #2)
> Thanks for the report. I still cannot reproduce the crash with the steps from
> comment #1: When I press Alt+Tab the tooltip ("popup") disappears and I cannot
> move the mouse above it. I had nearly no delay between pressing Alt + Tab...
> I'm sure I'm doing something wrong, probably you could give me some additional
> hints?

No, I think you are doing it right. It just came to me: I'm not using KDE, I use XFCE4. Maybe that has something to do with it?
Comment 4 Peter Penz 2011-09-16 14:43:41 UTC
Might be, but of course Dolphin still should not crash in this case. Can you reproduce the issue too when using other applications having such kind of tooltips? E.g. Systemsettings?
Comment 5 martynas.janu 2011-09-16 14:57:58 UTC
(In reply to comment #4)
> Might be, but of course Dolphin still should not crash in this case. Can you
> reproduce the issue too when using other applications having such kind of
> tooltips? E.g. Systemsettings?

Just compiled and tried on Systemsettings. I manage to reproduce the popup staying above another window ("firefox in this case") if I ALT+TAB quickly enough but moving the mouse on it doesn't crash the app instead the popup just disappears.
Comment 6 Peter Penz 2011-09-16 15:21:51 UTC
OK, I'll try to compare the code that is responsible for removing the tooltip then (systemsettings uses the same implementation as Dolphin for the tooltips, so I hope it is only a minor issue).

(Internal note: Check delete vs. deleteLater())
Comment 7 martynas.janu 2011-09-29 09:13:03 UTC
I have found another way to recreate this bug. This one's simpler. Steps:

1. Press F3 in order to split the view.
2. Move the mouse on an item in the right (the one that just appeared) side and wait for the popup to appear.
3. Press F3 to turn the split view off.
Comment 8 Peter Penz 2012-02-10 14:40:49 UTC
Thanks for the update, this issue has been fixed now and the patch will be available with 4.8.1.