-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Minimize Window: thread 'main' panicked at 'not enough memory left' #899
Comments
Thanks for reporting! This is the same issue as gfx-rs/wgpu-rs#316 in wgpu. Some solutions for dealing with window height of 0 (#170) and minimizing a window were discussed in #545. Leaving this issue open to track window minimizing specifically. |
Same thing too happens for me when I minimize the window. Ran using Windows 10, current Bevy master (0.4.0+) Exact same error as #170 .
|
Taking a look at this. Seems like this stems from UB with vulkan that wgpu exposes. There is already a fix merged into wgpu gfx-rs/wgpu#1100. I'm trying out an experimental branch where I'll upgrade to the latest wgpu master branch and see if this issue is fixed. |
@maspe36 if it works, just be aware that we can't publish git dependencies to crates.io, which means we can't merge pull requests with git dependencies into the bevy repo. We'd need to wait for a new wgpu release |
Yeah good point. It's really less of a fix for this specific issue and more of a WIP branch for the wgpu 0.7 upgrade whenever its released. |
See the changes here #1199 This is part one of fixing this issue, however this cannot be merged until wgpu 0.7 releases. With an upgrade to wgpu, the error is now
And I haven't tested this but I assume it will now panic on |
Ran and minimized a Bevy 0.4.0 game on |
I have exactly the same error :/ |
wgpu 0.7 is out now, but minimizing on Windows still crashes, but it looks like a different error now? This is the message I get on Windows: Do we have everything we need to solve this issue now since wgpu 0.7 is out? I would be happy to test on Linux and/or Windows if that's needed. |
Bevy version
4fecb89
Operating system & version
Windows 10 19041.572
What you did
Click the Minimize button
What you expected to happen
Minimize Window
What actually happened
I'm sure there's at least 8G of memory available, but the process exit
Additional information
linux
andmacOS
do not have this problemThe text was updated successfully, but these errors were encountered: