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

Occasional Failure to Load Assets #242

Open
zicklag opened this issue Oct 18, 2023 · 1 comment
Open

Occasional Failure to Load Assets #242

zicklag opened this issue Oct 18, 2023 · 1 comment

Comments

@zicklag
Copy link
Member

zicklag commented Oct 18, 2023

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 zicklag transferred this issue from fishfolk/jumpy Oct 18, 2023
@zicklag
Copy link
Member Author

zicklag commented Oct 30, 2023

Hopefully this was fixed by #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.

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