Bug 444140 - Kwin_wayland segmentation fault and restarts the whole session
Summary: Kwin_wayland segmentation fault and restarts the whole session
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 5.23.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-20 19:43 UTC by kinta
Modified: 2021-11-20 04:38 UTC (History)
0 users

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


Attachments
coredumpctl (68.45 KB, text/plain)
2021-10-20 19:43 UTC, kinta
Details
coredump-KWinWaylandDrmBackend.txt (64.67 KB, text/plain)
2021-10-21 07:54 UTC, kinta
Details
updateAfterScreenChange (34.95 KB, text/plain)
2021-10-21 10:15 UTC, kinta
Details
Desktop screenshot, and real screenshot (1.34 MB, image/jpeg)
2021-10-21 10:41 UTC, kinta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kinta 2021-10-20 19:43:11 UTC
Created attachment 142690 [details]
coredumpctl

SUMMARY
Kwin_wayland segmentation fault.

STEPS TO REPRODUCE
1. Difficult to determine but I think it may be related with the use of secondary display when restoring the session after suspend, but not happening always after restoring...

OBSERVED RESULT
[21797.442029] kwin_wayland[1080]: segfault at 10 ip 00007fcfffa0f670 sp 00007ffec956b8e8 error 4 in libKWaylandServer.so.5.23.1[7fcfff9bc000+d5000]

SOFTWARE/OS VERSIONS

Operating System: Arch Linux
KDE Plasma Version: 5.23.1
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Kernel Version: 5.14.13-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i5-1135G7 @ 2.40GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Comment 1 Vlad Zahorodnii 2021-10-21 07:42:28 UTC
#0  0x00007fcfffa0f670 in KWaylandServer::SurfaceInterface::isMapped() const () at /usr/lib/libKWaylandServer.so.5
#1  0x00007fcfffa0f6fc in  () at /usr/lib/libKWaylandServer.so.5
#2  0x00007fcfffa11550 in  () at /usr/lib/libKWaylandServer.so.5

this is strange. can you please recompile kwayland-server, without debug symbols it will be really hard to figure out where and why kwin crashes? https://wiki.archlinux.org/title/Debugging/Getting_traces#CMAKE_(KDE)_applications
Comment 2 kinta 2021-10-21 07:54:14 UTC
Created attachment 142705 [details]
coredump-KWinWaylandDrmBackend.txt

Once again, maybe different issue as this coredump is quite different now. Secondary  display is wrong: mouse pointer in secondary screen has vertical offset (of +357), and secondary screen has bad dimensions: 1280x720 when it must be 1920x1080.
Comment 3 kinta 2021-10-21 07:55:47 UTC
(In reply to Vlad Zahorodnii from comment #1)
> #0  0x00007fcfffa0f670 in KWaylandServer::SurfaceInterface::isMapped() const
> () at /usr/lib/libKWaylandServer.so.5
> #1  0x00007fcfffa0f6fc in  () at /usr/lib/libKWaylandServer.so.5
> #2  0x00007fcfffa11550 in  () at /usr/lib/libKWaylandServer.so.5
> 
> this is strange. can you please recompile kwayland-server, without debug
> symbols it will be really hard to figure out where and why kwin crashes?
> https://wiki.archlinux.org/title/Debugging/
> Getting_traces#CMAKE_(KDE)_applications

I guess you mean "with" debug symbols, true? Will recompile asap
Comment 4 kinta 2021-10-21 10:15:55 UTC
Created attachment 142715 [details]
updateAfterScreenChange

Core after recompiling kwin with -DCMAKE_BUILD_TYPE=RelWithDebInfo.

was generated by `/usr/bin/kwin_wayland --wayland_fd 5 --socket wayland-0 --xwayland-fd 7 --xwayl'.
Program terminated with signal SIGSEGV, Segmentation fault.
Comment 5 kinta 2021-10-21 10:41:30 UTC
Created attachment 142718 [details]
Desktop screenshot, and real screenshot

This screenshot explains the situation, also there's the pointer offset, as cursor points below it appears.
Comment 6 Vlad Zahorodnii 2021-10-21 10:46:40 UTC
(In reply to kinta from comment #4)
> Created attachment 142715 [details]
> updateAfterScreenChange
> 
> Core after recompiling kwin with -DCMAKE_BUILD_TYPE=RelWithDebInfo.
> 
> was generated by `/usr/bin/kwin_wayland --wayland_fd 5 --socket wayland-0
> --xwayland-fd 7 --xwayl'.
> Program terminated with signal SIGSEGV, Segmentation fault.

This looks like a totally different crash. Can you file another bug report?
Comment 7 kinta 2021-10-21 11:16:20 UTC
Sure  -> https://bugs.kde.org/show_bug.cgi?id=444186
Comment 8 Bug Janitor Service 2021-11-05 04:36:01 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-11-20 04:38:43 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!