-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
STATUS_ACCESS_VIOLATION in CorePipelinePlugin #13559
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
Comments
Are you able to run the examples of 'wgpu' correctly? It looks like this is likely to be a hardware or driver issue. |
Some examples work fine.
The
Only the
|
Awesome, thanks a ton for the investigation. I think the problem here is likely us escalating the warnings to a panic. The next step would be figuring out where that's going on, and then seeing if we can fail more gracefully. |
I tried to find the specific part of CorePipelinePlugin's build function that causes the error by removing everything that works fine. I ended up with this:
If I either remove the load_internal_asset! call or not add CopyDeferredLightingIdPlugin, the error disappears, so the problem is somewhere in there. |
@Weihnachtsbaum could you kindly check if you experience this same issue on the latest stable version of rust? I'm tracing an issue that may be related to yours. |
@xangelix it works fine on the latest stable version (1.78.0) |
@Weihnachtsbaum great! Could you also check |
@xangelix that's correct, |
Thanks! I unfortunately don't know enough about bevy/wgpu/rust/windows internals and don't have enough time to probably go any further, but It appears this issue only concerns Windows builds (including cross-compilation with mingw) on Notably, I have the logs you described on my side in BOTH the working and non-working nightly versions:
I also never get the
error you described. In fact, I don't get any error at all. The program just closes after a few successful ticks, never drawing more than a black screen. I would be glad to collect any additional logs/environment details if it helps. |
Are we sure that the problem lies within bevy or could it be in rustc? |
It could definitely be rustc afaik, but I would expect behavior changing in an unstable feature used by a bevy dependency (like wgpu) to also be likely. rustc by itself might actually be unlikely given the issue is still present 6 weeks later. If you have time, a few ideas come to mind, but I'm really not the best person to ask.
I'm also not especially familiar with rust or c development on windows, it's quite possible I didn't get any crash error because I don't have some windows debugging options that I don't know about enabled outside of rust. The bevy devs will certainly have better intuition here. |
I just tested it out, it also crashes in
so in the future this won't be possible anymore. Unfortunately, I am a Rust and Bevy beginner and don't think I will be very helpful in fixing this issue. |
thought I'd give it another go after the winit v0.30 merge, unfortunately the problem still exists on the latest nightly and bb51635 |
@Weihnachtsbaum looks like things are happening! :) rust-lang/rust#126442 |
@xangelix Great! Do you know when we can expect this to be included in bevy? |
The fix is merged by wgpu here: gfx-rs/wgpu#5812 That should be going out in a new release shortly, and #13186 will grab it for 0.14 for sure. I believe they're also backporting it, which would be nice. |
Hanabi CI is hitting those "Missing downlevel flags" too: https://github.com/djeedai/bevy_hanabi/actions/runs/9609820286/job/26505417917, as well as example crashes:
|
This is not yet fixed: https://github.com/gfx-rs/wgpu/releases/tag/v0.20.1 does not include the relevant PR. |
https://github.com/gfx-rs/wgpu/releases/tag/v0.20.2 and wgpu is upgraded. Closing as fixed, thanks y'all! |
Bevy version
0.13.2
System information
What you did
Initially I did this:
Then I tried narrowing the problem down and ended up with this:
What went wrong
The program crashes after a few seconds with the error:
The text was updated successfully, but these errors were encountered: