bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
35.13k stars 3.45k forks source link

`embedded_asset!` does not work in multi-crate workspace + release build #14718

Open benfrankel opened 1 month ago

benfrankel commented 1 month ago

Bevy version

0.14.1

Relevant system information

Arch Linux v6.9.9-arch1-1

cargo 1.82.0-nightly (94977cb1f 2024-08-06)

AdapterInfo { name: "AMD Radeon RX 570 Series (RADV POLARIS10)", vendor: 4098, device: 26591, device_type: DiscreteGpu, driver: "radv", driver_info: "Mesa 24.1.3-arch1.1", backend: Vulkan }

What you did

What went wrong

Dev build was fine, release build failed to load the splash screen:

2024-08-12T08:18:26.397120Z ERROR bevy_asset::server: Path not found: /foo/screen/splash/splash.png

Additional information

This issue seems related: https://github.com/bevyengine/bevy/issues/10575

However, that's about embedded_watcher not working while embedded_asset! does work, and there's no mention of dev vs. release builds having different outcomes.

janhohenheim commented 1 month ago

See https://github.com/bevyengine/bevy/issues/14246 for another embedded_asset bug that may or may not be related