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

The exceptional value of the resizing event in winit leads to crashes in examples #3915

Closed
jinleili opened this issue Jul 7, 2023 · 0 comments

Comments

@jinleili
Copy link
Contributor

jinleili commented Jul 7, 2023

Description
winit generates a sudden exception resize event with a value of u32::MAX during the initial execution, causing it to crash when running examples such as shadow and water:

Using Apple M1 Max (Metal)
2023-07-08 04:34:15.147 boids[14432:158270] CAMetalLayer ignoring invalid setDrawableSize width=4294967295.000000 height=4294967295.000000
[2023-07-07T20:35:54Z ERROR wgpu::backend::direct] Handling wgpu errors as fatal by default
thread 'main' panicked at 'wgpu error: Validation Error

Caused by:
    In Device::create_texture
    Dimension X value 4294967295 exceeds the limit of 16384

', wgpu/src/backend/direct.rs:3024:5

Platform
macOS Sonoma Beta 3

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