https://bugs.kde.org/show_bug.cgi?id=344809

--- Comment #5 from glyphi...@gmail.com ---
I ran into this crash for one user, while the same behavior didn't cause a
crash for a different user, so I spent some time debugging it. The cause is the
Animations setting (available in Settings -> Configure Gwenview). The crash
occurs when the Animations setting is set to "None", but does not occur when
the Animations setting is set to "OpenGL" or "Software". The offending line in
~/.config/gwenviewrc is:

[ImageView]
AnimationMethod=DocumentView::NoAnimation

Tried wiping out the .local and .config dirs, and even with a clean slate, the
single "AnimationMethod" line in the gwenviewrc file is sufficient to cause the
crash.

System is Gentoo Linux. Crash happens with both Gwenview 16.08.2 and 16.04.3.
Versions of other KDE packages are:

kde-frameworks/* (krunner, plasma, etc.): 5.26.0
kde-plasma/* (kwin, plasma-desktop, etc.): 5.7.5
kde-base/kdelibs: 4.14.24
kde-base/kde-env: 4.14.3

Just attached a backtrace (attachment 101676). Here it is, copy-pasted:

Application: Gwenview (gwenview), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f23b546d7c0 (LWP 10716))]

Thread 3 (Thread 0x7f23ac9da700 (LWP 10717)):
#0  0x00007f23c05a15fd in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f23b9b108f2 in poll (__timeout=-1, __nfds=1, __fds=0x7f23ac9d9d00)
at /usr/include/bits/poll2.h:46
#2  _xcb_conn_wait (c=c@entry=0x84df50, cond=cond@entry=0x84df90,
vector=vector@entry=0x0, count=count@entry=0x0) at
/var/tmp/portage/x11-libs/libxcb-1.12/work/libxcb-1.12/src/xcb_conn.c:479
#3  0x00007f23b9b126df in xcb_wait_for_event (c=0x84df50) at
/var/tmp/portage/x11-libs/libxcb-1.12/work/libxcb-1.12/src/xcb_in.c:693
#4  0x00007f23aed1c009 in QXcbEventReader::run (this=0x85a310) at
qxcbconnection.cpp:1325
#5  0x00007f23c0c5ec9c in QThreadPrivate::start (arg=0x85a310) at
thread/qthread_unix.cpp:341
#6  0x00007f23bba4e494 in start_thread (arg=0x7f23ac9da700) at
pthread_create.c:334
#7  0x00007f23c05aa5dd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f23a6a59700 (LWP 10718)):
#0  0x00007f23c05a15fd in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f23ba3effec in g_main_context_poll (priority=2147483647, n_fds=1,
fds=0x7f23a0003020, timeout=-1, context=0x7f23a0000990) at
/var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:4135
#2  g_main_context_iterate (context=context@entry=0x7f23a0000990,
block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at
/var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3835
#3  0x00007f23ba3f00fc in g_main_context_iteration (context=0x7f23a0000990,
may_block=1) at
/var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3901
#4  0x00007f23c0e5127c in QEventDispatcherGlib::processEvents
(this=0x7f23a00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#5  0x00007f23c0e02f9a in QEventLoop::exec (this=this@entry=0x7f23a6a58dd0,
flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#6  0x00007f23c0c5a4e4 in QThread::exec (this=this@entry=0x7f23c5360240
<(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at
thread/qthread.cpp:500
#7  0x00007f23c52f3235 in QDBusConnectionManager::run (this=0x7f23c5360240
<(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at
qdbusconnection.cpp:189
#8  0x00007f23c0c5ec9c in QThreadPrivate::start (arg=0x7f23c5360240 <(anonymous
namespace)::Q_QGS__q_manager::innerFunction()::holder>) at
thread/qthread_unix.cpp:341
#9  0x00007f23bba4e494 in start_thread (arg=0x7f23a6a59700) at
pthread_create.c:334
#10 0x00007f23c05aa5dd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f23b546d7c0 (LWP 10716)):
[KCrash Handler]
#6  0x0000000000000000 in ?? ()
#7  0x00007f23c1e65291 in QGraphicsItem::dragLeaveEvent (this=0xd5dd70,
event=0x1) at graphicsview/qgraphicsitem.cpp:6891
#8  0x00007f23c1e79c19 in QGraphicsItemPrivate::setVisibleHelper
(this=0xf69c10, newVisible=false, explicitly=explicitly@entry=true,
update=update@entry=true, hiddenByPanel=false) at
graphicsview/qgraphicsitem.cpp:2326
#9  0x00007f23c1e79d10 in QGraphicsItem::setVisible (this=this@entry=0xf3a330,
visible=<optimized out>) at graphicsview/qgraphicsitem.cpp:2463
#10 0x00007f23c1e93a36 in QGraphicsProxyWidget::eventFilter (this=0xf3a320,
object=0xf3c730, event=0x7ffe6c05f830) at
graphicsview/qgraphicsproxywidget.cpp:930
#11 0x00007f23c0e0416d in
QCoreApplicationPrivate::sendThroughObjectEventFilters
(receiver=receiver@entry=0xf3c730, event=event@entry=0x7ffe6c05f830) at
kernel/qcoreapplication.cpp:1126
#12 0x00007f23c1b85555 in QApplicationPrivate::notify_helper (this=<optimized
out>, receiver=0xf3c730, e=0x7ffe6c05f830) at kernel/qapplication.cpp:3800
#13 0x00007f23c1b89c90 in QApplication::notify (this=0x7ffe6c060200,
receiver=0xf3c730, e=0x7ffe6c05f830) at kernel/qapplication.cpp:3561
#14 0x00007f23c0e04410 in QCoreApplication::notifyInternal2
(receiver=receiver@entry=0xf3c730, event=event@entry=0x7ffe6c05f830) at
kernel/qcoreapplication.cpp:1015
#15 0x00007f23c1bc661a in QCoreApplication::sendEvent (event=0x7ffe6c05f830,
receiver=0xf3c730) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:225
#16 QWidgetPrivate::hide_helper (this=this@entry=0xf64020) at
kernel/qwidget.cpp:8021
#17 0x00007f23c1bcaec8 in QWidget::setVisible (this=0xf3c730,
visible=<optimized out>) at kernel/qwidget.cpp:8213
#18 0x00007f23c1bc6818 in QWidgetPrivate::close_helper (this=0xf64020,
mode=QWidgetPrivate::CloseNoEvent) at kernel/qwidget.cpp:8342
#19 0x00007f23c1bc6f1a in QWidget::~QWidget (this=0xf3c730,
__in_chrg=<optimized out>) at kernel/qwidget.cpp:1606
#20 0x00007f23beefb5bc in Phonon::VideoWidget::~VideoWidget (this=0xf3c730,
__in_chrg=<optimized out>) at
/var/tmp/portage/media-libs/phonon-4.9.0/work/phonon-4.9.0/phonon/videowidget.h:54
#21 Phonon::VideoWidget::~VideoWidget (this=0xf3c730, __in_chrg=<optimized
out>) at
/var/tmp/portage/media-libs/phonon-4.9.0/work/phonon-4.9.0/phonon/videowidget.h:54
#22 0x00007f23c1e8f638 in QGraphicsProxyWidget::~QGraphicsProxyWidget
(this=0xf3a320, __in_chrg=<optimized out>) at
graphicsview/qgraphicsproxywidget.cpp:517
#23 0x00007f23c4a3fb69 in
Gwenview::DoubleClickableProxyWidget::~DoubleClickableProxyWidget
(this=0xf3a320, __in_chrg=<optimized out>) at
/var/tmp/portage/kde-apps/gwenview-16.08.2/work/gwenview-16.08.2/lib/documentview/videoviewadapter.cpp:186
#24 Gwenview::DoubleClickableProxyWidget::~DoubleClickableProxyWidget
(this=0xf3a320, __in_chrg=<optimized out>) at
/var/tmp/portage/kde-apps/gwenview-16.08.2/work/gwenview-16.08.2/lib/documentview/videoviewadapter.cpp:186
#25 0x00007f23c1e7f506 in QGraphicsItem::~QGraphicsItem
(this=this@entry=0xd5dd80, __in_chrg=<optimized out>) at
graphicsview/qgraphicsitem.cpp:1468
#26 0x00007f23c1e7f8a3 in QGraphicsObject::~QGraphicsObject (this=0xd5dd70,
__in_chrg=<optimized out>) at graphicsview/qgraphicsitem.cpp:7679
#27 0x00007f23c1ed6445 in QGraphicsWidget::~QGraphicsWidget (this=0xd5dd70,
__in_chrg=<optimized out>) at graphicsview/qgraphicswidget.cpp:225
#28 0x00007f23c4a35939 in Gwenview::DocumentView::~DocumentView (this=0xd5dd70,
__in_chrg=<optimized out>) at
/var/tmp/portage/kde-apps/gwenview-16.08.2/work/gwenview-16.08.2/lib/documentview/documentview.cpp:344
#29 0x00007f23c0e2ced8 in QObject::event (this=this@entry=0xd5dd70,
e=e@entry=0xe1fa50) at kernel/qobject.cpp:1247
#30 0x00007f23c1ed7acb in QGraphicsWidget::event (this=0xd5dd70,
event=0xe1fa50) at graphicsview/qgraphicswidget.cpp:1468
#31 0x00007f23c1b8557c in QApplicationPrivate::notify_helper (this=<optimized
out>, receiver=0xd5dd70, e=0xe1fa50) at kernel/qapplication.cpp:3804
#32 0x00007f23c1b89c90 in QApplication::notify (this=0x7ffe6c060200,
receiver=0xd5dd70, e=0xe1fa50) at kernel/qapplication.cpp:3561
#33 0x00007f23c0e04410 in QCoreApplication::notifyInternal2 (receiver=0xd5dd70,
event=event@entry=0xe1fa50) at kernel/qcoreapplication.cpp:1015
#34 0x00007f23c0e06673 in QCoreApplication::sendEvent (event=0xe1fa50,
receiver=<optimized out>) at kernel/qcoreapplication.h:225
#35 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0,
event_type=event_type@entry=0, data=0x835d40) at
kernel/qcoreapplication.cpp:1650
#36 0x00007f23c0e06c18 in QCoreApplication::sendPostedEvents
(receiver=receiver@entry=0x0, event_type=event_type@entry=0) at
kernel/qcoreapplication.cpp:1508
#37 0x00007f23c0e511f3 in postEventSourceDispatch (s=0x88a400) at
kernel/qeventdispatcher_glib.cpp:270
#38 0x00007f23ba3efd6d in g_main_dispatch (context=0x7f23a80016f0) at
/var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3154
#39 g_main_context_dispatch (context=context@entry=0x7f23a80016f0) at
/var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3769
#40 0x00007f23ba3f0050 in g_main_context_iterate
(context=context@entry=0x7f23a80016f0, block=block@entry=1,
dispatch=dispatch@entry=1, self=<optimized out>) at
/var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3840
#41 0x00007f23ba3f00fc in g_main_context_iteration (context=0x7f23a80016f0,
may_block=1) at
/var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3901
#42 0x00007f23c0e51267 in QEventDispatcherGlib::processEvents (this=0x888c60,
flags=...) at kernel/qeventdispatcher_glib.cpp:417
#43 0x00007f23c0e02f9a in QEventLoop::exec (this=this@entry=0x7ffe6c060100,
flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#44 0x00007f23c0e0ab8c in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:1285
#45 0x00007f23c161f59c in QGuiApplication::exec () at
kernel/qguiapplication.cpp:1607
#46 0x00007f23c1b82235 in QApplication::exec () at kernel/qapplication.cpp:2979
#47 0x000000000042840c in main (argc=2, argv=<optimized out>) at
/var/tmp/portage/kde-apps/gwenview-16.08.2/work/gwenview-16.08.2/app/main.cpp:167

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to