Bug 497720 - Kwin-wayland crash when alt-tabing and copying and pasting between windows
Summary: Kwin-wayland crash when alt-tabing and copying and pasting between windows
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 6.2.4
Platform: Manjaro Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-20 15:16 UTC by Michał Dybczak
Modified: 2024-12-20 19:22 UTC (History)
2 users (show)

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


Attachments
kwin-wayalnd-crash (205.34 KB, text/plain)
2024-12-20 15:16 UTC, Michał Dybczak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Dybczak 2024-12-20 15:16:05 UTC
Created attachment 176789 [details]
kwin-wayalnd-crash

***
Basically, I had few windows: Dolphin, Firefox, Thunderbird, Vivaldi, I was switching between Thunderbird (wayland window) and Vivaldi to check some data from the mail into the bank account form opened in Vivaldi.
I can't tell what exact step I was in when the crash happened, thou.

It doesn't happen normally, so this was a one-time thing so far (race condition?) and I can't repeat it to reproduce the bug.

Moreover, only Dolphin window survived the crash, although, as far I know, all other windows were wayland windows as well (possibly Vivaldi may have been xwayland, I'm not sure of that one).

I'm attaching the crash data and downloaded the debug symbols. If the data is not complete and not useful, let me know, I'll close the report.
***

SUMMARY


STEPS TO REPRODUCE
1.  Alt-tab and copy-paste between various windows (randomly, cannot be reproduced on will).
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1
Kernel Version: 6.12.5-2-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840HS w/ Radeon 780M Graphics
Memory: 30.6 GiB of RAM
Graphics Processor: AMD Radeon 780M
Manufacturer: TUXEDO
Product Name: TUXEDO Sirius 16 Gen1

ADDITIONAL INFORMATION
kwin 6.2.4-2

Some desktop settings may also be involved in the crash.
Desktop setup:
Standard panel below, upper panel with menu, buttons, and title plus panel recolorizer and session buttons applets.
At the time of crash, night light was close to start, so maybe this could have trigger some unusual events.

Possibly, this is duplicate of other bugs, but I let you decide based on the crash log.
Comment 1 Nate Graham 2024-12-20 19:22:44 UTC
The backtrace indicates that the crash is in the GPU drivers:

Thread 1 (Thread 0x7753827fc6c0 (LWP 9713)):
[KCrash Handler]
#5  0x000077542141689c in simple_mtx_lock () at ../mesa-24.3.1/src/util/simple_mtx.h:106
#6  _mesa_lock_debug_state () at ../mesa-24.3.1/src/mesa/main/debug_output.c:770
#7  0x0000775421417540 in _mesa_log_msg () at ../mesa-24.3.1/src/mesa/main/debug_output.c:948
#8  0x000077542147be24 in _mesa_gl_vdebugf () at ../mesa-24.3.1/src/mesa/main/errors.c:171
#9  0x00007754214166d9 in _debug_message () at ../mesa-24.3.1/src/mesa/main/debug_output.c:739
#10 0x00007754216e06ce in _util_debug_message () at ../mesa-24.3.1/src/util/u_debug.c:74
#11 0x0000775421b2b5b1 in si_shader_dump_stats_for_shader_db () at ../mesa-24.3.1/src/gallium/drivers/radeonsi/si_shader.c:1335
#12 0x0000775421b2f6ce in si_compile_shader () at ../mesa-24.3.1/src/gallium/drivers/radeonsi/si_shader.c:3084
#13 0x0000775421b308df in si_create_shader_variant () at ../mesa-24.3.1/src/gallium/drivers/radeonsi/si_shader.c:3421
#14 0x0000775421b629bb in si_build_shader_variant () at ../mesa-24.3.1/src/gallium/drivers/radeonsi/si_state_shaders.cpp:2844
#15 0x00007754216de7a4 in util_queue_thread_func () at ../mesa-24.3.1/src/util/u_queue.c:294
#16 0x000077542171361d in impl_thrd_routine () at ../mesa-24.3.1/src/c11/impl/threads_posix.c:67
#17 0x000077542f4a339d in start_thread (arg=<optimized out>) at pthread_create.c:447
#18 0x000077542f52849c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

I'd recommend reporting it to the Mesa devs. See https://docs.mesa3d.org/bugs.html