Bug 341556

Summary: kwin crash on start kde
Product: [Plasma] kwin Reporter: Francisco Ospina <francisco.ospina>
Component: kdecorationsAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Inverse trace

Description Francisco Ospina 2014-12-04 20:50:49 UTC
Created attachment 89832 [details]
Inverse trace

kwin crash on start kde
Comment 1 Thomas Lübking 2014-12-04 21:12:02 UTC
Application: KWin (kwin), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fde90cbf940 (LWP 1718))]

Thread 2 (Thread 0x7fde82cb7700 (LWP 1721)):
#0  0x000000370320bca0 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x000000371f38ef1b in QTWTF::TCMalloc_PageHeap::scavengerThread() () from /lib64/libQtScript.so.4
#2  0x000000371f38ef59 in QTWTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /lib64/libQtScript.so.4
#3  0x0000003703207ee5 in start_thread () from /lib64/libpthread.so.0
#4  0x0000003702ef4b8d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fde90cbf940 (LWP 1718)):
[KCrash Handler]
#5  0x00007fde804ba9a1 in gen7_update_renderbuffer_surface () from /usr/lib64/dri/i965_dri.so
#6  0x00007fde804aa59d in brw_update_renderbuffer_surfaces () from /usr/lib64/dri/i965_dri.so
#7  0x00007fde80488f20 in brw_upload_state () from /usr/lib64/dri/i965_dri.so
#8  0x00007fde80442169 in brw_draw_prims () from /usr/lib64/dri/i965_dri.so
#9  0x00007fde80297359 in vbo_draw_arrays () from /usr/lib64/dri/i965_dri.so
#10 0x00007fde90f3c37e in KWin::GLVertexBuffer::draw(QRegion const&, unsigned int, int, int, bool) () from /lib64/libkwinglutils.so.1
#11 0x00007fde90f3f579 in KWin::GLVertexBuffer::render(QRegion const&, unsigned int, bool) () from /lib64/libkwinglutils.so.1
#12 0x00007fde90f3f5ed in KWin::GLVertexBuffer::render(unsigned int) () from /lib64/libkwinglutils.so.1
#13 0x00007fde91462c6a in KWin::SceneOpenGL2::doPaintBackground(QVector<float> const&) () from /lib64/libkdeinit4_kwin.so
#14 0x00007fde91466555 in KWin::SceneOpenGL::paintBackground(QRegion) () from /lib64/libkdeinit4_kwin.so
#15 0x00007fde91455fc6 in KWin::Scene::paintSimpleScreen(int, QRegion) () from /lib64/libkdeinit4_kwin.so
#16 0x00007fde91453b45 in KWin::Scene::finalPaintScreen(int, QRegion, KWin::ScreenPaintData&) () from /lib64/libkdeinit4_kwin.so
#17 0x00007fde9147727d in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /lib64/libkdeinit4_kwin.so
#18 0x00007fde91456196 in KWin::Scene::paintScreen(int*, QRegion const&, QRegion const&, QRegion*, QRegion*) () from /lib64/libkdeinit4_kwin.so
#19 0x00007fde914699de in KWin::SceneOpenGL::paint(QRegion, QList<KWin::Toplevel*>) () from /lib64/libkdeinit4_kwin.so
#20 0x00007fde9144d6eb in KWin::Compositor::performCompositing() () from /lib64/libkdeinit4_kwin.so
#21 0x00007fde9144eace in KWin::Compositor::slotCompositingOptionsInitialized() () from /lib64/libkdeinit4_kwin.so
#22 0x00007fde913d2b1d in KWin::Compositor::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) [clone .part.47] () from /lib64/libkdeinit4_kwin.so
#23 0x000000370df9b37a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /lib64/libQtCore.so.4
#24 0x000000370de6c820 in QFutureWatcherBase::event(QEvent*) () from /lib64/libQtCore.so.4
#25 0x00000037113cae5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQtGui.so.4
#26 0x00000037113d17b5 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQtGui.so.4
#27 0x000000371324a4fa in KApplication::notify(QObject*, QEvent*) () from /lib64/libkdeui.so.5
#28 0x000000370df868fd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /lib64/libQtCore.so.4
#29 0x000000370df89ae5 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQtCore.so.4
#30 0x000000371146d3cc in QEventDispatcherX11::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtGui.so.4
#31 0x000000370df8538f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#32 0x000000370df856dd in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#33 0x000000370df8ada9 in QCoreApplication::exec() () from /lib64/libQtCore.so.4
#34 0x00007fde9140539e in kdemain () from /lib64/libkdeinit4_kwin.so
#35 0x0000003702e21d65 in __libc_start_main () from /lib64/libc.so.6
#36 0x0000000000400a01 in _start ()

*** This bug has been marked as a duplicate of bug 299333 ***
Comment 2 Thomas Lübking 2014-12-04 21:14:05 UTC
Driver bug. I could assume that the screen layout (or resolution) changes on login.

Does this happen on *every* login?
Please attach the output of "qdbus org.kde.KWin /KWin supportInformation" (call when KWin is running and compositing not suspended)
Comment 3 Francisco Ospina 2014-12-09 16:08:29 UTC
Información sobre KWin:
La siguiente información se debe usar al solicitar ayuda, por ejemplo en http://forum.kde.org.
Proporciona información sobre la instancia que se ejecuta actualmente, qué opciones se están usando,
qué controlador OpenGL y qué efectos están activos.
Por favor, envíe la información proporcionada a continuación de este texto de introducción a un
servicio de bandeja de pegar como http://paste.kde.org en lugar de pegarla en hilos de ayuda.

==========================

Version
=======
KWin version: 4.11.14
KDE SC version (runtime): 4.14.3
KDE SC version (compile): 4.14.2
Qt Version: 4.8.6

Options
=======
focusPolicy: 0
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 4
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
showDesktopIsMinimizeAll: false
rollOverDesktops: true
focusStealingPreventionLevel: 1
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
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
inactiveTabsSkipTaskbar: false
autogroupSimilarWindows: false
autogroupInForeground: true
compositingMode: 1
useCompositing: false
compositingInitialized: false
hiddenPreviews: 1
unredirectFullscreen: false
glSmoothScale: 2
colorCorrected: false
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glDirect: true
glStrictBinding: true
glStrictBindingFollowsDriver: true
glLegacy: false
glCoreProfile: false
glPreferBufferSwap: 97

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 
timeThreshold: 150
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens
=======
Multi-Head: no
Active screen follows mouse:  no
Number of Screens: 1
Screen 0 Geometry: 0,0,1366x768

Decoration
==========
Current Plugin: kwin3_aurorae
Shadows: yes
Alpha: yes
Announces Alpha: yes
Tabbing: no
Frame Overlap: yes
Blur Behind: yes

Compositing
===========
Qt Graphics System: native
Compositing is not active
Comment 4 Francisco Ospina 2014-12-09 16:11:22 UTC
Transparencies always disabled when in login
Comment 5 Thomas Lübking 2014-12-09 16:26:43 UTC
> call when KWin is running and compositing not suspended
As long as compositing isn't active, the backtrace is close to worthless :-(

If you cannot activate compositing at all (SHIFT+Alt+F12), please provide the output of "glxinfo" instead (to hint the GPU)

Also: what's the output of
   grep -i glamor /var/log/Xorg.0.log
Comment 6 Francisco Ospina 2014-12-09 17:07:02 UTC
 Thomas Lübking, thanks for your help. With (Shift + Alt + F12 ) desktop transparencies returned to work.

Sorry for my poor English.
Comment 7 Thomas Lübking 2014-12-09 17:13:48 UTC
Don't worry about your english, but please dump
    qdbus org.kde.KWin /KWin supportInformation
when the compositor is active ;-)
Comment 8 Francisco Ospina 2014-12-09 17:19:35 UTC
"qdbus org.kde.KWin /KWin supportInformation" after execute  (Shift + Alt + F12 ) 

Información sobre KWin:
La siguiente información se debe usar al solicitar ayuda, por ejemplo en http://forum.kde.org.
Proporciona información sobre la instancia que se ejecuta actualmente, qué opciones se están usando,
qué controlador OpenGL y qué efectos están activos.
Por favor, envíe la información proporcionada a continuación de este texto de introducción a un
servicio de bandeja de pegar como http://paste.kde.org en lugar de pegarla en hilos de ayuda.

==========================

Version
=======
KWin version: 4.11.14
KDE SC version (runtime): 4.14.3
KDE SC version (compile): 4.14.2
Qt Version: 4.8.6

Options
=======
focusPolicy: 0
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 4
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
showDesktopIsMinimizeAll: false
rollOverDesktops: true
focusStealingPreventionLevel: 1
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
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: false
glSmoothScale: 2
colorCorrected: false
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glDirect: true
glStrictBinding: true
glStrictBindingFollowsDriver: true
glLegacy: false
glCoreProfile: false
glPreferBufferSwap: 101

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 
timeThreshold: 150
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens
=======
Multi-Head: no
Active screen follows mouse:  no
Number of Screens: 1
Screen 0 Geometry: 0,0,1366x768

Decoration
==========
Current Plugin: kwin3_aurorae
Shadows: yes
Alpha: yes
Announces Alpha: yes
Tabbing: no
Frame Overlap: yes
Blur Behind: yes

Compositing
===========
Qt Graphics System: native
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile 
OpenGL version string: 3.0 Mesa 10.3.3
OpenGL shading language version string: 1.30
Driver: Intel
GPU class: Haswell
OpenGL version: 3.0
GLSL version: 1.30
Mesa version: 10.3.3
Linux kernel version: 3.17.4
Direct rendering: yes
Requires strict binding: yes
GLSL shaders:  yes
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used
Painting blocks for vertical retrace:  no

Loaded Effects:
---------------
kwin4_effect_zoom
kwin4_effect_slidingpopups
kwin4_effect_login
kwin4_effect_minimizeanimation
kwin4_effect_screenshot
kwin4_effect_slide
kwin4_effect_desktopgrid
kwin4_effect_translucency
kwin4_effect_maximize
kwin4_effect_fade
kwin4_effect_highlightwindow
kwin4_effect_taskbarthumbnail
kwin4_effect_dialogparent
kwin4_effect_presentwindows
kwin4_effect_blur
kwin4_effect_logout
kwin4_effect_dashboard
kwin4_effect_screenedge
kwin4_effect_startupfeedback
kwin4_effect_kscreen

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

Effect Settings:
----------------
kwin4_effect_zoom:
zoomFactor: 1.2
mousePointer: 0
mouseTracking: 0
enableFocusTracking: false
followFocus: true
focusDelay: 350
moveFactor: 20
targetZoom: 1

kwin4_effect_slidingpopups:
fadeInTime: 250
fadeOutTime: 250

kwin4_effect_login:

kwin4_effect_minimizeanimation:

kwin4_effect_screenshot:

kwin4_effect_slide:

kwin4_effect_desktopgrid:
zoomDuration: 300
border: 10
desktopNameAlignment: 0
layoutMode: 0
customLayoutRows: 2
usePresentWindows: true

kwin4_effect_translucency:

kwin4_effect_maximize:

kwin4_effect_fade:

kwin4_effect_highlightwindow:

kwin4_effect_taskbarthumbnail:

kwin4_effect_dialogparent:

kwin4_effect_presentwindows:
layoutMode: 0
showCaptions: true
showIcons: true
doNotCloseWindows: false
ignoreMinimized: false
accuracy: 20
fillGaps: true
fadeDuration: 150
showPanel: false
leftButtonWindow: 1
rightButtonWindow: 2
middleButtonWindow: 0
leftButtonDesktop: 2
middleButtonDesktop: 0
rightButtonDesktop: 0
dragToClose: false

kwin4_effect_blur:
blurRadius: 12
cacheTexture: true

kwin4_effect_logout:
useBlur: true

kwin4_effect_dashboard:
brightness: 0.5
saturation: 0.5
blur: false

kwin4_effect_screenedge:

kwin4_effect_startupfeedback:

kwin4_effect_kscreen:
Comment 9 Thomas Lübking 2014-12-11 23:35:02 UTC
> Qt Graphics System: native
Wild guess: set this to raster in "kcmshell4 kwincompositing" (3rd tab, kwin will restart)
The aurorae decoration doesn't like the native graphicssystem and w/ glamor acceleration, I could assume a 1-process, 2-contexts "conflict".

But it's really just a very wild guess.