Bug 455326 - Window crash after tiling twice to the screen edge
Summary: Window crash after tiling twice to the screen edge
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: Quick Tiling (other bugs)
Version First Reported In: 5.24.5
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-15 12:55 UTC by kde
Modified: 2023-07-08 11:47 UTC (History)
3 users (show)

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


Attachments
The video (2.13 MB, video/x-matroska)
2022-06-15 12:55 UTC, kde
Details
Backtrace(I hope so) (3.18 MB, video/mp4)
2022-06-16 08:13 UTC, kde
Details
Problem changed: now windows "forget" size (2.09 MB, video/mp4)
2023-06-23 17:48 UTC, kde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kde 2022-06-15 12:55:03 UTC
Created attachment 149740 [details]
The video

STEPS TO REPRODUCE
1. Drag the window to the edge of screen
2. It is tiled
3. Drag it to the edge again

OBSERVED RESULT
Crash

EXPECTED RESULT
It tiles again

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Plasma 5.24.5
(available in About System)
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.4

ADDITIONAL INFORMATION
A video is attached
Comment 1 Nate Graham 2022-06-15 16:44:24 UTC
If something crashed, we need a backtrace of it so we can figure out what's going on. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Can you please attach one? Thanks!
Comment 2 kde 2022-06-16 08:13:03 UTC
Created attachment 149777 [details]
Backtrace(I hope so)

Ok, I'm adding a backtrace, but I'm not sure if I did everything correctly, so I'll attach a video too
```
 ~  gdb kwin_x11                                                                                                                                                                                                                       ✔ 
GNU gdb (GDB) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from kwin_x11...
(No debugging symbols found in kwin_x11)
(gdb) run --replace
Starting program: /usr/bin/kwin_x11 --replace
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff0170640 (LWP 3454)]
[New Thread 0x7fffed57d640 (LWP 3455)]
[New Thread 0x7fffecd7c640 (LWP 3456)]
[New Thread 0x7fffe1725640 (LWP 3457)]
[New Thread 0x7fffe0f24640 (LWP 3458)]
[New Thread 0x7fffd3fff640 (LWP 3459)]
[New Thread 0x7fffd37fe640 (LWP 3460)]
[New Thread 0x7fffd2ffd640 (LWP 3461)]
[New Thread 0x7fffd27fc640 (LWP 3462)]
[New Thread 0x7fffd1ffb640 (LWP 3463)]
[New Thread 0x7fffd17fa640 (LWP 3464)]
Warning: Setting a new default format with a different version or profile after the global shared context is created may cause issues with context sharing.
[Thread 0x7fffd17fa640 (LWP 3464) exited]
[New Thread 0x7fffd17fa640 (LWP 3465)]
kwin_xkbcommon: XKB: inet:323:58: unrecognized keysym "XF86EmojiPicker"
kwin_xkbcommon: XKB: inet:324:58: unrecognized keysym "XF86Dictate"
[New Thread 0x7fffb7fff640 (LWP 3468)]
kwin_core: XCB error: 147 (BadOutput), sequence: 466, resource id: 64, major code: 140 (RANDR), minor code: 9 (GetOutputInfo)
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1303, resource id: 85983266, major code: 3 (GetWindowAttributes), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1304, resource id: 85983266, major code: 14 (GetGeometry), minor code: 0
[New Thread 0x7fffb77fe640 (LWP 3472)]
[New Thread 0x7fffb6ffd640 (LWP 3473)]
[Thread 0x7fffb6ffd640 (LWP 3473) exited]
[New Thread 0x7fffb6ffd640 (LWP 3474)]
OpenGL vendor string:                   Intel
OpenGL renderer string:                 Mesa Intel(R) UHD Graphics 630 (CFL GT2)
OpenGL version string:                  4.6 (Compatibility Profile) Mesa 22.1.1
OpenGL shading language version string: 4.60
Driver:                                 Intel
GPU class:                              Coffee Lake
OpenGL version:                         4.6
GLSL version:                           4.60
Mesa version:                           22.1.1
X server version:                       1.21.1
Linux kernel version:                   5.15.47
Requires strict binding:                yes
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
[New Thread 0x7fffb67fc640 (LWP 3475)]
[New Thread 0x7fffb5ffb640 (LWP 3476)]
[New Thread 0x7fffb57fa640 (LWP 3477)]
[New Thread 0x7fffb4ff9640 (LWP 3478)]
[New Thread 0x7fff9bfff640 (LWP 3479)]
[New Thread 0x7fff9b7fe640 (LWP 3480)]
[New Thread 0x7fff9affd640 (LWP 3481)]
[New Thread 0x7fff9a7fc640 (LWP 3482)]
[New Thread 0x7fff99ffb640 (LWP 3483)]
kwin_core: XCB error: 10 (BadAccess), sequence: 1420, resource id: 1782, major code: 142 (Composite), minor code: 2 (RedirectSubwindows)
[Thread 0x7fffb77fe640 (LWP 3472) exited]
backtrace
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 2074, resource id: 50331657, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 2356, resource id: 85983354, major code: 3 (GetWindowAttributes), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2357, resource id: 85983354, major code: 14 (GetGeometry), minor code: 0
[New Thread 0x7fffb77fe640 (LWP 3531)]
[New Thread 0x7fff73c7f640 (LWP 3532)]
qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 3658, resource id: 0, major code: 12 (ConfigureWindow), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 3659, resource id: 0, major code: 12 (ConfigureWindow), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 3660, resource id: 0, major code: 12 (ConfigureWindow), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 3662, resource id: 0, major code: 12 (ConfigureWindow), minor code: 0
file:///home/rad1an/.local/share/kwin/tabbox/thumbnail_grid/contents/ui/main.qml:219:17: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
kwin_scripting: ThumbnailItem.clipTo is removed and it has no replacements
kwin_scripting: ThumbnailItem.clipTo is removed and it has no replacements
[New Thread 0x7fff6bfff640 (LWP 3557)]
[New Thread 0x7fff6b7fe640 (LWP 3558)]
```
Comment 3 kde 2022-06-16 13:22:57 UTC
A little note here: it seems that the window just becomes invisible and doesn't crash
Comment 4 Bug Janitor Service 2022-07-01 04:37:09 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 5 Steve Vialle 2022-07-15 16:15:14 UTC
I can still reproduce this trivially with kwin 5.25.3, all that is required is to (drag) tile a dolphin window against the same screen edge twice. Gentoo/X11. As such, setting to confirmed.
I can probably build with debug symbols and grab another backtrace if it's wanted, but frankly I'm waiting for someone to follow up with rad1an before I jump in...
Comment 6 David Edmundson 2023-06-20 23:09:43 UTC
Is this still reproducible against newer Plasma (5.27)
Comment 7 kde 2023-06-23 17:48:02 UTC
Created attachment 159865 [details]
Problem changed: now windows "forget" size

I have reinstalled the system since, so can't be 100% sure. However, the issue is not present now in the way it did. The windows don't crash now, but they sometimes "forget" their size(attaching a video. One time the window works normally, but the other time - no)
Comment 8 Bug Janitor Service 2023-07-08 03:45:02 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 Steve Vialle 2023-07-08 11:15:45 UTC
(In reply to David Edmundson from comment #6)
> Is this still reproducible against newer Plasma (5.27)

Apologies for the late update, I am unable to reproduce this with 5.27.6.
Comment 10 Nate Graham 2023-07-08 11:47:38 UTC
Cool, let's call it fixed. Thanks.