Bug 289012

Summary: Plasma crashed when desktop wallpaper was set from Picture Frame PoTD
Product: [Unmaintained] plasma4 Reporter: Dennis Austmann <daustmann>
Component: widget-frameAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: annma
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Dennis Austmann 2011-12-14 23:27:58 UTC
Application: plasma-desktop (0.4)
KDE Platform Version: 4.7.2 (4.7.2)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-14-generic x86_64
Distribution: Ubuntu 11.10

-- Information about the crash:
plasma-desktop crashed when i tried to change the wallpaper using the picture applet (from an online source, from example flickr)

The crash can be reproduced every time.

-- Backtrace:
Application: Plasma-Desktop-Umgebung (plasma-desktop), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fe4c3b247a0 (LWP 1635))]

Thread 4 (Thread 0x7fe4a003c700 (LWP 1637)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007fe4a003bad0 in ?? ()
#2  0x00007fffbe7ff7e7 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 3 (Thread 0x7fe49d7b5700 (LWP 1638)):
#0  0x00007fe4b848e034 in __pthread_mutex_lock (mutex=0x1a3da78) at pthread_mutex_lock.c:61
#1  0x00007fe4b797d839 in g_main_context_release () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fe4b797ef9a in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fe4b797f429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fe4c05e5f3e in QEventDispatcherGlib::processEvents (this=0xba2e60, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007fe4c05b9cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fe4c05b9ef7 in QEventLoop::exec (this=0x7fe49d7b4db0, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007fe4c04d127f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#8  0x00007fe4c059ccbf in QInotifyFileSystemWatcherEngine::run (this=0xb9ee00) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007fe4c04d3d05 in QThreadPrivate::start (arg=0xb9ee00) at thread/qthread_unix.cpp:331
#10 0x00007fe4b848befc in start_thread (arg=0x7fe49d7b5700) at pthread_create.c:304
#11 0x00007fe4c33ff89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fe493c53700 (LWP 1646)):
#0  0x00007fe4b797e3f5 in g_main_context_query () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fe4b797ee6a in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fe4b797f792 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fe494731516 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007fe4b79a42b6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fe4b848befc in start_thread (arg=0x7fe493c53700) at pthread_create.c:304
#6  0x00007fe4c33ff89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fe4c3b247a0 (LWP 1635)):
[KCrash Handler]
#6  operator! (this=0x0) at /usr/include/qt4/QtCore/qshareddata.h:198
#7  KPluginInfo::name (this=0x0) at ../../kdecore/services/kplugininfo.cpp:257
#8  0x00007fe4a7dfdaa5 in Frame::setImageAsWallpaper (this=0x122a300) at ../../../applets/frame/frame.cpp:167
#9  0x00007fe4a7dfddac in Frame::qt_metacall (this=0x122a300, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fffbe7ea320) at ./frame.moc:104
#10 0x00007fe4c05cdeba in QMetaObject::activate (sender=0x2282510, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffbe7ea320) at kernel/qobject.cpp:3278
#11 0x00007fe4bf964b62 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#12 0x00007fe4bf964d4f in QAction::activate (this=0x2282510, event=<optimized out>) at kernel/qaction.cpp:1257
#13 0x00007fe4bfd9f609 in QMenuPrivate::activateCausedStack (this=0x31639b0, causedStack=..., action=0x2282510, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1005
#14 0x00007fe4bfda5252 in QMenuPrivate::activateAction (this=0x31639b0, action=0x2282510, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1097
#15 0x00007fe4c132acb0 in KMenu::mouseReleaseEvent (this=0x7fffbe7eb990, e=0x7fffbe7ead30) at ../../kdeui/widgets/kmenu.cpp:464
#16 0x00007fe4bf9bbc9a in QWidget::event (this=0x7fffbe7eb990, event=0x7fffbe7ead30) at kernel/qwidget.cpp:8295
#17 0x00007fe4bfda67fb in QMenu::event (this=0x7fffbe7eb990, e=0x7fffbe7ead30) at widgets/qmenu.cpp:2405
#18 0x00007fe4bf96b424 in notify_helper (e=0x7fffbe7ead30, receiver=0x7fffbe7eb990, this=0xb39970) at kernel/qapplication.cpp:4486
#19 QApplicationPrivate::notify_helper (this=0xb39970, receiver=0x7fffbe7eb990, e=0x7fffbe7ead30) at kernel/qapplication.cpp:4458
#20 0x00007fe4bf970c6b in QApplication::notify (this=<optimized out>, receiver=0x7fffbe7eb990, e=0x7fffbe7ead30) at kernel/qapplication.cpp:4047
#21 0x00007fe4c1269126 in KApplication::notify (this=0xb2ac40, receiver=0x7fffbe7eb990, event=0x7fffbe7ead30) at ../../kdeui/kernel/kapplication.cpp:311
#22 0x00007fe4c05baafc in QCoreApplication::notifyInternal (this=0xb2ac40, receiver=0x7fffbe7eb990, event=0x7fffbe7ead30) at kernel/qcoreapplication.cpp:787
#23 0x00007fe4bf96c3f2 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#24 QApplicationPrivate::sendMouseEvent (receiver=0x7fffbe7eb990, event=0x7fffbe7ead30, alienWidget=0x0, nativeWidget=0x7fffbe7eb990, buttonDown=0x0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3146
#25 0x00007fe4bf9ec001 in QETWidget::translateMouseEvent (this=0x7fffbe7eb990, event=<optimized out>) at kernel/qapplication_x11.cpp:4502
#26 0x00007fe4bf9ea8be in QApplication::x11ProcessEvent (this=0xb2ac40, event=0x7fffbe7eb550) at kernel/qapplication_x11.cpp:3690
#27 0x00007fe4bfa13412 in x11EventSourceDispatch (s=0xb3d9f0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#28 0x00007fe4b797ea5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007fe4b797f258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007fe4b797f429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007fe4c05e5ed6 in QEventDispatcherGlib::processEvents (this=0xac4f40, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#32 0x00007fe4bfa1307e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#33 0x00007fe4c05b9cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#34 0x00007fe4c05b9ef7 in QEventLoop::exec (this=0x7fffbe7eb920, flags=...) at kernel/qeventloop.cpp:201
#35 0x00007fe4bfda2711 in QMenu::exec (this=<optimized out>, p=..., action=0x0) at widgets/qmenu.cpp:2049
#36 0x00007fe4c2f1635f in contextMenuEvent (event=0x7fffbe7ebfe0, this=<optimized out>) at ../../plasma/containment.cpp:663
#37 Plasma::Containment::contextMenuEvent (this=<optimized out>, event=0x7fffbe7ebfe0) at ../../plasma/containment.cpp:618
#38 0x00007fe4bff327b5 in QGraphicsItem::sceneEvent (this=0xfe41c0, event=0x7fffbe7ebfe0) at graphicsview/qgraphicsitem.cpp:6700
#39 0x00007fe4bff5a75e in QGraphicsScene::contextMenuEvent (this=<optimized out>, contextMenuEvent=0x7fffbe7ebfe0) at graphicsview/qgraphicsscene.cpp:3609
#40 0x00007fe4bff69834 in QGraphicsScene::event (this=0xc8a980, event=0x7fffbe7ebfe0) at graphicsview/qgraphicsscene.cpp:3407
#41 0x00007fe4bf96b424 in notify_helper (e=0x7fffbe7ebfe0, receiver=0xc8a980, this=0xb39970) at kernel/qapplication.cpp:4486
#42 QApplicationPrivate::notify_helper (this=0xb39970, receiver=0xc8a980, e=0x7fffbe7ebfe0) at kernel/qapplication.cpp:4458
#43 0x00007fe4bf970291 in QApplication::notify (this=0xb2ac40, receiver=0xc8a980, e=0x7fffbe7ebfe0) at kernel/qapplication.cpp:4365
#44 0x00007fe4c1269126 in KApplication::notify (this=0xb2ac40, receiver=0xc8a980, event=0x7fffbe7ebfe0) at ../../kdeui/kernel/kapplication.cpp:311
#45 0x00007fe4c05baafc in QCoreApplication::notifyInternal (this=0xb2ac40, receiver=0xc8a980, event=0x7fffbe7ebfe0) at kernel/qcoreapplication.cpp:787
#46 0x00007fe4bff7f4fb in sendEvent (event=0x7fffbe7ebfe0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#47 QGraphicsView::contextMenuEvent (this=0x1a35240, event=0x7fffbe7ec6f0) at graphicsview/qgraphicsview.cpp:2890
#48 0x00007fe4bf9bba00 in QWidget::event (this=0x1a35240, event=0x7fffbe7ec6f0) at kernel/qwidget.cpp:8462
#49 0x00007fe4bfd644f6 in QFrame::event (this=0x1a35240, e=0x7fffbe7ec6f0) at widgets/qframe.cpp:557
#50 0x00007fe4bff87d3b in QGraphicsView::viewportEvent (this=0x1a35240, event=0x7fffbe7ec6f0) at graphicsview/qgraphicsview.cpp:2864
#51 0x00007fe4c05bac88 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<optimized out>, receiver=0xb9fb20, event=0x7fffbe7ec6f0) at kernel/qcoreapplication.cpp:902
#52 0x00007fe4bf96b3ef in notify_helper (e=0x7fffbe7ec6f0, receiver=0xb9fb20, this=0xb39970) at kernel/qapplication.cpp:4482
#53 QApplicationPrivate::notify_helper (this=0xb39970, receiver=0xb9fb20, e=0x7fffbe7ec6f0) at kernel/qapplication.cpp:4458
#54 0x00007fe4bf970779 in QApplication::notify (this=<optimized out>, receiver=0xb9fb20, e=0x7fffbe7ec6f0) at kernel/qapplication.cpp:4126
#55 0x00007fe4c1269126 in KApplication::notify (this=0xb2ac40, receiver=0xb9fb20, event=0x7fffbe7ec6f0) at ../../kdeui/kernel/kapplication.cpp:311
#56 0x00007fe4c05baafc in QCoreApplication::notifyInternal (this=0xb2ac40, receiver=0xb9fb20, event=0x7fffbe7ec6f0) at kernel/qcoreapplication.cpp:787
#57 0x00007fe4bf9eb9aa in sendSpontaneousEvent (event=0x7fffbe7ec6f0, receiver=0xb9fb20) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#58 QETWidget::translateMouseEvent (this=0x1a35240, event=<optimized out>) at kernel/qapplication_x11.cpp:4573
#59 0x00007fe4bf9ea8be in QApplication::x11ProcessEvent (this=0xb2ac40, event=0x7fffbe7ecee0) at kernel/qapplication_x11.cpp:3690
#60 0x00007fe4bfa13412 in x11EventSourceDispatch (s=0xb3d9f0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#61 0x00007fe4b797ea5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#62 0x00007fe4b797f258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#63 0x00007fe4b797f429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#64 0x00007fe4c05e5ed6 in QEventDispatcherGlib::processEvents (this=0xac4f40, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#65 0x00007fe4bfa1307e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#66 0x00007fe4c05b9cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#67 0x00007fe4c05b9ef7 in QEventLoop::exec (this=0x7fffbe7ed2b0, flags=...) at kernel/qeventloop.cpp:201
#68 0x00007fe4c05be789 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#69 0x00007fe4c36fe1a3 in kdemain (argc=1, argv=0x7fffbe7ed698) at ../../../../plasma/desktop/shell/main.cpp:120
#70 0x00007fe4c333f30d in __libc_start_main (main=0x400640 <main(int, char**)>, argc=1, ubp_av=0x7fffbe7ed698, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffbe7ed688) at libc-start.c:226
#71 0x0000000000400671 in _start ()

Reported using DrKonqi
Comment 1 Aaron J. Seigo 2011-12-16 12:07:36 UTC
Git commit b4c493fe0ea61ad4796ef7cf6ff40e053e8563c7 by Aaron Seigo.
Committed on 16/12/2011 at 13:07.
Pushed by aseigo into branch 'master'.

ensure that the wallpaper list is not empty before trying to use it

BUG:289012

M  +18   -17   applets/frame/frame.cpp

http://commits.kde.org/kdeplasma-addons/b4c493fe0ea61ad4796ef7cf6ff40e053e8563c7