Bug 192468

Summary: Kwin crashed after command kwin --replace
Product: [Plasma] kwin Reporter: Tomasz <tomek_matacz>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash Keywords: investigated, triaged
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Tomasz 2009-05-12 20:08:38 UTC
Version:           4.2.3 (using KDE 4.2.3)
OS:                Linux
Installed from:    Ubuntu Packages

I use the command kwin --replace because after start KDE, desktop effects are starting with default settings.
Program: KWin (kwin), sygnał SIGABRT

Thread 1 (Thread 0xb5a44720 (LWP 3438)):
[KCrash Handler]
#6  0xb7f85430 in __kernel_vsyscall ()
#7  0xb67776d0 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb6779098 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb67705ce in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#10 0xb6af4989 in _XAllocID () from /usr/lib/libX11.so.6
#11 0xb69ddc1c in XRenderCreatePicture () from /usr/lib/libXrender.so.1
#12 0xb709fd19 in ?? () from /usr/lib/libQtGui.so.4
#13 0xb708b8b9 in QPixmap::fromImage () from /usr/lib/libQtGui.so.4
#14 0xb70d8a3c in QPaintEngine::drawImage () from /usr/lib/libQtGui.so.4
#15 0xb71be0e4 in ?? () from /usr/lib/libQtGui.so.4
#16 0xb70ef2ec in ?? () from /usr/lib/libQtGui.so.4
#17 0xb70f1175 in QPainter::drawEllipse () from /usr/lib/libQtGui.so.4
#18 0xb3aac710 in ?? () from /usr/lib/kde4/kwin3_qtcurve.so
#19 0xb7f51e88 in ?? () from /usr/lib/libkdeinit4_kwin.so
#20 0xb331a02d in ?? () from /usr/lib/kde4/kwin4_effect_builtins.so
#21 0xb331a4c6 in ?? () from /usr/lib/kde4/kwin4_effect_builtins.so
#22 0xb331a52d in effect_create_kwin4_effect_shadow () from /usr/lib/kde4/kwin4_effect_builtins.so
#23 0xb7f582ce in ?? () from /usr/lib/libkdeinit4_kwin.so
#24 0xb7f58b87 in ?? () from /usr/lib/libkdeinit4_kwin.so
#25 0xb7f3a106 in ?? () from /usr/lib/libkdeinit4_kwin.so
#26 0xb7edab0e in ?? () from /usr/lib/libkdeinit4_kwin.so
#27 0xb7eef24c in ?? () from /usr/lib/libkdeinit4_kwin.so
#28 0xb7ef018e in kdemain () from /usr/lib/libkdeinit4_kwin.so
#29 0x08048732 in _start ()

Reply from Konsole:
kwin: ../../src/xcb_io.c:378: _XAllocID: Assertion `ret != inval_id' failed.
Application::crashHandler() called with signal 6; recent crashes: 1
KCrash: Application 'kwin' crashing...
sock_file=/home/tomasz/.kde/socket-tomasz-desktop/kdeinit4__0
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x1400015
Comment 1 Martin Flöser 2009-05-12 20:09:56 UTC
This backtrace tells us absolutely nothing. To find out how to produce useful
backtraces please see:

http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports
Comment 2 Thomas Lübking 2009-05-12 20:57:59 UTC
> #18 0xb3aac710 in ?? () from /usr/lib/kde4/kwin3_qtcurve.so
tells me it might be a qtcurve problem ;-P
(maybe there's an abi incopat. due to the KDE4.2 unstable kdecoration functions?)
Comment 3 Tomasz 2009-05-12 21:12:15 UTC
After start KDE I have 2 virtual desktops instead of 4, effect wobbly windows not work, I can change virtual desktop scroll of mouse (I don't like it) etc.
Comment 4 Martin Flöser 2009-05-12 21:23:58 UTC
(In reply to comment #3)
> After start KDE I have 2 virtual desktops instead of 4, effect wobbly windows
> not work, I can change virtual desktop scroll of mouse (I don't like it) etc.
And how is this random list of points related to the crash report? Btw 2 virtual desktops is Kubuntu default, not KDE.
Comment 5 Thomas Lübking 2009-05-12 21:27:07 UTC
(In reply to comment #3)
> After start KDE I have 2 virtual desktops instead of 4,
-> kcmshell desktop

> effect wobbly windows not work
-> plugin not loaded?

> I can change virtual desktop scroll of mouse (I don't like it) etc.
-> that's a plasma thing

except you might wish to say you're running compiz instead of kwin (so maybe your session settings don't get store - do you lack write permissions on "~/.kde/share/config/ksmserverrc"?):

how's this related to the bug report?

however, before (re?)starting kwin, edit
~/.kde/share/config/kwinrc

find (or add) the section
[Compositing]

then change or add:
Enabled=false

(this will disable compositing, you can re-enable it when kwin stops segfaulting)

next find or add the section
[Style]

and change or add:
kwin3_oxygen

this /may/ prevent kwin from crashing as the qtcurve deco is involved in the offending function chain.
Comment 6 Tomasz 2009-05-12 23:19:43 UTC
After:

"edit
~/.kde/share/config/kwinrc

find (or add) the section
[Compositing]

then change or add:
Enabled=false

(this will disable compositing, you can re-enable it when kwin stops
segfaulting)

next find or add the section
[Style]

and change or add:
kwin3_oxygen"

and restart Kwin, windows decoration disappeared. Then I reboot the system and the problem with effects settings was still. I used system settings -> default programs -> windows manager and change for Compiz Custom. After click Apply appear the window with communicate, that this windows manager didn't want start and it was start Kwin. Then effects work very good. This problem is during every start the computer.
Comment 7 Andrew Crouthamel 2018-09-19 04:35:28 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Andrew Crouthamel 2018-10-21 04:52:25 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!