Bug 347192 - Multimonitor setup modification
Summary: Multimonitor setup modification
Status: RESOLVED DUPLICATE of bug 343307
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.3.0
Platform: Kubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-05-04 21:56 UTC by Ondrej.Bozek
Modified: 2015-05-06 20:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej.Bozek 2015-05-04 21:56:51 UTC
Application: kwin_x11 (5.3.0)

Qt Version: 5.4.1
Operating System: Linux 3.19.0-15-generic x86_64
Distribution: Ubuntu 15.04

-- Information about the crash:
Error occured when I was changing, my monitor setup in KDE settings. I chaged position of external monitor (from left to top) and changed main monitor (from external to NTB monitor), then error occured. It usually occurs when I change configuration of my monitor setup.

The crash can be reproduced sometimes.

-- Backtrace:
Application: KWin (kwin_x11), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f49087a8800 (LWP 7922))]

Thread 3 (Thread 0x7f48ebfff700 (LWP 7929)):
#0  0x00007f4908281743 in select () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f4906873101 in qt_safe_select (nfds=14, fdread=fdread@entry=0x7f48e0000a78, fdwrite=fdwrite@entry=0x7f48e0000d08, fdexcept=fdexcept@entry=0x7f48e0000f98, orig_timeout=orig_timeout@entry=0x0) at kernel/qcore_unix.cpp:75
#2  0x00007f4906874cd2 in select (timeout=0x0, exceptfds=0x7f48e0000f98, writefds=0x7f48e0000d08, readfds=0x7f48e0000a78, nfds=<optimized out>, this=0x7f48e00008c0) at kernel/qeventdispatcher_unix.cpp:320
#3  QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7f48e00008e0, flags=..., flags@entry=..., timeout=timeout@entry=0x0) at kernel/qeventdispatcher_unix.cpp:196
#4  0x00007f4906875275 in QEventDispatcherUNIX::processEvents (this=0x7f48e00008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:607
#5  0x00007f490681c3e2 in QEventLoop::exec (this=this@entry=0x7f48ebffeda0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#6  0x00007f49065dbb44 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#7  0x00007f490043ef65 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#8  0x00007f49065e0b0e in QThreadPrivate::start (arg=0x21cdb50) at thread/qthread_unix.cpp:337
#9  0x00007f4907b006aa in start_thread (arg=0x7f48ebfff700) at pthread_create.c:333
#10 0x00007f490828aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f48e9463700 (LWP 7931)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f49053e4644 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#2  0x00007f49053e4689 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#3  0x00007f4907b006aa in start_thread (arg=0x7f48e9463700) at pthread_create.c:333
#4  0x00007f490828aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f49087a8800 (LWP 7922)):
[KCrash Handler]
#6  gen7_update_renderbuffer_surface (brw=0x7f48f0010038, rb=0x28c6fa0, layered=<optimized out>, unit=0) at ../../../../../../../src/mesa/drivers/dri/i965/gen7_wm_surface_state.c:466
#7  0x00007f48eac0df9d in brw_update_renderbuffer_surfaces (brw=0x7f48f0010038) at ../../../../../../../src/mesa/drivers/dri/i965/brw_wm_surface_state.c:733
#8  0x00007f48eabed584 in brw_upload_state (brw=0x7f48f0010038) at ../../../../../../../src/mesa/drivers/dri/i965/brw_state_upload.c:648
#9  0x00007f48eab7cb44 in brw_try_draw_prims (indirect=<optimized out>, max_index=<optimized out>, min_index=<optimized out>, ib=<optimized out>, nr_prims=<optimized out>, prims=<optimized out>, arrays=<optimized out>, ctx=<optimized out>) at ../../../../../../../src/mesa/drivers/dri/i965/brw_draw.c:514
#10 brw_draw_prims (ctx=0x7f48f0010038, prims=0x7ffe3c1990c0, nr_prims=1, ib=0x0, index_bounds_valid=1 '\001', min_index=0, max_index=23, unused_tfb_object=0x0, indirect=0x0) at ../../../../../../../src/mesa/drivers/dri/i965/brw_draw.c:607
#11 0x00007f48ea9df07c in vbo_draw_arrays (ctx=0x7f48f0010038, mode=4, start=0, count=24, numInstances=1, baseInstance=0) at ../../../../src/mesa/vbo/vbo_exec_array.c:645
#12 0x00007f490088e371 in KWin::GLVertexBuffer::draw (this=this@entry=0x29b3c90, region=..., primitiveMode=primitiveMode@entry=4, first=first@entry=0, count=24, hardwareClipping=hardwareClipping@entry=false) at ../../libkwineffects/kwinglutils.cpp:2393
#13 0x00007f4900892189 in KWin::GLVertexBuffer::render (this=this@entry=0x29b3c90, region=..., primitiveMode=primitiveMode@entry=4, hardwareClipping=hardwareClipping@entry=false) at ../../libkwineffects/kwinglutils.cpp:2346
#14 0x00007f49008921fd in KWin::GLVertexBuffer::render (this=this@entry=0x29b3c90, primitiveMode=primitiveMode@entry=4) at ../../libkwineffects/kwinglutils.cpp:2340
#15 0x00007f4907e2efaa in KWin::SceneOpenGL2::doPaintBackground (this=<optimized out>, vertices=...) at ../scene_opengl.cpp:1054
#16 0x00007f4907e34705 in KWin::SceneOpenGL::paintBackground (this=this@entry=0x2878820, region=...) at ../scene_opengl.cpp:742
#17 0x00007f4907e1b2ac in KWin::Scene::paintSimpleScreen (this=this@entry=0x2878820, orig_mask=orig_mask@entry=0, region=...) at ../scene.cpp:371
#18 0x00007f4907e2e743 in KWin::SceneOpenGL2::paintSimpleScreen (this=this@entry=0x2878820, mask=mask@entry=0, region=...) at ../scene_opengl.cpp:1015
#19 0x00007f4907e17e15 in KWin::Scene::finalPaintScreen (this=0x2878820, mask=mask@entry=0, region=..., data=...) at ../scene.cpp:201
#20 0x00007f4907e52f1f in KWin::EffectsHandlerImpl::paintScreen (this=0x2ec2870, mask=mask@entry=0, region=..., data=...) at ../effects.cpp:397
#21 0x00007f4905dec66f in KWin::Effect::paintScreen (this=this@entry=0x3617c50, mask=mask@entry=0, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:535
#22 0x00007f4907e52ecd in KWin::EffectsHandlerImpl::paintScreen (this=0x2ec2870, mask=mask@entry=0, region=..., data=...) at ../effects.cpp:394
#23 0x00007f4905dec66f in KWin::Effect::paintScreen (this=this@entry=0x21488a0, mask=mask@entry=0, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:535
#24 0x00007f4907e52ecd in KWin::EffectsHandlerImpl::paintScreen (this=0x2ec2870, mask=0, region=..., data=...) at ../effects.cpp:394
#25 0x00007f4907e17a7a in KWin::Scene::paintScreen (this=this@entry=0x2878820, mask=mask@entry=0x7ffe3c19981c, damage=..., repaint=..., updateRegion=updateRegion@entry=0x7ffe3c199830, validRegion=validRegion@entry=0x7ffe3c199840) at ../scene.cpp:151
#26 0x00007f4907e35037 in KWin::SceneOpenGL::paint (this=0x2878820, damage=..., toplevels=...) at ../scene_opengl.cpp:661
#27 0x00007f4907e0ff33 in KWin::Compositor::performCompositing (this=0x2084740) at ../composite.cpp:700
#28 0x00007f49068506f3 in QObject::event (this=0x2084740, e=<optimized out>) at kernel/qobject.cpp:1267
#29 0x00007f4907128b2c in QApplicationPrivate::notify_helper (this=0x2005250, receiver=0x2084740, e=0x7ffe3c199c50) at kernel/qapplication.cpp:3720
#30 0x00007f490712e000 in QApplication::notify (this=0x7ffe3c199e90, receiver=0x2084740, e=0x7ffe3c199c50) at kernel/qapplication.cpp:3503
#31 0x00007f490681ec2b in QCoreApplication::notifyInternal (this=0x7ffe3c199e90, receiver=0x2084740, event=event@entry=0x7ffe3c199c50) at kernel/qcoreapplication.cpp:935
#32 0x00007f4906876ae5 in sendEvent (event=0x7ffe3c199c50, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:228
#33 QTimerInfoList::activateTimers (this=0x2032438) at kernel/qtimerinfo_unix.cpp:635
#34 0x00007f49068746a0 in QEventDispatcherUNIX::activateTimers (this=this@entry=0x2031760) at kernel/qeventdispatcher_unix.cpp:549
#35 0x00007f4906875243 in QEventDispatcherUNIX::processEvents (this=0x2031760, flags=flags@entry=...) at kernel/qeventdispatcher_unix.cpp:611
#36 0x00007f48f277596d in QUnixEventDispatcherQPA::processEvents (this=<optimized out>, flags=...) at eventdispatchers/qunixeventdispatcher.cpp:62
#37 0x00007f490681c3e2 in QEventLoop::exec (this=this@entry=0x7ffe3c199db0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#38 0x00007f490682402c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1188
#39 0x00007f4906b6331c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1510
#40 0x00007f49071247a5 in QApplication::exec () at kernel/qapplication.cpp:2956
#41 0x00007f4908553310 in kdemain (argc=2, argv=0x7ffe3c199ff8) at ../main_x11.cpp:300
#42 0x00007f49081a4a40 in __libc_start_main (main=0x400790 <main(int, char**)>, argc=2, argv=0x7ffe3c199ff8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe3c199fe8) at libc-start.c:289
#43 0x00000000004007c9 in _start ()

Reported using DrKonqi
Comment 1 david.pretty+kde 2015-05-06 10:30:59 UTC
I have a similar issue with Arch linux after updating to 5.3. 
If I unplug the external monitor from my laptop then my system hangs. Even after reboot I cannot log in unless I reattach the external monitor.
Comment 2 Thomas Lübking 2015-05-06 20:50:48 UTC
Driver bug, either you're (for what reason?) using OpenGL 3.1 compositing (kcmshell5 kwincompositing) or glamor acceleration ("grep -i glamor /var/log/Xorg.0.log", see dupe)



@ david
I doubt that is any related. To inspect the problem, ensure to be able to ssh into the notebook from another machine, cause the problematic condition, ssh login and run

   export DISPLAY=:0
   xrandr -q

And file a bug with those information, pot. also attach /var/log/Xorg.0.log, but if you cannot even login (ie. the display manager is not visible either?) that's not a KWin issue (and probably not even a KDE one)

*** This bug has been marked as a duplicate of bug 343307 ***