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

Crash in unwrap() on MaximizedState #1008

Open
ids1024 opened this issue Nov 23, 2024 · 0 comments
Open

Crash in unwrap() on MaximizedState #1008

ids1024 opened this issue Nov 23, 2024 · 0 comments

Comments

@ids1024
Copy link
Member

ids1024 commented Nov 23, 2024

I've been using emacs and Firefox stacked in one workspace, and have been having an issue lately where setting that up causes the compositor to crash.

Nov 22 16:44:48 Superficies cosmic-comp[764794]: thread 'main' panicked at 'called `Option::unwrap()` on a `None` value': src/shell/workspace.rs:988

I've been able to reproduce it consistently by following certain steps, and looking at WAYLAND_DEBUG logs it seems to be related to set_maximized (I guess something about my Emacs configuration is causing it to call that), which I was able to reproduce in a modified sctk example. But I have a simpler reproduction:

  • Super + T
  • Super + M
  • Super + S
  • Super + Y
  • Super + Y

(If there's a magic sequence of 5 key combos to crash the compositor, does that count as a cheat code?)

I guess maximized_state needs to be kept in sync with the maximize status of the Window, or an unwrap like this will panic. Looking at the code I'm not sure whats wrong, but at least it's easy to reproduce.

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