Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Maximizing a sticky window and un-sticky-ing the same window can crash the compositor #1074

Open
D-Brox opened this issue Dec 17, 2024 · 1 comment

Comments

@D-Brox
Copy link

D-Brox commented Dec 17, 2024

Steps to reproduce:

  1. Enable Sticky window in any window
  2. Maximize that window
  3. Disable Sticky window
  4. The window size will be reset to the one before maximizing instead of maximized (expected behaviour)
  5. The window is left in a state where moving or resizing will crash the compositor

I checked the syslog and this seems to be the root cause of the crash:

/var/log/syslog:27883:2024-12-17T12:13:16.865580-03:00 zuka cosmic-comp[34938]:
 thread 'main' panicked at 'internal error:
 entered unreachable code': src/shell/workspace.rs:649#012
   0: <unknown>#012
   1: <unknown>#012
   2: <unknown>#012
   3: <unknown>#012
   4: <unknown>#012
   5: <unknown>#012
   6: <unknown>#012
   7: <unknown>#012
   8: <unknown>#012
   9: <unknown>#012
  10: <unknown>#012
  11: <unknown>#012
  12: <unknown>#012
  13: <unknown>#012
  14: <unknown>#012
  15: <unknown>#012
  16: <unknown>#012
  17: <unknown>#012
  18: <unknown>#012
  19: <unknown>#012
  20: <unknown>#012
  21: __libc_start_call_main#012
             at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16#012
  22: __libc_start_main_impl#012
             at ./csu/../csu/libc-start.c:360:3#012
  23: <unknown>

The code is reaching this unreacheable!() statement:

ManagedLayer::Sticky => unreachable!(),

@D-Brox
Copy link
Author

D-Brox commented Dec 20, 2024

image
When the active window is in a state where it causes a crash it doesn't have an active window hint border since it's supposed to be maximized. Curiously, after taking this screenshot the window returned to the expected maximized size, but it still can crash the compositor when moving or resizing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant