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

X11: Crash when resizing winit example window #253

Open
FreeFull opened this issue Jan 11, 2025 · 0 comments
Open

X11: Crash when resizing winit example window #253

FreeFull opened this issue Jan 11, 2025 · 0 comments
Labels
X11 Xlib / Xcb

Comments

@FreeFull
Copy link

FreeFull commented Jan 11, 2025

When running softbuffer's winit example under X11, it seems it's not guaranteed that window.inner_size(); matches the latest processed WindowEvent::Resized. This can lead to an index out of bounds panic in the example's redraw code.

To reproduce, in an X11 environment:

cargo run --example winit

and then resize the window rapidly. It's also reproducible with --release, but not as easily. I'm not actually sure if this should be considered a bug with the example, or with winit itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
X11 Xlib / Xcb
Development

No branches or pull requests

2 participants