Skip to content
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

Failed to load asset 'castle.vox' with asset loader 'dust_vox::loader::VoxLoader' #16

Open
CatCode79 opened this issue Jan 3, 2024 · 0 comments

Comments

@CatCode79
Copy link

Hi! I tried to run the castle executable but I get a panic.

It panics at the line
crates\rhyolite_bevy\src\loaders\png.rs:85:50
let mut reader = decoder.read_info().unwrap();

Panic output:
2024-01-03T20:47:24.306687Z INFO bevy_winit::system: Creating new window "Dust Renderer: Castle" (0v0)
2024-01-03T20:47:24.361820Z WARN bevy_asset::io::source: AssetSourceId::Name(embedded) does not have a processed AssetWatcher configured. Consider enabling the embedded_watcher cargo feature.
2024-01-03T20:47:25.594012Z INFO rhyolite_bevy: Using DISCRETE_GPU "NVIDIA GeForce RTX 4050 Laptop GPU" with memory model ReBar
2024-01-03T20:47:25.594432Z INFO rhyolite::physical_device: Creating device with DeviceCreateInfo { s_type: DEVICE_CREATE_INFO, p_next: 0x1701e848960, flags: , queue_create_info_c
ount: 3, p_queue_create_infos: 0x1701adf4750, enabled_layer_count: 0, pp_enabled_layer_names: 0x0, enabled_extension_count: 6, pp_enabled_extension_names: 0x1701be4dfe0, p_enabled_features: 0x0 }
2024-01-03T20:47:25.595030Z INFO rhyolite::debug: "Loader Message" id=0 detail="Inserted device layer "VK_LAYER_NV_optimus" (C:\Windows\System32\DriverStore\FileRepository\nvmii.inf_amd64_649395c294ad3a68\.\nvoglv64.dll)"
2024-01-03T20:47:25.595711Z INFO rhyolite::debug: "Loader Message" id=0 detail=" Using "NVIDIA GeForce RTX 4050 Laptop GPU" with driver: "C:\Windows\System32\DriverStore\FileRepository\nvmii.inf_amd64_649395c294ad3a68\.\nvoglv64.dll""
[NearestClamp, NearestMirroredRepeat, LinearClamp, LinearMirroredRepeat]
thread 'thread 'IO Task Pool (1)IO Task Pool (3)' panicked at '' panicked at 'called Result::unwrap() on an Err value: Format(FormatError { inner: InvalidSignature })called Re sult::unwrap() on an Err value: Format(FormatError { inner: InvalidSignature })', ', crates\rhyolite_bevy\src\loaders\png.rscrates\rhyolite_bevy\src\loaders\png.rs::8585::thread '50
' panicked at '50stack backtrace:

called Result::unwrap() on an Err value: Format(FormatError { inner: InvalidSignature })', crates\rhyolite_bevy\src\loaders\png.rs:85:50
thread 'IO Task Pool (2)' panicked at 'called Result::unwrap() on an Err value: Format(FormatError { inner: InvalidSignature })', crates\rhyolite_bevy\src\loaders\png.rs:85:50
2024-01-03T20:47:28.677849Z ERROR bevy_asset::server: Failed to load asset 'castle.vox' with asset loader 'dust_vox::loader::VoxLoader': parse error: Not a valid MagicaVoxel .vox file
2024-01-03T20:47:28.823696Z ERROR bevy_asset::server: Failed to load asset 'teapot.vox' with asset loader 'dust_vox::loader::VoxLoader': parse error: Not a valid MagicaVoxel .vox file
2024-01-03T20:47:28.853979Z INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Windows 11 Home", kernel: "22631", cpu: "12th Gen Intel(R) Core(TM) i7-12650H", core_count: "10", memory: "15.7 GiB" }
2024-01-03T20:47:28.873908Z INFO rhyolite::swapchain: Creating swapchain width=1920 height=1080 format=B8G8R8A8_UNORM color_space=SRGB_NONLINEAR
0: std::panicking::begin_panic_handler
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df/library\std\src\panicking.rs:593
1: core::panicking::panic_fmt
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df/library\core\src\panicking.rs:67
2: core::result::unwrap_failed
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df/library\core\src\result.rs:1651
3: enum2$<core::result::Result<png::decoder::Reader<ref$<slice2$ > >,enum2$png::decoder::stream::DecodingError > >::unwrap<png::decoder::Reader<ref$<slice2$ > >,enum2$png::decoder::stream::DecodingError >
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df\library\core\src\result.rs:1076
4: rhyolite_bevy::loaders::png::impl$2::load::async_block$0
at .\crates\rhyolite_bevy\src\loaders\png.rs:85
5: core::future::future::impl$1::poll<alloc::boxed::Box<dyn$<core::future::future::Future<assoc$<Output,enum2$<core::result::Result<rhyolite_bevy::image::SlicedImageArray,enum2$<rhyolite_bevy::loaders::png::PngLoadingError> > > > >,core::marker::Send>,alloc:
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df\library\core\src\future\future.rs:125
6: bevy_asset::loader::impl$0::load::async_block$0<rhyolite_bevy::loaders::png::PngLoader>
at C:\Users\Gatto.cargo\git\checkouts\bevy-f7ffde730c324c74\2c7eab1\crates\bevy_asset\src\loader.rs:94
7: core::future::future::impl$1::poll<alloc::boxed::Box<dyn$<core::future::future::Future<assoc$<Output,enum2$<core::result::Result<bevy_asset::loader::ErasedLoadedAsset,alloc::boxed::Box<dyn$core::error::Error,core::marker::Send,core::marker::Sync,alloc::
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df\library\core\src\future\future.rs:125
8: bevy_asset::server::impl$0::load_with_meta_loader_and_reader::async_fn$0
at C:\Users\Gatto.cargo\git\checkouts\bevy-f7ffde730c324c74\2c7eab1\crates\bevy_asset\src\server\mod.rs:923
9: bevy_asset::server::impl$0::load_internal::async_fn$0
at C:\Users\Gatto.cargo\git\checkouts\bevy-f7ffde730c324c74\2c7eab1\crates\bevy_asset\src\server\mod.rs:483
10: bevy_asset::server::impl$0::load_with_meta_transform::async_block$0<rhyolite_bevy::image::SlicedImageArray,ref$<str$> >
at C:\Users\Gatto.cargo\git\checkouts\bevy-f7ffde730c324c74\2c7eab1\crates\bevy_asset\src\server\mod.rs:299
11: async_executor::impl$5::spawn::async_block$0<tuple$<>,enum2$<bevy_asset::server::impl$0::load_with_meta_transform::async_block_env$0<rhyolite_bevy::image::SlicedImageArray,ref$<str$> > > >
at C:\Users\Gatto.cargo\registry\src\index.crates.io-6f17d22bba15001f\async-executor-1.8.0\src\lib.rs:158
12: async_task::raw::impl$3::run::closure$1<enum2$<async_executor::impl$5::spawn::async_block_env$0<tuple$<>,enum2$<bevy_asset::server::impl$0::load_with_meta_transform::async_block_env$0<rhyolite_bevy::image::SlicedImageArray,ref$<str$> > > > >,tuple$<>,asyn
at C:\Users\Gatto.cargo\registry\src\index.crates.io-6f17d22bba15001f\async-task-4.6.0\src\raw.rs:557
13: core::ops::function::FnOnce::call_once<async_task::raw::impl$3::run::closure_env$1<enum2$<async_executor::impl$5::spawn::async_block_env$0<tuple$<>,enum2$<bevy_asset::server::impl$0::load_with_meta_transform::async_block_env$0<rhyolite_bevy::image::Sliced
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df\library\core\src\ops\function.rs:250
14: core::panic::unwind_safe::impl$23::call_once<enum2$<core::task::poll::Poll<tuple$<> > >,async_task::raw::impl$3::run::closure_env$1<enum2$<async_executor::impl$5::spawn::async_block_env$0<tuple$<>,enum2$<bevy_asset::server::impl$0::load_with_meta_transfor
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df\library\core\src\panic\unwind_safe.rs:271
15: std::panicking::try::do_call<core::panic::unwind_safe::AssertUnwindSafe<async_task::raw::impl$3::run::closure_env$1<enum2$<async_executor::impl$5::spawn::async_block_env$0<tuple$<>,enum2$<bevy_asset::server::impl$0::load_with_meta_transform::async_block_e
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df\library\std\src\panicking.rs:500
16: std::panicking::try::do_catch<core::panic::unwind_safe::AssertUnwindSafe<async_task::raw::impl$3::run::closure_env$1<enum2$<async_executor::impl$5::spawn::async_block_env$0<tuple$<>,enum2$<bevy_asset::server::impl$0::register_loader::async_block_env$0<dus
17: std::panicking::try<enum2$<core::task::poll::Poll<tuple$<> > >,core::panic::unwind_safe::AssertUnwindSafe<async_task::raw::impl$3::run::closure_env$1<enum2$<async_executor::impl$5::spawn::async_block_env$0<tuple$<>,enum2$<bevy_asset::server::impl$0::load_
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df\library\std\src\panicking.rs:464
18: std::panic::catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<async_task::raw::impl$3::run::closure_env$1<enum2$<async_executor::impl$5::spawn::async_block_env$0<tuple$<>,enum2$<bevy_asset::server::impl$0::load_with_meta_transform::async_block_env$0
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df\library\std\src\panic.rs:142
2024-01-03T20:47:28.952851Z INFO bevy_asset::server: Reloading castle.vox because it has changed
19: async_task::raw::RawTask<enum2$<async_executor::impl$5::spawn::async_block_env$0<tuple$<>,enum2$<bevy_asset::server::impl$0::load_with_meta_transform::async_block_env$0<rhyolite_bevy::image::SlicedImageArray,ref$<str$> > > > >,tuple$<>,async_executor::imp
at C:\Users\Gatto.cargo\registry\src\index.crates.io-6f17d22bba15001f\async-task-4.6.0\src\raw.rs:556
20: async_task::runnable::Runnable<tuple$<> >::run<tuple$<> >
at C:\Users\Gatto.cargo\registry\src\index.crates.io-6f17d22bba15001f\async-task-4.6.0\src\runnable.rs:784
21: async_executor::impl$5::run::async_fn$0::async_block$0<enum2$<core::result::Result<tuple$<>,async_channel::RecvError> >,futures_lite::future::Or<enum2$<bevy_tasks::task_pool::impl$2::new_internal::closure$0::closure$0::closure$0::closure$0::async_block_en
at C:\Users\Gatto.cargo\registry\src\index.crates.io-6f17d22bba15001f\async-executor-1.8.0\src\lib.rs:254
22: futures_lite::future::impl$7::poll<enum2$<core::result::Result<tuple$<>,async_channel::RecvError> >,futures_lite::future::Or<enum2$<bevy_tasks::task_pool::impl$2::new_internal::closure$0::closure$0::closure$0::closure$0::async_block_env$0>,async_channel::
at C:\Users\Gatto.cargo\registry\src\index.crates.io-6f17d22bba15001f\futures-lite-2.1.0\src\future.rs:449
23: async_executor::impl$5::run::async_fn$0<enum2$<core::result::Result<tuple$<>,async_channel::RecvError> >,futures_lite::future::Or<enum2$<bevy_tasks::task_pool::impl$2::new_internal::closure$0::closure$0::closure$0::closure$0::async_block_env$0>,async_chan
at C:\Users\Gatto.cargo\registry\src\index.crates.io-6f17d22bba15001f\async-executor-1.8.0\src\lib.rs:261
24: futures_lite::future::block_on::closure$0<enum2$<core::result::Result<tuple$<>,async_channel::RecvError> >,enum2$<async_executor::impl$5::run::async_fn_env$0<enum2$<core::result::Result<tuple$<>,async_channel::RecvError> >,futures_lite::future::Or<enum2$<
at C:\Users\Gatto.cargo\registry\src\index.crates.io-6f17d22bba15001f\futures-lite-2.1.0\src\future.rs:99
2024-01-03T20:47:28.961672Z ERROR bevy_asset::server: Failed to load asset 'castle.vox' with asset loader 'dust_vox::loader::VoxLoader': parse error: Not a valid MagicaVoxel .vox file
25: std::thread::local::LocalKey<core::cell::RefCell<tuple$parking::Parker,core::task::wake::Waker > >::try_with<core::cell::RefCell<tuple$parking::Parker,core::task::wake::Waker >,futures_lite::future::block_on::closure_env$0<enum2$<core::result::Result<
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df\library\std\src\thread\local.rs:270
26: std::thread::local::LocalKey<core::cell::RefCell<tuple$parking::Parker,core::task::wake::Waker > >::with<core::cell::RefCell<tuple$parking::Parker,core::task::wake::Waker >,futures_lite::future::block_on::closure_env$0<enum2$<core::result::Result<tupl
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df\library\std\src\thread\local.rs:246
27: futures_lite::future::block_on<enum2$<core::result::Result<tuple$<>,async_channel::RecvError> >,enum2$<async_executor::impl$5::run::async_fn_env$0<enum2$<core::result::Result<tuple$<>,async_channel::RecvError> >,futures_lite::future::Or<enum2$<bevy_tasks:
at C:\Users\Gatto.cargo\registry\src\index.crates.io-6f17d22bba15001f\futures-lite-2.1.0\src\future.rs:78
28: bevy_tasks::task_pool::impl$2::new_internal::closure$0::closure$0::closure$0::closure$0
at C:\Users\Gatto.cargo\git\checkouts\bevy-f7ffde730c324c74\2c7eab1\crates\bevy_tasks\src\task_pool.rs:180
29: std::panicking::try::do_call<bevy_tasks::task_pool::impl$2::new_internal::closure$0::closure$0::closure$0::closure_env$0,enum2$<core::result::Result<tuple$<>,async_channel::RecvError> > >
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df\library\std\src\panicking.rs:500
30: bevy_tasks::task_pool::impl$2::THREAD_EXECUTOR::__getit::closure$0
31: std::panicking::try<enum2$<core::result::Result<tuple$<>,async_channel::RecvError> >,bevy_tasks::task_pool::impl$2::new_internal::closure$0::closure$0::closure$0::closure_env$0>
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df\library\std\src\panicking.rs:464
32: std::panic::catch_unwind<bevy_tasks::task_pool::impl$2::new_internal::closure$0::closure$0::closure$0::closure_env$0,enum2$<core::result::Result<tuple$<>,async_channel::RecvError> > >
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df\library\std\src\panic.rs:142
33: bevy_tasks::task_pool::impl$2::new_internal::closure$0::closure$0::closure$0
at C:\Users\Gatto.cargo\git\checkouts\bevy-f7ffde730c324c74\2c7eab1\crates\bevy_tasks\src\task_pool.rs:174
34: std::thread::local::LocalKey<async_executor::LocalExecutor>::try_with<async_executor::LocalExecutor,bevy_tasks::task_pool::impl$2::new_internal::closure$0::closure$0::closure_env$0,tuple$<> >
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df\library\std\src\thread\local.rs:270
35: std::thread::local::LocalKey<async_executor::LocalExecutor>::with<async_executor::LocalExecutor,bevy_tasks::task_pool::impl$2::new_internal::closure$0::closure$0::closure_env$0,tuple$<> >
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df\library\std\src\thread\local.rs:246
36: bevy_tasks::task_pool::impl$2::new_internal::closure$0::closure$0
at C:\Users\Gatto.cargo\git\checkouts\bevy-f7ffde730c324c74\2c7eab1\crates\bevy_tasks\src\task_pool.rs:167
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.
stack backtrace:
0: std::panicking::begin_panic_handler
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df/library\std\src\panicking.rs:593
1: core::panicking::panic_fmt
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df/library\core\src\panicking.rs:67
2: core::result::unwrap_failed
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df/library\core\src\result.rs:1651
3: enum2$<core::result::Result<png::decoder::Reader<ref$<slice2$ > >,enum2$png::decoder::stream::DecodingError > >::unwrap<png::decoder::Reader<ref$<slice2$ > >,enum2$png::decoder::stream::DecodingError >
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df\library\core\src\result.rs:1076
4: rhyolite_bevy::loaders::png::impl$2::load::async_block$0
at .\crates\rhyolite_bevy\src\loaders\png.rs:85
5: core::future::future::impl$1::poll<alloc::boxed::Box<dyn$<core::future::future::Future<assoc$<Output,enum2$<core::result::Result<rhyolite_bevy::image::SlicedImageArray,enum2$<rhyolite_bevy::loaders::png::PngLoadingError> > > > >,core::marker::Send>,alloc:
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df\library\core\src\future\future.rs:125
6: bevy_asset::loader::impl$0::load::async_block$0<rhyolite_bevy::loaders::png::PngLoader>
at C:\Users\Gatto.cargo\git\checkouts\bevy-f7ffde730c324c74\2c7eab1\crates\bevy_asset\src\loader.rs:94
7: core::future::future::impl$1::poll<alloc::boxed::Box<dyn$<core::future::future::Future<assoc$<Output,enum2$<core::result::Result<bevy_asset::loader::ErasedLoadedAsset,alloc::boxed::Box<dyn$core::error::Error,core::marker::Send,core::marker::Sync,alloc::
at /rustc/cb80ff132a0e9aa71529b701427e4e6c243b58df\library\core\src\future\future.rs:125
8: bevy_asset::server::impl$0::load_with_meta_loader_and_reader::async_fn$0
at C:\Users\Gatto.cargo\git\checkouts\bevy-f7ffde730c324c74\2c7eab1\crates\bevy_asset\src\server\mod.rs:923
9: bevy_asset::server::impl$0::load_internal::async_fn$0
at C:\Users\Gatto.cargo\git\checkouts\bevy-f7ffde730c324c74\2c7eab1\crates\bevy_asset\src\server\mod.rs:483

thread '10main: ' has overflowed its stack
bevy_asset::server::impl$0::load_with_meta_transform::async_block$0<rhyolite_bevy::image::SlicedImageArray,ref$<str$> >
at C:\Users\Gatto.cargo\git\checkouts\bevy-f7ffde730c324c74\2c7eab1\crates\bevy_asset\src\server\mod.rs:299
error: process didn't exit successfully: target\debug\examples\castle.exe (exit code: 0xc000041d)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant