Occasional Failure to Load Assets
Description
Sometimes, randomly, the game will panic while loading assets and not get past the loading screen:
thread 'TaskPool (8)' panicked at /home/zicklag/git/other/bones/framework_crates/bones_asset/src/server.rs:462:26:
asset not loaded
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
To Reproduce
Run the Jumpy game over and over until it happens.
Expected Behavior
The game starts up.
Additional Context
I'm on a machine with 12 logical CPU cores.
The strange part is that I can't figure out how this function call can complete, and return a Cid, but the lines immediately after it can't access the value. This is very possibly an issue with using DashMap and may be resolved if we migrate away from dashmap ( #222 ), which can be precarious to use in an async context due to deadlocks, though it's not a deadlock we're having trouble with here.
Log Messages
No response
Hopefully this was fixed by https://github.com/fishfolk/bones/pull/253, but I'm not sure, so I'll leave this open for now and close it if I don't see the issue again.