-
-
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
Main panic at TextureId when changing is_visible state for SpriteBundle/SpriteSheetBundle. #1956
Comments
This might be related to switching cameras at the same time, I'll investigate if turning off that camera swap code still crashes. |
I was able to reproduce using a much smaller example:
|
I further narrowed this down to calling |
Reading your code, you are loading all assets in folder |
fixes bevyengine#824 fixes bevyengine#1956 * marked asset loading methods as `must_use` * fixed asset re-loading while asset is still loading to work as comment is describing code * introduced a 1 frame delay between unused asset marking and actual asset removal
Bevy version
0.5
Operating system & version
Windows 10
What you did
Swapping which sprites are visible causes a crash. Code example:
Spawn entity:
Switch system:
What actually happened
I received a crash inside of the wgpu renderer. Stack trace:
The text was updated successfully, but these errors were encountered: