Bug 438157 - Crash after enabling a monitor
Summary: Crash after enabling a monitor
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (show other bugs)
Version: 5.21.5
Platform: Manjaro Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-06 11:38 UTC by Lorenz Hoffmann
Modified: 2021-07-09 04:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lorenz Hoffmann 2021-06-06 11:38:47 UTC
SUMMARY
Kwin crashes after enabling another monitor. Restarting with Alt+F12 works. Only happens with OpenGL 3.0.

STEPS TO REPRODUCE
1. Change the compositer to OpenGL 3.0
2. Disable a connected secondary monitor.
3. Re-enable that compositor.

OBSERVED RESULT
A notification pops up that says something like
> The workspace effects have been suspended by another application.

> They can be reactivated using the shortcut "Alt+Shift+F12".
(I have translated the message from German to English)

EXPECTED RESULT
There should be no crash, like with OpenGL 2.0.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro
(available in About System)
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Lorenz Hoffmann 2021-06-06 11:53:29 UTC
Here are some logs that might help:


06.06.21 13:49	plasmashell	trying to show an empty dialog
06.06.21 13:49	plasmashell	file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Panel.qml:30: TypeError: Cannot read property 'enabledBorders' of null
06.06.21 13:49	plasmashell	file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:121: TypeError: Cannot read property 'x' of null
06.06.21 13:49	plasmashell	file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:135: TypeError: Cannot read property 'y' of null
06.06.21 13:49	plasmashell	file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationPopup.qml:116:15: QML QQuickItem: Binding loop detected for property "height"
06.06.21 13:49	plasmashell	qt.svg: <input>:406:376: Could not add child element to parent element because the types are incorrect.
06.06.21 13:49	plasmashell	qt.svg: <input>:407:130: Could not add child element to parent element because the types are incorrect.
06.06.21 13:49	plasmashell	qt.svg: <input>:408:130: Could not add child element to parent element because the types are incorrect.
06.06.21 13:49	plasmashell	qt.svg: <input>:408:393: Could not add child element to parent element because the types are incorrect.
06.06.21 13:49	plasmashell	qt.svg: <input>:409:130: Could not add child element to parent element because the types are incorrect.
06.06.21 13:49	plasmashell	qt.svg: <input>:410:129: Could not add child element to parent element because the types are incorrect.
06.06.21 13:49	plasmashell	qt.svg: <input>:411:129: Could not add child element to parent element because the types are incorrect.
06.06.21 13:49	plasmashell	qt.svg: <input>:412:129: Could not add child element to parent element because the types are incorrect.
06.06.21 13:49	plasmashell	qt.svg: <input>:413:129: Could not add child element to parent element because the types are incorrect.
06.06.21 13:49	plasmashell	qt.svg: <input>:413:379: Could not add child element to parent element because the types are incorrect.
06.06.21 13:49	plasmashell	qt.svg: <input>:413:631: Could not add child element to parent element because the types are incorrect.
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 1179, resource id: 0, major code: 53 (CreatePixmap), minor code: 0
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1180, resource id: 44041140, major code: 55 (CreateGC), minor code: 0
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1181, resource id: 44041140, major code: 72 (PutImage), minor code: 0
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 1182, resource id: 0, major code: 53 (CreatePixmap), minor code: 0
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1183, resource id: 44041142, major code: 55 (CreateGC), minor code: 0
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1184, resource id: 44041142, major code: 72 (PutImage), minor code: 0
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 1185, resource id: 0, major code: 53 (CreatePixmap), minor code: 0
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1186, resource id: 44041144, major code: 55 (CreateGC), minor code: 0
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1187, resource id: 44041144, major code: 72 (PutImage), minor code: 0
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 1188, resource id: 0, major code: 53 (CreatePixmap), minor code: 0
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1189, resource id: 44041146, major code: 55 (CreateGC), minor code: 0
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1190, resource id: 44041146, major code: 72 (PutImage), minor code: 0
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 1191, resource id: 0, major code: 53 (CreatePixmap), minor code: 0
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1192, resource id: 44041148, major code: 55 (CreateGC), minor code: 0
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1193, resource id: 44041148, major code: 72 (PutImage), minor code: 0
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 1194, resource id: 0, major code: 53 (CreatePixmap), minor code: 0
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1195, resource id: 44041150, major code: 55 (CreateGC), minor code: 0
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1196, resource id: 44041150, major code: 72 (PutImage), minor code: 0
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 1197, resource id: 0, major code: 53 (CreatePixmap), minor code: 0
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1198, resource id: 44041152, major code: 55 (CreateGC), minor code: 0
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1199, resource id: 44041152, major code: 72 (PutImage), minor code: 0
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 1200, resource id: 0, major code: 53 (CreatePixmap), minor code: 0
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1201, resource id: 44041154, major code: 55 (CreateGC), minor code: 0
06.06.21 13:49	plasmashell	qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1202, resource id: 44041154, major code: 72 (PutImage), minor code: 0
Comment 2 Vlad Zahorodnii 2021-06-07 07:16:02 UTC
> The workspace effects have been suspended by another application.

> They can be reactivated using the shortcut "Alt+Shift+F12".

If you see that notification, it means that some application blocks compositing, i.e. kwin doesn't crash.

---

Can you please run kwin as `env QT_LOGGING_RULES="kwin_scene_opengl.debug=true" kwin_x11 --replace`, reproduce the issue, and post the output here?
Comment 3 Lorenz Hoffmann 2021-06-08 19:54:39 UTC
Ok, here is the complete output:

kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5089:46: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5091:48: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5093:48: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5097:47: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5099:46: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5107:48: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5111:46: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5113:46: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5117:45: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5120:46: this compose sequence is a duplicate of another; skipping line
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 2828, resource id: 142606376, major code: 3 (GetWindowAttributes), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2829, resource id: 142606376, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 2842, resource id: 142606380, major code: 3 (GetWindowAttributes), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2843, resource id: 142606380, major code: 14 (GetGeometry), minor code: 0
kwin_scene_opengl: Initializing OpenGL compositing
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
OpenGL version string:                  4.6.0 NVIDIA 465.31
OpenGL shading language version string: 4.60 NVIDIA
Driver:                                 NVIDIA
Driver version:                         465.31
GPU class:                              Unknown
OpenGL version:                         4.6
GLSL version:                           4.60
X server version:                       1.20.11
Linux kernel version:                   5.12.8
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
kwin_scene_opengl: Initializing fences for synchronization with the X command stream
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 1 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) will use SYSTEM HEAP memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 1 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) has been mapped WRITE_ONLY in SYSTEM HEAP memory (fast).
kwin_scene_opengl: OpenGL 2 compositing successfully initialized
qml: FORCE-BLUR: starting the script
qml: ["yakuake","urxvt","keepassxc"]
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 2 (bound to GL_ELEMENT_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20092: Program/shader state performance warning: Vertex shader in program 1 is being recompiled based on GL state.
kwin_core: XCB error: 10 (BadAccess), sequence: 3088, resource id: 490, major code: 142 (Composite), minor code: 2 (RedirectSubwindows)
kwin_scene_opengl: 0x20092: Program/shader state performance warning: Vertex shader in program 10 is being recompiled based on GL state.
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 9858, resource id: 39845958, major code: 15 (QueryTree), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 9923, resource id: 39845908, major code: 15 (QueryTree), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 10000, resource id: 39845908, major code: 20 (GetProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 10007, resource id: 39845958, major code: 20 (GetProperty), minor code: 0
kwin_core: XCB error: 152 (BadDamage), sequence: 16375, resource id: 142607188, major code: 143 (DAMAGE), minor code: 2 (Destroy)
kwin_core: XCB error: 3 (BadWindow), sequence: 16376, resource id: 142607166, major code: 129 (SHAPE), minor code: 6 (Input)
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 16377, resource id: 142607166, major code: 2 (ChangeWindowAttributes), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 16585, resource id: 52428938, major code: 18 (ChangeProperty), minor code: 0
Comment 4 Nate Graham 2021-06-08 23:20:09 UTC
Wayland or X11?

Regardless, please attach a backtrace of the crash.
Comment 5 Lorenz Hoffmann 2021-06-09 10:05:01 UTC
X11.

Where do I get a backtrace?
Comment 7 Lorenz Hoffmann 2021-06-09 15:20:08 UTC
The only relevant input in coredumpctl that I could find was plasmashell from three days ago, that doesn't seem right.
Comment 8 Bug Janitor Service 2021-06-24 04:33:47 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 9 Bug Janitor Service 2021-07-09 04:33:46 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!