Bug 198996

Summary: Krusader: open html file from tar.gz archive in view mode, then close it - krusader is crashed (QWidget::window, QApplicationPrivate::dispatchEnterLeave)
Product: [Applications] krusader Reporter: Alexey Androsov <doochik>
Component: generalAssignee: Krusader Bugs Distribution List <krusader-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: abcdefgh666, alesandro, andrei.ilie, andresbajotierra, cthfhtagn, david.sirovsky, dfabian, erno, evg.barsukov, jan_lepper, joonhyoung.ro, k.kapuscik, kazeevn, kontakt, krusader-bugs-null, nabadvin, nemesdoki, rasasi78, ribalkin, t-dome
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In: 2.4.0-beta2
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi

Description Alexey Androsov 2009-07-05 11:37:22 UTC
Application that crashed: krusader
Version of the application: 2.0.0 "Mars Pathfinder"
KDE Version: 4.2.95 (KDE 4.2.95 (KDE 4.3 RC1))
Qt Version: 4.5.1
Operating System: Linux 2.6.30-020630-generic i686
Distribution: Ubuntu 9.04

What I was doing when the application crashed:
Steps to reproduce
1) download tar.gz archive, for example, wordpress (http://wordpress.org/latest.zip)
2) go to download directory in krusader
3) enter the archive (press enter), go to html file (there is wordpress/readme.html in wordpress archive)
4) press f3 to view html
5) press alt+f4 (not close button!)
6) krusader is crashed

OS: Kubuntu 9.04
KDE: 4.3 beta 1 from https://launchpad.net/~kubuntu-ppa/+archive/backports
krusader: 2.0.0

 -- Backtrace:
Application: Krusader (krusader), signal: Segmentation fault
[Current thread is 0 (LWP 7674)]

Thread 3 (Thread 0xac44db90 (LWP 7685)):
#0  0xb7f7e430 in __kernel_vsyscall ()
#1  0xb577a412 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb5c09344 in pthread_cond_timedwait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb5dec58c in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#4  0xb5de1ac6 in ?? () from /usr/lib/libQtCore.so.4
#5  0xb5deb56e in ?? () from /usr/lib/libQtCore.so.4
#6  0xb57764ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0xb5bfa49e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xaa4f5b90 (LWP 7686)):
#0  0xb7f7e430 in __kernel_vsyscall ()
#1  0xb577a412 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb5c09344 in pthread_cond_timedwait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb5dec58c in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#4  0xb5de1ac6 in ?? () from /usr/lib/libQtCore.so.4
#5  0xb5deb56e in ?? () from /usr/lib/libQtCore.so.4
#6  0xb57764ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0xb5bfa49e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb5355700 (LWP 7674)):
[KCrash Handler]
#6  0xb6253899 in QWidget::window () from /usr/lib/libQtGui.so.4
#7  0xb62136bf in QApplicationPrivate::dispatchEnterLeave () from /usr/lib/libQtGui.so.4
#8  0xb6282006 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#9  0xb62ae06a in ?? () from /usr/lib/libQtGui.so.4
#10 0xb55dfb88 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#11 0xb55e30eb in ?? () from /usr/lib/libglib-2.0.so.0
#12 0xb55e3268 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#13 0xb5f0b1d8 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#14 0xb62ad765 in ?? () from /usr/lib/libQtGui.so.4
#15 0xb5edddda in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#16 0xb5ede21a in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#17 0xb5ee06c9 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#18 0xb620ba47 in QApplication::exec () from /usr/lib/libQtGui.so.4
#19 0x08092f95 in main (argc=5, argv=0xbfc78c84) at /build/buildd/krusader-2.0.0/krusader/main.cpp:268

This bug may be a duplicate of or related to bug 186227

Reported using DrKonqi
Comment 1 Dario Andres 2009-09-05 02:58:49 UTC
*** Bug 206301 has been marked as a duplicate of this bug. ***
Comment 2 Dario Andres 2009-10-25 21:53:09 UTC
From bug 211698:
System detals:
     pure krusader version from ubuntu repository
     gnome desktop
Viewing with F3 any jpeg works perfect, but, if lister is closed by Alt-F4 or
Ctrl-Q, Krusader crashes. However, if window is closed by pressing Esc, using
menu Close, or by mouse all go OK.
Comment 3 Dario Andres 2009-11-12 14:01:18 UTC
*** Bug 211698 has been marked as a duplicate of this bug. ***
Comment 4 Dario Andres 2009-11-12 14:02:22 UTC
From bug 214253:
---

What I was doing when the application crashed:
I can fairly constantly reproduce this crash by opening a fresh krusader and
open any .xml document for viewing (F3), then pressing alt-F4.

When I open other (non-.xml) files for viewing first, the crash does not occur,
even for .xml files.

Backtrace:
---

 -- Backtrace:
Application: Krusader (krusader), signal: Segmentation fault
[KCrash Handler]
#5  0x00007fd86800d654 in QObject::parent (this=0x1c042b0) at
../../include/QtCore/../../src/corelib/kernel/qobject.h:243
#6  QWidget::parentWidget (this=0x1c042b0) at
../../include/QtGui/../../src/gui/kernel/qwidget.h:988
#7  QWidget::window (this=0x1c042b0) at kernel/qwidget.cpp:3882
#8  0x00007fd867fd2683 in QApplicationPrivate::dispatchEnterLeave (enter=<value
optimized out>, leave=0x1c042b0) at kernel/qapplication.cpp:2527
#9  0x00007fd868037a66 in QApplication::x11ProcessEvent (this=<value optimized
out>, event=0x7fffc1b96f70) at kernel/qapplication_x11.cpp:3546
#10 0x00007fd868060d0c in x11EventSourceDispatch (s=<value optimized out>,
callback=<value optimized out>, user_data=<value optimized out>) at
kernel/qguieventdispatcher_glib.cpp:146
Comment 5 Dario Andres 2009-11-12 14:02:29 UTC
*** Bug 214253 has been marked as a duplicate of this bug. ***
Comment 6 Dario Andres 2011-01-02 13:53:27 UTC
*** Bug 261823 has been marked as a duplicate of this bug. ***
Comment 7 user 2011-02-07 18:02:40 UTC
Created attachment 56949 [details]
New crash information added by DrKonqi

krusader (2.2.0-beta1 "DeKade") on KDE Platform 4.5.1 (KDE 4.5.1) using Qt 4.7.0

Closing of F3 viewer using alt-F4 (fb2 file was viewed) invokes the krusader's crash

-- Backtrace (Reduced):
#7  0x05061290 in QApplication::x11ProcessEvent (this=0xbf8a1a44, event=0xbf8a140c) at kernel/qapplication_x11.cpp:3525
#8  0x0509136a in x11EventSourceDispatch (s=0x8b37700, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
[...]
[...]
[...]
#12 0x015cf565 in QEventDispatcherGlib::processEvents (this=0x8b166d8, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#13 0x05090be5 in QGuiEventDispatcherGlib::processEvents (this=0x8b166d8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#14 0x0159f609 in QEventLoop::processEvents (this=0xbf8a1704, flags=) at kernel/qeventloop.cpp:149
Comment 8 Marcin Gryszkalis 2011-05-07 23:01:24 UTC
*** Bug 265941 has been marked as a duplicate of this bug. ***
Comment 9 Joon Ro 2011-05-21 22:05:39 UTC
Created attachment 60208 [details]
New crash information added by DrKonqi

krusader (2.0.0 "Mars Pathfinder") on KDE Platform 4.6.3 (4.6.3) "release 4" using Qt 4.7.3

- What I was doing when the application crashed:

view (F3) an html file, and then close the viewer window with Alt + F4

-- Backtrace (Reduced):
#6  parent (this=0x1523ec0) at ../../src/corelib/kernel/qobject.h:250
#7  parentWidget (this=0x1523ec0) at ../../src/gui/kernel/qwidget.h:1022
#8  QWidget::window (this=0x1523ec0) at kernel/qwidget.cpp:4252
#9  0x00007f1fd2a3fee2 in QApplicationPrivate::dispatchEnterLeave (enter=0xb01700, leave=0x1523ec0) at kernel/qapplication.cpp:2715
#10 0x00007f1fd2abd1d1 in QApplication::x11ProcessEvent (this=0x7fff726ba790, event=0x7fff726ba110) at kernel/qapplication_x11.cpp:3583
Comment 10 Jan Lepper 2011-06-11 23:31:38 UTC
This looks like a QT bug, could someone please report this at the QT bug tracker ?
Comment 11 Jan Lepper 2011-06-12 00:20:56 UTC
*** Bug 240910 has been marked as a duplicate of this bug. ***
Comment 12 Boris Ribalkin 2011-07-12 02:39:58 UTC
Created attachment 61789 [details]
New crash information added by DrKonqi

krusader (2.3.0-beta1 "New Horizons") on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed:

Opened xml file with F4 than closed it usng Alt + F4

-- Backtrace (Reduced):
#6  parent (this=0x1bc8670) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:250
#7  parentWidget (this=0x1bc8670) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:1022
#8  QWidget::window (this=0x1bc8670) at kernel/qwidget.cpp:4252
#9  0x00007f3084cc5752 in QApplicationPrivate::dispatchEnterLeave (enter=0x167c630, leave=0x1bc8670) at kernel/qapplication.cpp:2715
#10 0x00007f3084d45a7d in QApplication::x11ProcessEvent (this=0x7fff0ab09140, event=0x7fff0ab08ab0) at kernel/qapplication_x11.cpp:3676
Comment 13 arakelov 2011-08-03 11:38:37 UTC
Created attachment 62502 [details]
New crash information added by DrKonqi

krusader (2.3.0-beta1 "New Horizons") on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed:
I was viewing a .png file with F3 (internal viewer), then closed it with F4, then Krusader crashed.

-- Backtrace (Reduced):
#7  parent (this=0x8c967c0) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:250
#8  parentWidget (this=0x8c967c0) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:1022
#9  QWidget::window (this=0x8c967c0) at kernel/qwidget.cpp:4252
#10 0x0105a9e0 in QApplicationPrivate::dispatchEnterLeave (enter=0x871e010, leave=0x8c967c0) at kernel/qapplication.cpp:2715
#11 0x010e496a in QApplication::x11ProcessEvent (this=0xbfa163c8, event=0xbfa15dbc) at kernel/qapplication_x11.cpp:3676
Comment 14 t-dome 2011-08-25 14:09:29 UTC
Created attachment 63139 [details]
New crash information added by DrKonqi

krusader (2.3.0-beta1 "New Horizons") on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed:
Viewing a XML file with F3 and then closing with ALT-F4. After that Krusader crashed.

-- Backtrace (Reduced):
#6  parent (this=0x2a9cb30) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:250
#7  parentWidget (this=0x2a9cb30) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:1022
#8  QWidget::window (this=0x2a9cb30) at kernel/qwidget.cpp:4252
#9  0x00007f0a59fcd752 in QApplicationPrivate::dispatchEnterLeave (enter=0x26852a0, leave=0x2a9cb30) at kernel/qapplication.cpp:2715
#10 0x00007f0a5a04da7d in QApplication::x11ProcessEvent (this=0x7fffe3d65750, event=0x7fffe3d650c0) at kernel/qapplication_x11.cpp:3676
Comment 15 Evg 2012-02-10 07:40:18 UTC
Created attachment 68671 [details]
New crash information added by DrKonqi

krusader (2.4.0-beta1 "Migration") on KDE Platform 4.7.4 (4.7.4) using Qt 4.7.4

- What I was doing when the application crashed:

I viewed an html file and the presed alt+F4

-- Backtrace (Reduced):
#6  parent (this=0x2facbc0) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:250
#7  parentWidget (this=0x2facbc0) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:1022
#8  QWidget::window (this=0x2facbc0) at kernel/qwidget.cpp:4288
#9  0x00007f685d2ab17a in QApplicationPrivate::dispatchEnterLeave (enter=0x29e6e20, leave=0x2facbc0) at kernel/qapplication.cpp:2739
#10 0x00007f685d32990b in QApplication::x11ProcessEvent (this=0x7fff24db1b10, event=0x7fff24db13a0) at kernel/qapplication_x11.cpp:3689
Comment 16 Jan Lepper 2012-08-11 00:45:35 UTC
*** Bug 300701 has been marked as a duplicate of this bug. ***
Comment 17 Jan Lepper 2012-08-11 01:02:35 UTC
*** Bug 261660 has been marked as a duplicate of this bug. ***
Comment 18 Jan Lepper 2012-08-11 02:32:05 UTC
This is caused by upstream bug https://bugreports.qt-project.org/browse/QTBUG-26115.
I will try a workaround.
Comment 19 Jan Lepper 2012-08-11 20:48:57 UTC
Git commit 72e13fb304184f4fbab24ef82c5341b00cd6e90b by Jan Lepper.
Committed on 11/08/2012 at 22:47.
Pushed by janlepper into branch 'master'.

FIXED: [ 198996 ] crash when closing viewer

M  +1    -0    ChangeLog
M  +6    -0    krusader/KViewer/krviewer.cpp

http://commits.kde.org/krusader/72e13fb304184f4fbab24ef82c5341b00cd6e90b
Comment 20 Joon Ro 2012-08-12 16:01:03 UTC
(In reply to comment #19)
> 
> FIXED: [ 198996 ] crash when closing viewer

Thanks a lot for this. This has been one of the most annoying bugs for me for quite some time.
Comment 21 Joon Ro 2012-08-20 14:35:54 UTC
Just tried the fixed version (from the openSUSE KDE:unstable:playground repo) and it seems to be working great! Thanks a lot!
Comment 22 Jan Lepper 2012-09-24 19:49:58 UTC
*** Bug 294815 has been marked as a duplicate of this bug. ***
Comment 23 Jekyll Wu 2012-11-07 02:38:48 UTC
*** Bug 309176 has been marked as a duplicate of this bug. ***
Comment 24 Jekyll Wu 2012-11-07 17:58:02 UTC
*** Bug 307206 has been marked as a duplicate of this bug. ***
Comment 25 Jekyll Wu 2013-02-15 11:42:37 UTC
*** Bug 315187 has been marked as a duplicate of this bug. ***