Bevy 0.10 Res<AssetServer>::load(...) Causes Panic Given Valid Path #8185
Labels
A-Assets
Load files from disk to use for things like images, models, and sounds
A-Diagnostics
Logging, crash handling, error reporting and performance analysis
A-Rendering
Drawing game state to the screen
C-Bug
An unexpected or incorrect behavior
Bevy version
0.10
[Optional] Relevant system information
Rust version: cargo 1.68.1 (115f34552 2023-02-26)
OS: macOS Ventura 13.2.1
AdapterInfo { name: "Apple M1", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }
What you did
I created a simple Bevy project and added an 'assets' directory that is a sibling of the 'src' directory. The structure is as follows:
What went wrong
A panic occurs when trying to fetch the "Idle.png" using
asset_server.load("Idle.png")
. Unfortunately, I am unable to make sense of the stack trace and haven’t been able to find anything else about this issue online.I would expect the application to run (without crashing) and display my
Idle.png
(44x47) in the center of the screen.panic occurs during
startup_system
Additional information
Project code:
Log:
The text was updated successfully, but these errors were encountered: