Bug 323424

Summary: kwin crash when alt+tabbing into full-screen Okular window
Product: [Plasma] kwin Reporter: Ryan K <ryanskingsbury+kde>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 4.10.5   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ryan K 2013-08-12 18:52:46 UTC
Application: kwin (4.10.5)
KDE Platform Version: 4.10.5
Qt Version: 4.8.4
Operating System: Linux 3.8.0-27-generic x86_64
Distribution: Linux Mint 15 Olivia

-- Information about the crash:
- What I was doing when the application crashed:

Mint 15 KDE x64 with Intel ironlake graphics, desktop composition enabled
I had Firefox and Okular open, with Okular in presentation mode. Upon alt+tabbing from FF to Okular, the screen went gray, then kwin crashed. Note that the .pdf open in Okular is large (~1,000 pages).

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

Thread 3 (Thread 0x7f534bfff700 (LWP 26286)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f5374a04e77 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007f5374a04ea9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007f536bd39f8e in start_thread (arg=0x7f534bfff700) at pthread_create.c:311
#4  0x00007f5378111e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7f535b79e700 (LWP 18160)):
#0  0x00007f537810a233 in select () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f537354d4f3 in qt_safe_select (nfds=13, fdread=0x7f534c000ac8, fdwrite=0x7f534c000d60, fdexcept=0x7f534c000ff8, orig_timeout=0x0) at kernel/qcore_unix.cpp:83
#2  0x00007f5373552499 in QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7f534c000910, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:223
#3  0x00007f5373552c82 in QEventDispatcherUNIX::processEvents (this=0x7f534c0008f0, flags=...) at kernel/qeventdispatcher_unix.cpp:937
#4  0x00007f537352038f in QEventLoop::processEvents (this=this@entry=0x7f535b79dd90, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f5373520618 in QEventLoop::exec (this=this@entry=0x7f535b79dd90, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f5373422410 in QThread::exec (this=this@entry=0x252c510) at thread/qthread.cpp:542
#7  0x00007f5373501edf in QInotifyFileSystemWatcherEngine::run (this=0x252c510) at io/qfilesystemwatcher_inotify.cpp:256
#8  0x00007f5373424bec in QThreadPrivate::start (arg=0x252c510) at thread/qthread_unix.cpp:338
#9  0x00007f536bd39f8e in start_thread (arg=0x7f535b79e700) at pthread_create.c:311
#10 0x00007f5378111e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f53788ee7c0 (LWP 26276)):
[KCrash Handler]
#6  brw_update_renderbuffer_surface (brw=0x16f5480, rb=0x16a6800, unit=0) at brw_wm_surface_state.c:1220
#7  0x00007f535a32f6c0 in brw_update_renderbuffer_surfaces (brw=0x16f5480) at brw_wm_surface_state.c:1316
#8  0x00007f535a30a922 in brw_upload_state (brw=brw@entry=0x16f5480) at brw_state_upload.c:500
#9  0x00007f535a2d29cf in brw_try_draw_prims (max_index=3, min_index=4021712776, ib=<optimized out>, nr_prims=<optimized out>, prim=0x7fffefb67770, arrays=<optimized out>, ctx=0x16f5480) at brw_draw.c:500
#10 brw_draw_prims (ctx=0x16f5480, prim=0x7fffefb67770, nr_prims=<optimized out>, ib=<optimized out>, index_bounds_valid=<optimized out>, min_index=0, max_index=3, tfb_vertcount=0x0) at brw_draw.c:587
#11 0x00007f5359e2f954 in vbo_draw_arrays (ctx=0x16f5480, mode=mode@entry=6, start=start@entry=0, count=count@entry=4, numInstances=numInstances@entry=1, baseInstance=baseInstance@entry=0) at ../../../../../src/mesa/vbo/vbo_exec_array.c:619
#12 0x00007f5359e2fa61 in vbo_exec_DrawArrays (mode=mode@entry=6, start=start@entry=0, count=count@entry=4) at ../../../../../src/mesa/vbo/vbo_exec_array.c:649
#13 0x00007f5359e2fcc5 in _mesa_DrawArrays (mode=mode@entry=6, first=first@entry=0, count=count@entry=4) at ../../../../../src/mesa/vbo/vbo_exec_array.c:1409
#14 0x00007f5359eb4e85 in _mesa_meta_glsl_Clear (ctx=ctx@entry=0x16f5480, buffers=buffers@entry=2) at ../../../../../src/mesa/drivers/common/meta.c:2347
#15 0x00007f535a2c75c3 in brw_clear (ctx=0x16f5480, mask=0) at brw_clear.c:255
#16 0x00007f53784a2881 in KWin::SceneOpenGL::paintBackground (this=this@entry=0x19a1040, region=...) at ../../kwin/scene_opengl.cpp:349
#17 0x00007f5378496dff in KWin::Scene::paintGenericScreen (this=this@entry=0x19a1040, orig_mask=orig_mask@entry=32) at ../../kwin/scene.cpp:194
#18 0x00007f53784a9c8a in KWin::SceneOpenGL2::paintGenericScreen (this=this@entry=0x19a1040, mask=mask@entry=32, data=...) at ../../kwin/scene_opengl.cpp:516
#19 0x00007f5378495ce1 in KWin::Scene::finalPaintScreen (this=0x19a1040, mask=mask@entry=32, region=..., data=...) at ../../kwin/scene.cpp:184
#20 0x00007f53784b6830 in KWin::EffectsHandlerImpl::paintScreen (this=0x1b41110, mask=mask@entry=32, region=..., data=...) at ../../kwin/effects.cpp:254
#21 0x00007f53768eeb87 in KWin::Effect::paintScreen (this=this@entry=0x1571cf0, mask=mask@entry=32, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:489
#22 0x00007f53784b67db in KWin::EffectsHandlerImpl::paintScreen (this=0x1b41110, mask=mask@entry=32, region=..., data=...) at ../../kwin/effects.cpp:251
#23 0x00007f53768eeb87 in KWin::Effect::paintScreen (this=this@entry=0x1bc2df0, mask=mask@entry=32, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:489
#24 0x00007f53784b67db in KWin::EffectsHandlerImpl::paintScreen (this=0x1b41110, mask=mask@entry=32, region=..., data=...) at ../../kwin/effects.cpp:251
#25 0x00007f535806c64f in KWin::BoxSwitchEffect::paintScreen (this=this@entry=0x16c2610, mask=mask@entry=32, region=..., data=...) at ../../../kwin/effects/boxswitch/boxswitch.cpp:138
#26 0x00007f53784b67db in KWin::EffectsHandlerImpl::paintScreen (this=0x1b41110, mask=mask@entry=32, region=..., data=...) at ../../kwin/effects.cpp:251
#27 0x00007f53580a14c2 in KWin::CoverSwitchEffect::paintScreen (this=this@entry=0x1d6d910, mask=mask@entry=32, region=..., data=...) at ../../../kwin/effects/coverswitch/coverswitch.cpp:139
#28 0x00007f53784b67db in KWin::EffectsHandlerImpl::paintScreen (this=0x1b41110, mask=32, region=..., data=...) at ../../kwin/effects.cpp:251
#29 0x00007f5378496fb8 in KWin::Scene::paintScreen (this=this@entry=0x19a1040, mask=mask@entry=0x7fffefb683c4, region=region@entry=0x7fffefb68470) at ../../kwin/scene.cpp:140
#30 0x00007f53784a40ce in KWin::SceneOpenGL::paint (this=0x19a1040, damage=..., toplevels=...) at ../../kwin/scene_opengl.cpp:308
#31 0x00007f537849098c in KWin::Compositor::performCompositing (this=0x165fe10) at ../../kwin/composite.cpp:610
#32 0x00007f537353b3ec in QObject::event (this=0x165fe10, e=<optimized out>) at kernel/qobject.cpp:1156
#33 0x00007f53728c78ec in QApplicationPrivate::notify_helper (this=this@entry=0x1497920, receiver=receiver@entry=0x165fe10, e=e@entry=0x7fffefb68ba0) at kernel/qapplication.cpp:4567
#34 0x00007f53728ca25b in QApplication::notify (this=this@entry=0x7fffefb691e0, receiver=receiver@entry=0x165fe10, e=e@entry=0x7fffefb68ba0) at kernel/qapplication.cpp:4428
#35 0x00007f5377bfe1a6 in KApplication::notify (this=0x7fffefb691e0, receiver=0x165fe10, event=0x7fffefb68ba0) at ../../kdeui/kernel/kapplication.cpp:311
#36 0x00007f537352163e in QCoreApplication::notifyInternal (this=0x7fffefb691e0, receiver=0x165fe10, event=event@entry=0x7fffefb68ba0) at kernel/qcoreapplication.cpp:946
#37 0x00007f5373552b72 in sendEvent (event=0x7fffefb68ba0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#38 QTimerInfoList::activateTimers (this=0x1498468) at kernel/qeventdispatcher_unix.cpp:622
#39 0x00007f5373552bd0 in QEventDispatcherUNIX::activateTimers (this=this@entry=0x14232c0) at kernel/qeventdispatcher_unix.cpp:879
#40 0x00007f5373552d28 in QEventDispatcherUNIX::processEvents (this=this@entry=0x14232c0, flags=...) at kernel/qeventdispatcher_unix.cpp:941
#41 0x00007f537296db9f in QEventDispatcherX11::processEvents (this=0x14232c0, flags=...) at kernel/qeventdispatcher_x11.cpp:152
#42 0x00007f537352038f in QEventLoop::processEvents (this=this@entry=0x7fffefb68ef0, flags=...) at kernel/qeventloop.cpp:149
#43 0x00007f5373520618 in QEventLoop::exec (this=this@entry=0x7fffefb68ef0, flags=...) at kernel/qeventloop.cpp:204
#44 0x00007f5373525cf6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#45 0x00007f53728c5ffc in QApplication::exec () at kernel/qapplication.cpp:3828
#46 0x00007f5378447f0a in kdemain (argc=1, argv=0x7fffefb69328) at ../../kwin/main.cpp:537
#47 0x00007f5378039ea5 in __libc_start_main (main=0x4006d0 <main(int, char**)>, argc=1, ubp_av=0x7fffefb69328, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffefb69318) at libc-start.c:260
#48 0x0000000000400701 in _start ()

This bug may be a duplicate of or related to bug 252817, bug 299333.

Possible duplicates by query: bug 323303, bug 323133, bug 322959, bug 322487, bug 321352.

Reported using DrKonqi
Comment 1 Martin Flöser 2013-08-12 19:02:05 UTC

*** This bug has been marked as a duplicate of bug 299333 ***
Comment 2 Thomas Lübking 2013-08-12 19:04:03 UTC
driver bug.
"kcmshell4 kwincompositing", 3rd tab, disable "suspend compositing for fullscreen windows"

please record your GPU (in doubt, output of "qdbus org.kde.kwin /KWin supportInformation") - we try to determine affected systems. Thanks.
Comment 3 Ryan K 2013-08-12 19:14:30 UTC
As requested. Thanks!

Version
=======
KWin version: 4.10.5
KDE SC version (runtime): 4.10.5
KDE SC version (compile): 4.10.5
Qt Version: 4.8.4

Options
=======
focusPolicy: 0
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
activeMouseScreen: false
placement: 4
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
showDesktopIsMinimizeAll: false
rollOverDesktops: true
focusStealingPreventionLevel: 2
legacyFullscreenSupport: false
operationTitlebarDblClick: 
commandActiveTitlebar1: 0
commandActiveTitlebar2: 30
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 30
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 31
commandAll1: 10
commandAll2: 3
commandAll3: 14
keyCmdAllModKey: 16777251
showGeometryTip: false
condensedTitle: false
electricBorders: false
electricBorderDelay: 150
electricBorderCooldown: 350
electricBorderPushbackPixels: 1
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
inactiveTabsSkipTaskbar: false
autogroupSimilarWindows: false
autogroupInForeground: true
compositingMode: 1
useCompositing: true
compositingInitialized: true
hiddenPreviews: 1
unredirectFullscreen: true
glSmoothScale: 2
glVSync: true
colorCorrected: false
xrenderSmoothScale: false
maxFpsInterval: 17
refreshRate: 0
vBlankTime: 6144
glDirect: true
glStrictBinding: false
glStrictBindingFollowsDriver: true
glLegacy: false

Screens
=======
Multi-Head: no
Number of Screens: 1
Screen 0 Geometry: 0,0,1920x1200

Compositing
===========
Qt Graphics System: raster
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ironlake Desktop 
OpenGL version string: 2.1 Mesa 9.1.3
Driver: Intel
GPU class: i965
OpenGL version: 2.1
Mesa version: 9.1.3
X server version: 1.13.3
Linux kernel version: 3.8
Direct rendering: yes
Requires strict binding: no
GLSL shaders:  yes
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used

Loaded Effects:
---------------
kwin4_effect_zoom
kwin4_effect_dimscreen
kwin4_effect_login
kwin4_effect_slidingpopups
kwin4_effect_coverswitch
kwin4_effect_minimizeanimation
kwin4_effect_translucency
kwin4_effect_screenshot
kwin4_effect_cube
kwin4_effect_boxswitch
kwin4_effect_slide
kwin4_effect_desktopgrid
kwin4_effect_flipswitch
kwin4_effect_diminactive
kwin4_effect_maximize
kwin4_effect_fade
kwin4_effect_dialogparent
kwin4_effect_highlightwindow
kwin4_effect_taskbarthumbnail
kwin4_effect_presentwindows
kwin4_effect_blur
kwin4_effect_logout
kwin4_effect_dashboard
kwin4_effect_outline
kwin4_effect_startupfeedback

Currently Active Effects:
-------------------------
kwin4_effect_diminactive
kwin4_effect_blur