bones icon indicating copy to clipboard operation
bones copied to clipboard

Occasional Failure to Load Assets

Open zicklag opened this issue 2 years ago • 1 comments

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

zicklag avatar Oct 18 '23 15:10 zicklag

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.

zicklag avatar Oct 30 '23 22:10 zicklag