Bug 271340

Summary: Plasma crash when using xrandr rapidly
Product: [Unmaintained] plasma4 Reporter: Amir M <amir.malki>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED UPSTREAM    
Severity: crash CC: aseigo
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Amir M 2011-04-20 10:51:16 UTC
Application: plasma-desktop (0.4)
KDE Platform Version: 4.6.1 (4.6.1)
Qt Version: 4.7.1
Operating System: Linux 2.6.35.11-83.fc14.x86_64 x86_64
Distribution: "Fedora release 14 (Laughlin)"

-- Information about the crash:
- What I was doing when the application crashed:
*) I have 2 displays on this box and I am using xrandr to configure them.

1) I executed this command: "xrandr --output VGA1 --preferred --rotate normal --output DP1 --preferred --rotate left --right-of VGA1"

2) The desktop was reconfiguring itself.

3) I didn't wait untill the desktop finish the reorganization, and I executed this command:
"xrandr --output VGA1 --preferred --rotate normal --output DP1 --preferred --rotate normal --right-of VGA1"
(please note the rotation of output "DP1")

4) Plasma immediately crashed.


- Unusual behavior I noticed:
*) My DP1 screen was flickering, and usally executing those two commands solves the screen flickering
(flickering = 1 second of black screen, which repeat every 2~10 seconds)

-- Backtrace:
Application: Plasma Desktop Shell (plasma-desktop), signal: Aborted
87	  int result = INLINE_SYSCALL (poll, 3, CHECK_N (fds, nfds), nfds, timeout);
[Current thread is 1 (Thread 0x7f7ba76aa840 (LWP 2823))]

Thread 3 (Thread 0x7f7b8c88d700 (LWP 2829)):
#0  0xffffffffff600136 in ?? ()
#1  0x00007f7b8c88ca00 in ?? ()
#2  0x00007fff2ae9c7b2 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 2 (Thread 0x7f7b77143700 (LWP 16439)):
[KCrash Handler]
#6  0x0000003acfc330c5 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x0000003acfc34a76 in abort () at abort.c:92
#8  0x0000003ad184ab8a in g_logv (log_domain=0x3ad18a3e06 "GLib", log_level=<value optimized out>, format=0x3ad18aa4c0 "Cannot create pipe main loop wake-up: %s\n", args1=0x7f7b77142bb0) at gmessages.c:557
#9  0x0000003ad184ac13 in g_log (log_domain=<value optimized out>, log_level=<value optimized out>, format=<value optimized out>) at gmessages.c:577
#10 0x0000003ad183eb62 in g_main_context_init_pipe (context=0x7f7b68002570) at gmain.c:520
#11 0x0000003ad183ef13 in g_main_context_new () at gmain.c:615
#12 0x0000003742786691 in QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate (this=0x7f7b68002710, context=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:310
#13 0x0000003742786770 in QEventDispatcherGlib::QEventDispatcherGlib (this=0x7f7b680020e0, parent=0x0) at kernel/qeventdispatcher_glib.cpp:353
#14 0x0000003742671afc in QThreadPrivate::createEventDispatcher (data=0x37e00c0) at thread/qthread_unix.cpp:225
#15 0x00000037426726cf in QThreadPrivate::start (arg=0x372cff0) at thread/qthread_unix.cpp:278
#16 0x0000003ad0406ccb in start_thread (arg=0x7f7b77143700) at pthread_create.c:301
#17 0x0000003acfce0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f7ba76aa840 (LWP 2823)):
#0  0x0000003acfcd7283 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x0000003ad2408b6a in ?? () from /usr/lib64/libxcb.so.1
#2  0x0000003ad240a1cf in xcb_wait_for_reply () from /usr/lib64/libxcb.so.1
#3  0x000000373ee4db4d in _XReply (dpy=0xa145f0, rep=0x7fff2ae5e670, extra=0, discard=0) at xcb_io.c:532
#4  0x000000373ee29925 in XGetImage (dpy=0xa145f0, d=41944741, x=<value optimized out>, y=<value optimized out>, width=32, height=32, plane_mask=18446744073709551615, format=2) at GetImage.c:75
#5  0x00000037450a1e30 in QX11PixmapData::toImage (this=0x375a770, rect=...) at image/qpixmap_x11.cpp:1546
#6  0x0000003745182bf3 in QRasterPaintEngine::drawPixmap (this=0xa73b50, r=..., pixmap=..., sr=...) at painting/qpaintengine_raster.cpp:2423
#7  0x0000003745104432 in QPainter::drawPixmap (this=0x7fff2ae5ee10, r=..., pm=..., sr=...) at painting/qpainter.cpp:5387
#8  0x000000375155bd50 in drawPixmap (from=..., to=..., amount=6.9531791667311836e-310) at /usr/include/QtGui/qpainter.h:847
#9  Plasma::PaintUtils::transition (from=..., to=..., amount=6.9531791667311836e-310) at /usr/src/debug/kdelibs-4.6.1/plasma/paintutils.cpp:266
#10 0x00007f7b93f4166f in MonitorButton::paint(QPainter*, QStyleOptionGraphicsItem const*, QWidget*) () from /usr/lib64/kde4/plasma_applet_system-monitor.so
#11 0x00000037455a2f3d in _q_paintItem (item=<value optimized out>, painter=0x7fff2ae613f0, option=0x9eaf38, widget=0x1109d80, useWindowOpacity=<value optimized out>, painterStateProtection=true) at graphicsview/qgraphicsscene.cpp:4314
#12 0x00000037455b5734 in QGraphicsScenePrivate::drawItemHelper (this=0x9ead10, item=0x2020a30, painter=0x7fff2ae613f0, option=0x9eaf38, widget=0x1109d80, painterStateProtection=true) at graphicsview/qgraphicsscene.cpp:4427
#13 0x00000037455b78c1 in QGraphicsScenePrivate::draw (this=0x9ead10, item=0x2020a30, painter=0x7fff2ae613f0, viewTransform=0x0, transformPtr=0x2020dc0, exposedRegion=0x1028410, widget=0x1109d80, opacity=1, effectTransform=0x0, wasDirtyParentSceneTransform=false, drawItem=true) at graphicsview/qgraphicsscene.cpp:4931
#14 0x00000037455b84b7 in QGraphicsScenePrivate::drawSubtreeRecursive (this=0x9ead10, item=0x2020a30, painter=0x7fff2ae613f0, viewTransform=0x0, exposedRegion=0x1028410, widget=0x1109d80, parentOpacity=<value optimized out>, effectTransform=0x0) at graphicsview/qgraphicsscene.cpp:4853
#15 0x00000037455b7958 in QGraphicsScenePrivate::draw (this=0x9ead10, item=0x1f93420, painter=0x7fff2ae613f0, viewTransform=0x0, transformPtr=0x1fb1e70, exposedRegion=0x1028410, widget=0x1109d80, opacity=1, effectTransform=0x0, wasDirtyParentSceneTransform=false, drawItem=true) at graphicsview/qgraphicsscene.cpp:4945
#16 0x00000037455b84b7 in QGraphicsScenePrivate::drawSubtreeRecursive (this=0x9ead10, item=0x1f93420, painter=0x7fff2ae613f0, viewTransform=0x0, exposedRegion=0x1028410, widget=0x1109d80, parentOpacity=<value optimized out>, effectTransform=0x0) at graphicsview/qgraphicsscene.cpp:4853
#17 0x00000037455b7958 in QGraphicsScenePrivate::draw (this=0x9ead10, item=0x1192e60, painter=0x7fff2ae613f0, viewTransform=0x0, transformPtr=0x17b47b0, exposedRegion=0x1028410, widget=0x1109d80, opacity=1, effectTransform=0x0, wasDirtyParentSceneTransform=false, drawItem=true) at graphicsview/qgraphicsscene.cpp:4945
#18 0x00000037455b84b7 in QGraphicsScenePrivate::drawSubtreeRecursive (this=0x9ead10, item=0x1192e60, painter=0x7fff2ae613f0, viewTransform=0x0, exposedRegion=0x1028410, widget=0x1109d80, parentOpacity=<value optimized out>, effectTransform=0x0) at graphicsview/qgraphicsscene.cpp:4853
#19 0x00000037455b7958 in QGraphicsScenePrivate::draw (this=0x9ead10, item=0xf1bc20, painter=0x7fff2ae613f0, viewTransform=0x0, transformPtr=0xf1e380, exposedRegion=0x1028410, widget=0x1109d80, opacity=1, effectTransform=0x0, wasDirtyParentSceneTransform=false, drawItem=true) at graphicsview/qgraphicsscene.cpp:4945
#20 0x00000037455b84b7 in QGraphicsScenePrivate::drawSubtreeRecursive (this=0x9ead10, item=0xf1bc20, painter=0x7fff2ae613f0, viewTransform=0x0, exposedRegion=0x1028410, widget=0x1109d80, parentOpacity=<value optimized out>, effectTransform=0x0) at graphicsview/qgraphicsscene.cpp:4853
#21 0x00000037455b8d6c in QGraphicsScenePrivate::drawItems (this=0x9ead10, painter=0x7fff2ae613f0, viewTransform=0x0, exposedRegion=0x1028410, widget=0x1109d80) at graphicsview/qgraphicsscene.cpp:4735
#22 0x00000037455d5e2c in QGraphicsView::paintEvent (this=0x1cbffe0, event=<value optimized out>) at graphicsview/qgraphicsview.cpp:3469
#23 0x0000003745008f9a in QWidget::event (this=0x1cbffe0, event=0x7fff2ae61d40) at kernel/qwidget.cpp:8346
#24 0x00000037453b3906 in QFrame::event (this=0x1cbffe0, e=0x7fff2ae61d40) at widgets/qframe.cpp:557
#25 0x00000037455d70bb in QGraphicsView::viewportEvent (this=0x1cbffe0, event=0x7fff2ae61d40) at graphicsview/qgraphicsview.cpp:2864
#26 0x000000374275b937 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x1109d80, event=0x7fff2ae61d40) at kernel/qcoreapplication.cpp:847
#27 0x0000003744fb7891 in QApplicationPrivate::notify_helper (this=0x9e8e40, receiver=0x1109d80, e=0x7fff2ae61d40) at kernel/qapplication.cpp:4441
#28 0x0000003744fbc3da in QApplication::notify (this=<value optimized out>, receiver=0x1109d80, e=0x7fff2ae61d40) at kernel/qapplication.cpp:4324
#29 0x0000003746240466 in KApplication::notify (this=0x9d5b40, receiver=0x1109d80, event=0x7fff2ae61d40) at /usr/src/debug/kdelibs-4.6.1/kdeui/kernel/kapplication.cpp:311
#30 0x000000374275b7ac in QCoreApplication::notifyInternal (this=0x9d5b40, receiver=0x1109d80, event=0x7fff2ae61d40) at kernel/qcoreapplication.cpp:732
#31 0x0000003745005e68 in sendSpontaneousEvent (this=0x1109db0, pdev=0xf33258, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x107fae0) at ../../src/corelib/kernel/qcoreapplication.h:218
#32 QWidgetPrivate::drawWidget (this=0x1109db0, pdev=0xf33258, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x107fae0) at kernel/qwidget.cpp:5433
#33 0x0000003745006a2f in QWidgetPrivate::paintSiblingsRecursive (this=0x1027f80, pdev=0xf33258, siblings=<value optimized out>, index=<value optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x107fae0) at kernel/qwidget.cpp:5640
#34 0x0000003745005baa in QWidgetPrivate::drawWidget (this=0x1027f80, pdev=0xf33258, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x107fae0) at kernel/qwidget.cpp:5486
#35 0x00000037451c8fe9 in QWidgetBackingStore::sync (this=0x107fae0) at painting/qbackingstore.cpp:1333
#36 0x0000003744ffc1b0 in QWidgetPrivate::syncBackingStore (this=0x1027f80) at kernel/qwidget.cpp:1816
#37 0x00000037450094a2 in QWidget::event (this=0x1cbffe0, event=0x9873390) at kernel/qwidget.cpp:8493
#38 0x00000037453b3906 in QFrame::event (this=0x1cbffe0, e=0x9873390) at widgets/qframe.cpp:557
#39 0x0000003745434cab in QAbstractScrollArea::event (this=0x1cbffe0, e=0x9873390) at widgets/qabstractscrollarea.cpp:996
#40 0x0000003744fb78c4 in QApplicationPrivate::notify_helper (this=0x9e8e40, receiver=0x1cbffe0, e=0x9873390) at kernel/qapplication.cpp:4445
#41 0x0000003744fbc3da in QApplication::notify (this=<value optimized out>, receiver=0x1cbffe0, e=0x9873390) at kernel/qapplication.cpp:4324
#42 0x0000003746240466 in KApplication::notify (this=0x9d5b40, receiver=0x1cbffe0, event=0x9873390) at /usr/src/debug/kdelibs-4.6.1/kdeui/kernel/kapplication.cpp:311
#43 0x000000374275b7ac in QCoreApplication::notifyInternal (this=0x9d5b40, receiver=0x1cbffe0, event=0x9873390) at kernel/qcoreapplication.cpp:732
#44 0x000000374275ef95 in sendEvent (receiver=0x1cbffe0, event_type=77, data=0x990540) at kernel/qcoreapplication.h:215
#45 QCoreApplicationPrivate::sendPostedEvents (receiver=0x1cbffe0, event_type=77, data=0x990540) at kernel/qcoreapplication.cpp:1373
#46 0x00000037455afaaa in dispatchPendingUpdateRequests (this=0x9ead10) at ../../src/gui/graphicsview/qgraphicsview_p.h:189
#47 QGraphicsScenePrivate::_q_processDirtyItems (this=0x9ead10) at graphicsview/qgraphicsscene.cpp:510
#48 0x00000037455afeba in QGraphicsScene::qt_metacall (this=0x9e2e10, _c=QMetaObject::InvokeMetaMethod, _id=14, _a=0x10b2ecb0) at .moc/release-shared/moc_qgraphicsscene.cpp:130
#49 0x0000003751539815 in Plasma::Corona::qt_metacall (this=0x9e2e10, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x10b2ecb0) at /usr/src/debug/kdelibs-4.6.1/x86_64-redhat-linux-gnu/plasma/corona.moc:109
#50 0x000000374ea38255 in ?? () from /usr/lib64/libkdeinit4_plasma-desktop.so
#51 0x000000374276fb4a in QObject::event (this=0x9e2e10, e=<value optimized out>) at kernel/qobject.cpp:1211
#52 0x00000037455bc5f0 in QGraphicsScene::event (this=0x9e2e10, event=0xd2bd780) at graphicsview/qgraphicsscene.cpp:3544
#53 0x0000003744fb78c4 in QApplicationPrivate::notify_helper (this=0x9e8e40, receiver=0x9e2e10, e=0xd2bd780) at kernel/qapplication.cpp:4445
#54 0x0000003744fbc3da in QApplication::notify (this=<value optimized out>, receiver=0x9e2e10, e=0xd2bd780) at kernel/qapplication.cpp:4324
#55 0x0000003746240466 in KApplication::notify (this=0x9d5b40, receiver=0x9e2e10, event=0xd2bd780) at /usr/src/debug/kdelibs-4.6.1/kdeui/kernel/kapplication.cpp:311
#56 0x000000374275b7ac in QCoreApplication::notifyInternal (this=0x9d5b40, receiver=0x9e2e10, event=0xd2bd780) at kernel/qcoreapplication.cpp:732
#57 0x000000374275ef95 in sendEvent (receiver=0x0, event_type=0, data=0x990540) at kernel/qcoreapplication.h:215
#58 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x990540) at kernel/qcoreapplication.cpp:1373
#59 0x0000003742786723 in sendPostedEvents (s=0x9eeb60) at kernel/qcoreapplication.h:220
#60 postEventSourceDispatch (s=0x9eeb60) at kernel/qeventdispatcher_glib.cpp:277
#61 0x0000003ad1841e33 in g_main_dispatch (context=0x9edd20) at gmain.c:2149
#62 g_main_context_dispatch (context=0x9edd20) at gmain.c:2702
#63 0x0000003ad1842610 in g_main_context_iterate (context=0x9edd20, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2780
#64 0x0000003ad18428ad in g_main_context_iteration (context=0x9edd20, may_block=1) at gmain.c:2843
#65 0x00000037427868bf in QEventDispatcherGlib::processEvents (this=0x98fc30, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#66 0x000000374505c59e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:207
#67 0x000000374275ab42 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#68 0x000000374275ad8c in QEventLoop::exec (this=0x7fff2ae63d50, flags=...) at kernel/qeventloop.cpp:201
#69 0x000000374275f24b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#70 0x000000374ea3ebd8 in kdemain () from /usr/lib64/libkdeinit4_plasma-desktop.so
#71 0x0000003acfc1ee5d in __libc_start_main (main=0x400990 <_start+256>, argc=1, ubp_av=0x7fff2ae64148, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fff2ae64138) at libc-start.c:226
#72 0x00000000004008b9 in _start ()

Possible duplicates by query: bug 270069, bug 266777, bug 259833, bug 249309, bug 247798.

Reported using DrKonqi
Comment 1 Christoph Feck 2011-04-24 19:45:37 UTC
Looks like a glib problem, or too many files open.