Bug 493494 - kwin_wayland crashes randomly
Summary: kwin_wayland crashes randomly
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: generic-crash (other bugs)
Version First Reported In: 6.1.5
Platform: NixOS Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 489415 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-09-22 17:25 UTC by caulwer
Modified: 2024-09-25 15:18 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description caulwer 2024-09-22 17:25:23 UTC
SUMMARY

Today (after an update?) my KDE desktop started crashing often, about every 30 minutes to several hours, with always the same stacktrace (see additional information). I mostly use firefox, telegram-desktop and kconsole on my desktop.
I will paste backtrace and systemd journals in additional information.

STEPS TO REPRODUCE
1. Unknown, but happens often

OBSERVED RESULT
kwin_wayland crashes.

EXPECTED RESULT
kwin doesn't crash.

SOFTWARE/OS VERSIONS
Operating System: NixOS 24.11
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Kernel Version: 6.10.9-zen1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × 11th Gen Intel® Core™ i5-11400 @ 2.60GHz
Memory: 23.3 GiB of RAM
Graphics Processor: AMD Radeon RX 6600 XT

ADDITIONAL INFORMATION
The stacktrace:

#0  0x000073aa3b0c979b in simple_mtx_lock (mtx=0x73aa0c1baa54)
    at ../src/util/simple_mtx.h:106
#1  _mesa_lock_debug_state (ctx=ctx@entry=0x73aa0c0f7010)
    at ../src/mesa/main/debug_output.c:770
#2  0x000073aa3b0ca45a in _mesa_log_msg (ctx=0x73aa0c0f7010, 
    source=MESA_DEBUG_SOURCE_SHADER_COMPILER, type=MESA_DEBUG_TYPE_OTHER, id=1, 
    severity=MESA_DEBUG_SEVERITY_NOTIFICATION, len=270, 
    buf=0x73aa1a9fbbf0 "Shader Stats: SGPRS: 56 VGPRS: 32 Code Size: 1532 LDS: 0 Scratch: 0 Max Waves: 16 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 LSOutputs: 0 HSOutputs: 0 HSPatchOuts: 0 ESOutputs: 0 GSOutputs: 0 "...) at ../src/mesa/main/debug_output.c:948
#3  0x000073aa3b1307a7 in _mesa_gl_vdebugf (ctx=0x73aa0c0f7010, id=0x73aa3d3841dc <id>, 
    source=MESA_DEBUG_SOURCE_SHADER_COMPILER, type=MESA_DEBUG_TYPE_OTHER, 
    severity=MESA_DEBUG_SEVERITY_NOTIFICATION, 
    fmtString=0x73aa3c53aef0 "Shader Stats: SGPRS: %d VGPRS: %d Code Size: %d LDS: %d Scratch: %d Max Waves: %d Spilled SGPRs: %d Spilled VGPRs: %d PrivMem VGPRs: %d LSOutputs: %u HSOutputs: %u HSPatchOuts: %u ESOutputs: %u GSOutp"..., args=0x73aa1a9fcc60)
    at ../src/mesa/main/errors.c:171
#4  0x000073aa3b0c95a0 in _debug_message (data=<optimized out>, id=<optimized out>, 
    ptype=<optimized out>, fmt=<optimized out>, args=<optimized out>)
    at ../src/mesa/main/debug_output.c:739
#5  0x000073aa3af0ab9c in _util_debug_message (cb=cb@entry=0x14ef2ba0, 
    id=id@entry=0x73aa3d3841dc <id>, type=type@entry=UTIL_DEBUG_TYPE_SHADER_INFO, 
    fmt=fmt@entry=0x73aa3c53aef0 "Shader Stats: SGPRS: %d VGPRS: %d Code Size: %d LDS: %d Scratch: %d Max Waves: %d Spilled SGPRs: %d Spilled VGPRs: %d PrivMem VGPRs: %d LSOutputs: %u HSOutputs: %u HSPatchOuts: %u ESOutputs: %u GSOutp"...) at ../src/util/u_debug.c:74
#6  0x000073aa3b6ea904 in si_shader_dump_stats_for_shader_db (
    screen=screen@entry=0x12995bf0, shader=shader@entry=0x14ef2a70, 
    debug=debug@entry=0x14ef2ba0) at ../src/gallium/drivers/radeonsi/si_shader.c:1325
#7  0x000073aa3b6ee518 in si_compile_shader (sscreen=sscreen@entry=0x12995bf0, 
    compiler=compiler@entry=0x73aa00000b70, shader=shader@entry=0x14ef2a70, 
    debug=debug@entry=0x14ef2ba0) at ../src/gallium/drivers/radeonsi/si_shader.c:3047
#8  0x000073aa3b6ef63d in si_create_shader_variant (sscreen=0x12995bf0, 
    compiler=0x73aa00000b70, shader=0x14ef2a70, debug=0x14ef2ba0)
    at ../src/gallium/drivers/radeonsi/si_shader.c:3378
#9  0x000073aa3b723caa in si_build_shader_variant (shader=0x14ef2a70, 
    thread_index=<optimized out>, low_priority=<optimized out>)
    at ../src/gallium/drivers/radeonsi/si_state_shaders.cpp:2840
#10 0x000073aa3af09869 in util_queue_thread_func (input=input@entry=0x12af89d0)
    at ../src/util/u_queue.c:309
#11 0x000073aa3af2b7a7 in impl_thrd_routine (p=<optimized out>)
    at ../src/c11/impl/threads_posix.c:67
#12 0x000073aa40e99a42 in start_thread (arg=<optimized out>) at pthread_create.c:447
#13 0x000073aa40f1905c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

The systemd journal:
Sep 22 19:28:10 home-desktop kwin_wayland[41451]: This plugin does not support raise()
Sep 22 19:28:59 home-desktop kwin_wayland[41451]: This plugin does not support raise()
Sep 22 19:28:59 home-desktop kwin_wayland[41451]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
Sep 22 19:28:59 home-desktop kwin_wayland[41451]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
Sep 22 19:28:59 home-desktop kwin_wayland[41451]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
Sep 22 19:29:00 home-desktop systemd-coredump[49681]: Process 41451 (.kwin_wayland-w) of user 1000 dumped core.
Sep 22 19:29:00 home-desktop kwin_wayland_wrapper[41531]: (EE) failed to read Wayland events: Broken pipe
Sep 22 19:29:00 home-desktop kwin_wayland[49715]: No backend specified, automatically choosing drm
Sep 22 19:29:00 home-desktop kwin_wayland[49715]: kwin_libinput: Libinput: event15 - Wacom Intuos S 2 Pad: libinput bug: missing tablet capabilities: pen resolution. Ignoring this device.
Sep 22 19:29:00 home-desktop kwin_wayland_wrapper[49871]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Sep 22 19:29:00 home-desktop kwin_wayland_wrapper[49871]: > Warning:          Unsupported maximum keycode 708, clipping.
Sep 22 19:29:00 home-desktop kwin_wayland_wrapper[49871]: >                   X11 cannot support keycodes above 255.
Sep 22 19:29:00 home-desktop kwin_wayland_wrapper[49871]: > Warning:          Could not resolve keysym XF86KbdInputAssistPrevgrou
Sep 22 19:29:00 home-desktop kwin_wayland_wrapper[49871]: > Warning:          Could not resolve keysym XF86KbdInputAssistNextgrou
Sep 22 19:29:00 home-desktop kwin_wayland_wrapper[49871]: Errors from xkbcomp are not fatal to the X server
Sep 22 19:29:01 home-desktop kcminit[49880]: Initializing  "/nix/store/1c1580lym6lyjyrc8hidmdrp21zzxwp8-plasma-workspace-6.1.5/lib/qt-6/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
Sep 22 19:29:01 home-desktop kcminit[49880]: Initializing  "/nix/store/1c1580lym6lyjyrc8hidmdrp21zzxwp8-plasma-workspace-6.1.5/lib/qt-6/plugins/plasma/kcms/systemsettings/kcm_style.so"
Comment 1 caulwer 2024-09-22 19:20:06 UTC
Ok, I downgraded my NixOS system to 24.05 Stable, with plasma 6.0.5, and crashes don't happen anymore. I'll stay on stable for now
Comment 2 Zamundaaa 2024-09-22 19:30:26 UTC
The crash is in Mesa, please report it to https://gitlab.freedesktop.org/mesa/mesa/-/issues
Comment 3 David Edmundson 2024-09-25 15:18:55 UTC
*** Bug 489415 has been marked as a duplicate of this bug. ***