Summary: | kwin crash closeing a 32bit depth window | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Mike Romberg <mike-romberg> |
Component: | general | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED DUPLICATE | ||
Severity: | crash | CC: | mike-romberg |
Priority: | NOR | Keywords: | drkonqi |
Version: | 5.3.2 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
try this C program
libXft/freetype2 demo + kwin crasher |
Description
Mike Romberg
2015-07-24 06:23:11 UTC
I doubt it's related to the depth ("konsole" is ARGB as well) => which client in particular? *** This bug has been marked as a duplicate of bug 346857 *** The client is xosview. It is not released yet as it is a version I am developing. KWin pretty much bites it if I go from XCreateSimpleWindow() to something like this: _visual = DefaultVisual(display_, DefaultScreen(display_)); colormap_ = DefaultColormap( display_, screen() ); setColors(); XSizeHints *szHints = getGeometry(); window_ = XCreateSimpleWindow(display_, DefaultRootWindow(display_), szHints->x, szHints->y, szHints->width, szHints->height, 1, fgcolor_, bgcolor_); setHints(szHints); XFree(szHints); To This: XVisualInfo vinfo; XMatchVisualInfo(display_, DefaultScreen(display_), 32, TrueColor, &vinfo); _visual = vinfo.visual; XSetWindowAttributes attr; colormap_ = XCreateColormap(display_, DefaultRootWindow(display_), vinfo.visual, AllocNone); setColors(); XSizeHints *szHints = getGeometry(); attr.colormap = colormap_; attr.border_pixel = 0; attr.background_pixel = 0; window_ = XCreateWindow(display_, DefaultRootWindow(display_), szHints->x, szHints->y, szHints->width, szHints->height, 0, vinfo.depth, InputOutput, vinfo.visual, CWColormap | CWBorderPixel | CWBackPixel, &attr); I'm basing my changes off a really short C example I found on the interwebs. I think it crashes kwin too. I can attach it (or mail it to someone if there is no way to attach files) Created attachment 93721 [details]
try this C program
This is a very simple C/X11 program that should also reproduce this. Lemme know
if you need me to supply a makefile. On a linux system it builds with just adding -lX11 (I think)
The 32bit thing may be a red herring. Or it may be several things crashing kwin. I ran the 32 bit demo again and no crash. But this libXft example (which xosview also uses) crashed kwin hard (bug tool did not even pop up). So, try this one too (it is also short) Created attachment 93723 [details]
libXft/freetype2 demo + kwin crasher
libXft/freetype2 example program. Closing it also crashes (more reliably so) kwin
> XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0" > after 45 requests (43 known processed) with 0 events remaining. This /is/ bug #346857 and it's also bug #303450 - the "new" qml stuff invokes the close directly again. Adding Xcb::sync(); to "Client::closeWindow()" doesn't help anything - QtQuick just sucks. *** This bug has been marked as a duplicate of bug 346857 *** |