Asset loading fails when using cargo flamegraph
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 171
Description
## Bevy version
0.10.1
## What you did
1. Created a project that requires asset loading. In this case, [this commit](https://github.com/Leafwing-Studios/Emergence/commit/95ca0a816f2f9ca0cc1634714aa1bb3a2af085db) of Emergence.
2. Verify that the game works in `cargo run --release`.
3. Use the [`flamegraph`](https://github.com/flamegraph-rs/flamegraph) cargo tool linked [here](https://github.com/bevyengine/bevy/blob/main/docs/profiling.md#perf-runtime-flame-graph) by calling ` cargo flamegraph --bin=emergence_game`.
## What went wrong
Assets failed to load, and thus the game never started.
## Additional information
This might be an incompatibility between `bevy_tasks` and whatever `flamegraph` is doing?
Contributor guide
Research direction
Reproduce the asset-loading project from the linked Emergence commit with Bevy 0.10.1, comparing `cargo run --release` against `cargo flamegraph --bin=emergence_game`. Start with the flamegraph command and the profiling documentation; done means the game starts and loads assets under the flamegraph workflow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- performance, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100