Bug 206626 - Dolphin crash if the right click menu is used while renaming a file with Qt Menu effect set to "Fade" (..., KTextEdit::contextMenuEvent, QWidget::event)
Summary: Dolphin crash if the right click menu is used while renaming a file with Qt M...
Status: RESOLVED UPSTREAM
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 16.12.2
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Peter Penz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-07 13:55 UTC by enkithan
Modified: 2009-12-18 19:13 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description enkithan 2009-09-07 13:55:56 UTC
Application that crashed: dolphin
Version of the application: 1.3
KDE Version: 4.3.1 (KDE 4.3.1)
Qt Version: 4.5.2
Operating System: Linux 2.6.30-ARCH x86_64

What I was doing when the application crashed:
Open Dolphin > select any file and hit F2 to enter in the rename "mode" > right-click on the file name -> Dolphin shows the menu and crash.



 -- Backtrace:
Application: Dolphin (dolphin), signal: Segmentation fault
[KCrash Handler]
#5  0x0000000000000001 in ?? ()
#6  0x00007f886e642985 in KTextEdit::contextMenuEvent () from /usr/lib/libkdeui.so.5
#7  0x00007f886d26b515 in QWidget::event () from /usr/lib/libQtGui.so.4
#8  0x00007f886d5c42a6 in QFrame::event () from /usr/lib/libQtGui.so.4
#9  0x00007f886cd89007 in QCoreApplicationPrivate::sendThroughObjectEventFilters () from /usr/lib/libQtCore.so.4
#10 0x00007f886d21c66c in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#11 0x00007f886d223cc7 in QApplication::notify () from /usr/lib/libQtGui.so.4
#12 0x00007f886e54b8d6 in KApplication::notify () from /usr/lib/libkdeui.so.5
#13 0x00007f886cd89cec in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#14 0x00007f886d289551 in ?? () from /usr/lib/libQtGui.so.4
#15 0x00007f886d287c8a in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#16 0x00007f886d2afe6c in ?? () from /usr/lib/libQtGui.so.4
#17 0x00007f8869331dbe in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#18 0x00007f8869335568 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#19 0x00007f8869335690 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#20 0x00007f886cdb21b6 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#21 0x00007f886d2af64e in ?? () from /usr/lib/libQtGui.so.4
#22 0x00007f886cd885f2 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#23 0x00007f886cd889c4 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#24 0x00007f886cd8ab79 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#25 0x0000000000439515 in _start ()

Reported using DrKonqi
Comment 1 FiNeX 2009-09-07 14:17:04 UTC
If you can reproduce the bug you should install debug enabled packages and paste the complete backtrace.
Please read this page for more information about generating an useful backtrace:

http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports

Many thanks
Comment 2 Dario Andres 2009-09-17 01:14:10 UTC
If you are using KDEMod you can install the "kdebase-apps-debug" package. If you are not using them, you would need to recompile kdebase-apps ... 
- Does Dolphin always crash when you repeat the steps you described ? 
- What is your renaming mode? (inline or in a separate dialog)
Thanks
Comment 3 enkithan 2009-09-17 15:07:23 UTC
- Does Dolphin always crash when you repeat the steps you described ? 
Yes.And with any file/folder type in any view mode.

- What is your renaming mode? (inline or in a separate dialog)
Inline. The crash happens when I right-click on the selected text to copy it.

If I install kdemod, let it create a new .kdemod folder, and change the rename mode to inline, it doesn't crash anymore.
If I replace the .kdemod folder with my old .kde folder, it crashes again.

The difference is than with the default setting, dolphin get out of the rename mode as soon I right-click; while with my settings, the rename mode is still active when the menu appears.

kdemod + debug backtrace :

#5  0x0000000000e86570 in ?? ()
#6  0x00007f296b6609c5 in KTextEdit::contextMenuEvent (this=<value optimized out>, event=0x7fffd9d777b0) at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.3.1/kdeui/widgets/ktextedit.cpp:591
#7  0x00007f296a28a4e5 in QWidget::event (this=0xebda30, event=0x7fffd9d777b0) at kernel/qwidget.cpp:7708
#8  0x00007f296a5e3276 in QFrame::event (this=0xebda30, e=0x7fffd9d777b0) at widgets/qframe.cpp:559
#9  0x00007f2969da8007 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0xe2d9a0, event=0x7fffd9d777b0) at kernel/qcoreapplication.cpp:726
#10 0x00007f296a23b63c in QApplicationPrivate::notify_helper (this=0x9394f0, receiver=0xe2d9a0, e=0x7fffd9d777b0) at kernel/qapplication.cpp:4052
#11 0x00007f296a242c97 in QApplication::notify (this=0x7fffd9d79540, receiver=0xe2d9a0, e=0x7fffd9d777b0) at kernel/qapplication.cpp:3845
#12 0x00007f296b5698f6 in KApplication::notify (this=0x7fffd9d79540, receiver=0xe2d9a0, event=0x7fffd9d777b0) at /home/phil/kdemod/core/kdelibs/src/kdelibs-4.3.1/kdeui/kernel/kapplication.cpp:302
#13 0x00007f2969da8cec in QCoreApplication::notifyInternal (this=0x7fffd9d79540, receiver=0xe2d9a0, event=0x7fffd9d777b0) at kernel/qcoreapplication.cpp:610
#14 0x00007f296a2a8521 in QETWidget::translateMouseEvent (this=<value optimized out>, event=<value optimized out>) at kernel/qapplication_x11.cpp:4410
#15 0x00007f296a2a6c5a in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fffd9d79170) at kernel/qapplication_x11.cpp:3545
#16 0x00007f296a2cee3c in x11EventSourceDispatch (s=<value optimized out>, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#17 0x00007f2965ad8dbe in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#18 0x00007f2965adc568 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#19 0x00007f2965adc690 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#20 0x00007f2969dd11b6 in QEventDispatcherGlib::processEvents (this=0x9290b0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#21 0x00007f296a2ce61e in QGuiEventDispatcherGlib::processEvents (this=0xbde5e0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#22 0x00007f2969da75f2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#23 0x00007f2969da79c4 in QEventLoop::exec (this=0x7fffd9d79490, flags=) at kernel/qeventloop.cpp:201
#24 0x00007f2969da9b79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#25 0x0000000000439515 in main (argc=<value optimized out>, argv=<value optimized out>) at /home/phil/kdemod/core/kdebase/src/kdebase-4.3.1/apps/dolphin/src/main.cpp:94
Comment 4 Dario Andres 2009-10-01 00:39:28 UTC
It would be useful to know which setting is causing that behavior change (to not exit the rename mode on right click), but I don't have the enough knowledge to do it. At any point, make a copy of your .kde folder (the one that causes the crash): it may be useful in the future. Thanks
Comment 5 enkithan 2009-10-01 14:16:05 UTC
I finally found what is causing the bug :) It's the Qt Fade effect for menus.
As soon as I disable effects in QtConfig, KDE goes back to its default behavior (contextual menu appears and rename mode is canceled).

Ironically, it's related to other the bug I reported the same day.
https://bugs.kde.org/show_bug.cgi?id=206620

Now my problem is that the effect is enabled again when I restart my computer (but not when I restart X). And I can't find what KDE/Qt setting is activating them. I tried to disable all plasma/kwin effects with no success :(.
Comment 6 enkithan 2009-10-01 14:33:06 UTC
Sorry, I said something wrong, the effect is actually enabled again as soon X/KDE is restarted (unlike the related plasma bug where the computer has to be restarted).
Comment 7 Dario Andres 2009-10-10 18:39:10 UTC
I guess this could be a kdelibs/Qt issue.
Thanks
Comment 8 Peter Penz 2009-12-18 19:13:31 UTC
It is definitely a Qt issue (http://qt.nokia.com/developer/task-tracker/index_html?id=206637&method=entry). However it has been set to "Expired" there :-/