content of windows (and desktop) appear black when using kwin, but not with kwin_gles - intel graphics

Bug #1283820 reported by avlas
44
This bug affects 9 people
Affects Status Importance Assigned to Milestone
mesa (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

When I start a session all my windows appear in black as well as my desktop if using kwin. This behavior is not entirely deterministic, it occurs about 75% of the times. I have an intel graphic card, and same thing happens no matter sna or uxa is used.

This doesn't happen if using kwin_gles instead (but I don't use it because then the blur effect doesn't work). Please let me know if I should fill a bug in kde as well...

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: kde-window-manager 4:4.11.6-0ubuntu2
ProcVersionSignature: Ubuntu 3.13.0-12.32-generic 3.13.4
Uname: Linux 3.13.0-12-generic x86_64
ApportVersion: 2.13.2-0ubuntu5
Architecture: amd64
CurrentDesktop: KDE
Date: Sun Feb 23 15:51:23 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2011-07-27 (942 days ago)
InstallationMedia: Kubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427)
ProcEnviron:
 LANGUAGE=ca:ca@valencia:en_US:en_GB:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=ca_ES.UTF-8
 SHELL=/bin/bash
SourcePackage: kde-workspace
UpgradeStatus: Upgraded to trusty on 2014-02-17 (6 days ago)

Revision history for this message
avlas (avlas) wrote :
Revision history for this message
avlas (avlas) wrote :

Forgot to say that if I then disable the desktop effects, windows and desktop appear normally. If I then reenable the desktop effects, the same buggy behavior happens

Revision history for this message
Harald Sitter (apachelogger) wrote :

Hi there!

Thanks for reporting this bug! Your bug seems to be a problem with the KDE program itself, and not with our KDE packages. While we appreciate your issue, it would be better if it was tracked at https://bugs.kde.org, so that the KDE developers can deal with this speedily and have direct communication with you as the reporter for more effective debugging.

Thanks!

Changed in kde-workspace (Ubuntu):
status: New → Invalid
Revision history for this message
In , avlas (avlas) wrote :

Bug initially filled in Launchpad (https://bugs.launchpad.net/ubuntu/+source/kde-workspace/+bug/1283820) and redirected from there to here:

When I start a session all my windows appear in black as well as my desktop if using kwin. This behavior is not entirely deterministic, it occurs about 75% of the times. I have an intel graphic card, and same thing happens no matter sna or uxa is used.

This doesn't happen if using kwin_gles instead (but I don't use it because then the blur effect doesn't work).

If I then disable the desktop effects, windows and desktop appear normally. If I then reenable the desktop effects, the same buggy behavior happens.

Reproducible: Sometimes

Revision history for this message
avlas (avlas) wrote :
Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

Please provide (with active compositing, the issue does *not* have to be present) the output of
   qdbus org.kde.kwin /KWin supportInformation
("qdbus" might be "qdbus-qt4")

Also, this maybe /is/ in the blur effect, so please try to deactivate it and see whether the bug still occurs.

Last, this might be bug #330986, being https://bugs.freedesktop.org/show_bug.cgi?id=74316

try
   MESA_DEBUG=1 and LIBGL_DEBUG=1 kwin --replace &
and watch for errors when windows turn black (if this only occurs on session start or not at all, that's gonna be more complicated and we'll check the other information first ;-)

Revision history for this message
In , avlas (avlas) wrote :
Download full text (4.7 KiB)

Output of "qdbus org.kde.kwin /KWin supportInformation" :

Version
=======
KWin version: 4.11.6
KDE SC version (runtime): 4.12.2
KDE SC version (compile): 4.12.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: 0
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: 1
colorCorrected: false
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glDirect: true
glStrictBinding: false
glStrictBindingFollowsDriver: true
glLegacy: false
glCoreProfile: true
glPreferBufferSwap: 101

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

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

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

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) Sandybridge Mobile
OpenGL version string: 3.1 (Core Profile) Mesa 10.1.0-rc1
OpenGL shading language version string: 1.40
Driver: Intel
GPU class: SandyBridge
OpenGL version: 3.1
GLSL version: 1.40
Mesa version: 10.1
X server version: 1.15
Linux kernel version: 3.13
Direct rendering: yes
Requires strict binding: no
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_maximize
kwin4_effect_thumbnailaside
kwin4_effect_dimscreen
kwin4_effect_slidingpopups
kwin4_effect_login
kwin4_effect_wobblywindows
kwin4_effect_magiclamp
kwin4_effect_slideback
kwin4_effect_fadedesktop
kwin4_effect_scalein
kwin4_effect_desktopgrid
kwin4_effect_fade
kwin4_effect_ta...

Read more...

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

> glCoreProfile: true
run "kcmshell4 kwincompositing" and in the third tab set "Compositing Type" to "OpenGL 2", reboot (yes) and see whether it still happens.

Revision history for this message
In , avlas (avlas) wrote :

Disabling Blur doesn't fix the issue, neither it does using OpenGL 2 instead of 3.1 :(

I'm going to try this now and let you know:
MESA_DEBUG=1 and LIBGL_DEBUG=1 kwin --replace &

Revision history for this message
In , avlas (avlas) wrote :

This is what I got with
MESA_DEBUG=1
LIBGL_DEBUG=1
kwin --replace &

QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile
OpenGL version string: 3.1 (Core Profile) Mesa 10.1.0-rc1
OpenGL shading language version string: 1.40
Driver: Intel
GPU class: SandyBridge
OpenGL version: 3.1
GLSL version: 1.40
Mesa version: 10.1
X server version: 1.15
Linux kernel version: 3.13
Direct rendering: yes
Requires strict binding: no
GLSL shaders: yes
Texture NPOT support: yes
Virtual Machine: no
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()

Revision history for this message
In , avlas (avlas) wrote :

Forgot to say that buggy behavior is 100% reproducible to me when I restart a session. On first start after a system reboot, while most of the times it happens, sometimes it doesn't.

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

(In reply to comment #5)
> This is what I got with
> MESA_DEBUG=1
> LIBGL_DEBUG=1
> kwin --replace &

if you typed that in three rows (commands), the statements had no effect. would be:
export MESA_DEBUG=1
export LIBGL_DEBUG=1
kwin --replace &

as a wild shot, you also may try to
export KWIN_USE_BUFFER_AGE=0

- does opengl 1 work?
- is the screen entirely black or can you see the blue glow around the active window? eventually try the mousemark or mouseclick effects?
- can you try downgrading to the latest stable MESA?

Revision history for this message
In , avlas (avlas) wrote :

Ok, with all exports:

Ok, sorry. Then:

QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
libGL: Can't open configuration file /home/jsardid/.drirc: No such file or directory.
libGL: Can't open configuration file /home/jsardid/.drirc: No such file or directory.
libGL: Can't open configuration file /home/jsardid/.drirc: El fitxer o directori no existeix.
libGL: Can't open configuration file /home/jsardid/.drirc: El fitxer o directori no existeix.
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile
OpenGL version string: 3.1 (Core Profile) Mesa 10.1.0-rc1
OpenGL shading language version string: 1.40
Driver: Intel
GPU class: SandyBridge
OpenGL version: 3.1
GLSL version: 1.40
Mesa version: 10.1
X server version: 1.15
Linux kernel version: 3.13
Direct rendering: yes
Requires strict binding: no
GLSL shaders: yes
Texture NPOT support: yes
Virtual Machine: no
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()
Object::connect: No such slot KCommonDecorationButton::slotAppMenuHidden()

Revision history for this message
In , avlas (avlas) wrote :

Downgrading mesa is difficult, sorry, I just use what is in Kubuntu 14.04 (I'll try to see whether there is a way though...)

Glow is working, but I cannot see anything related to the mouse.

No OpenGL option works, only XRender

Revision history for this message
In , avlas (avlas) wrote :

I could not downgrade but I could upgrade to git version and then downgrade again to same 10.1 version using ppa in trusty.

This solved the problem for a while, but now it just happened again. Could this be linked to how linux packages manage to interact with mesa packages? I just got an update on the kernel, but this could be just a coincidence. I'll reinstall mesa to see if it fixes this, and then be watching if this is reproducible in next kernel update... In that case this would most surely be a problem in K-/Ubuntu

Also, in kwin_gles it works fine but I get this error, I guess related to why the blur effect is not activated:

libEGL warning: failed to create a pipe screen for i965
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile
OpenGL version string: OpenGL ES 3.0 Mesa 10.1.0-rc1
OpenGL shading language version string: OpenGL ES GLSL ES 3.0
Driver: Intel
GPU class: SandyBridge
OpenGL version: 3.0
GLSL version: 3.0
Mesa version: 10.1
X server version: 1.15
Linux kernel version: 3.13
Direct rendering: yes
Requires strict binding: no
GLSL shaders: yes
Texture NPOT support: yes
Virtual Machine: no
kwin(3355): Failed to compile fragment shader:
"0:2(14): error: no precision specified this scope for type `vec4'
0:4(13): error: no precision specified this scope for type `float'
0:5(13): error: no precision specified this scope for type `float'
0:6(13): error: no precision specified this scope for type `float'
0:7(13): error: no precision specified this scope for type `float'
0:11(7): error: no precision specified this scope for type `vec4'

kwin(3355): Failed to link shader:
"error: program lacks a fragment shader

Revision history for this message
In , avlas (avlas) wrote :

Although very weird, this seems to be confirmed by experience. If linux packages are updated, I need to manually reinstall the mesa packages to have a working kwin in next session (surely manually reconfiguring mesa would be enough too, but I didn't try). If I don't do that my plasma desktop and application windows appear in black.

Revision history for this message
avlas (avlas) wrote :

Although very weird, I found a correlation confirmed by experience. If linux packages are updated, I need to manually reinstall the mesa packages to have a working kwin in next session (surely manually reconfiguring mesa would be enough too, but I didn't try). If I don't do that my plasma desktop and application windows appear in black.

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

Ubuntu -> ppa or stock packages? 64 or 32 bit?

Revision history for this message
In , avlas (avlas) wrote :

This is Kubuntu Trusty 64 bits (currently in beta) and mesa 10.1.0~rc1 and same for 10.1.0~rc2 (it has been an update to mesa 10.1.0~rc3 recently, but I didn't reboot my system yet)

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

I cannot find the "linux" package on packages.ubuntu.com
However:
any chance you got fglrx or nvidia installed (which should be updated with the kernel and may override libGLX)?

Revision history for this message
In , avlas (avlas) wrote :

- by linux I referred to the kernel, which is split in the following packages:
ii linux-generic 3.13.0.16.20 amd64 Complete Generic Linux kernel and headers
ii linux-headers-3.13.0-16 3.13.0-16.36 all Header files related to Linux kernel version 3.13.0
ii linux-headers-3.13.0-16-generic 3.13.0-16.36 amd64 Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
ii linux-headers-generic 3.13.0.16.20 amd64 Generic Linux kernel headers
ii linux-image-3.13.0-16-generic 3.13.0-16.36 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii linux-image-extra-3.13.0-16-generic 3.13.0-16.36 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii linux-image-generic 3.13.0.16.20 amd64 Generic Linux kernel image
ii linux-libc-dev:amd64 3.13.0-16.36 amd64 Linux Kernel Headers for development

- no nvidia neither fglrx here, I have an intel graphic card, perhaps intel packages or nouveau packages do that as well? not that I use nouveau but it's installed by default and cannot be easily uninstalled without uninstalling kwin, mesa, and more...

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

nouveau and intel both use libGL from MESA (just fglrx and nvidia have incompatible GL libraries) - though it's irritating that nouveau should be mandatory in any way (just eg. libdrm would be, so libs that nouveau and intel both rely on)

Unless your pattern breaks, this would be a downstream issue.
You could stat the mesa files before and after a kernel update to see whether they've been compromised.

Just to rule that out: "updated linux" includes a reboot, yesno?

Revision history for this message
In , avlas (avlas) wrote :

I'll try to check that on next kernel update...

I'm sure this happened after a reboot, not so sure whether restarting a session triggered it too

Revision history for this message
Bill (arancher) wrote :

Same issue here, desktop with Intel graphics. Completely clean install including blank, formatted /home, default installation boots to black desktop with taskbar at bottom, and windows that get opened are also black. Disabling desktop effects with key combination usually gets it going, sometimes crashy. I changed compositing type to xrender, native, and it worked for a bit, but crashed again to black after a reboot. Now OpenGL 3.1 and Native, it has survived four reboots so far without issues. I installed the latest beta iso, issue existed. Then full update as of right now, same issue. I've deleted the .kde folder a couple times with the issue persisting. -Sometimes- when it would work on reboot without those settings being changed. I will post after the next updates or if it crashes again. I also had an approximately 3 year old Dell laptop I was working on here a couple weeks ago with intel graphics, it was doing the same thing on live disc. Same iso, checksum is ok. Did not check live session before install on desktop, running Kubuntu for the two years since I assembled it without issue (Did clean format beta install after fully updated 13.10 upgrade to 14.04 failed during upgrade process).

Bug report at KDE says "RESOLVED DOWNSTREAM", Thomas Lübking says "Unless your pattern breaks, this would be a downstream issue."

Revision history for this message
Bill (arancher) wrote :

On next reboot, black screen again. Rebooted directly after that, then it's working with effects on. ...annoying.

Revision history for this message
In , avlas (avlas) wrote :

I think this was fixed on mesa 10.1 rc3

Revision history for this message
avlas (avlas) wrote :

I think this was fixed on mesa 10.1 rc3

Revision history for this message
Bill (arancher) wrote :

Ok. Still had the issue this afternoon after an update this morning, didn't look which mesa was in the repo, so hopefully this will fix it.

Changed in kdebase-workspace:
importance: Unknown → Medium
Changed in kdebase-workspace:
status: Unknown → Won't Fix
Revision history for this message
Paul White (paulw2u) wrote :

Still happening here on a Dell N7110 with Intel graphics.

If I log out and then back in the desktop displays normally. The black windows only seem to appear on the first log-in after a reboot. There are several responses here to suggest that this is a mesa problem so will add mesa to the bug report.

Revision history for this message
avlas (avlas) wrote :

I confirm I was again bitten by the bug since I updated mesa to 10.1.0-1ubuntu1 packages

Revision history for this message
In , avlas (avlas) wrote :

I confirm I was again bitten by the bug since I updated mesa to 10.1.0-1ubuntu1 packages

Revision history for this message
In , Thomas-luebking (thomas-luebking) wrote :

iow it was NOT fixed by 10.1 rc3?

Revision history for this message
In , avlas (avlas) wrote :

true, it might have happened that it was not fixed with mesa 10.1 rc3 and I transiently didn't suffer the bug, as it doesn't seem to be 100% reproducible

Revision history for this message
Bill (arancher) wrote :

Same here. Also after seeing N7110, I remember that was the model laptop I worked on that I mentioned in the previous post.

Changed in kdebase-workspace:
status: Won't Fix → Unknown
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mesa (Ubuntu):
status: New → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

avlas, thank you for reporting this and helping make Ubuntu better.

Could you please run the following command once from a terminal by ensuring you have the package xdiagnose installed, and that you click the Yes button for attaching additional debugging information:
apport-collect -p mesa 1283820

Changed in mesa (Ubuntu):
importance: Undecided → Low
status: Confirmed → Incomplete
Revision history for this message
avlas (avlas) wrote :

Using kwin 4:5.5.4 now and I don't have this problem anymore

tags: added: trusty
Revision history for this message
penalvch (penalvch) wrote :

avlas, this bug report is being closed due to your last comment https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1283820/comments/37 regarding this being fixed with an update. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

no longer affects: kde-workspace (Ubuntu)
no longer affects: mesa (Ubuntu)
affects: kdebase-workspace → mesa (Ubuntu)
Changed in mesa (Ubuntu):
importance: Medium → Undecided
status: Unknown → New
status: New → Invalid
Revision history for this message
Flames_in_Paradise (ellisistfroh-deactivatedaccount) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.