online-fps icon indicating copy to clipboard operation
online-fps copied to clipboard

"Unable to find node for revolver" crash on start

Open randomPoison opened this issue 6 years ago • 1 comments

Sometimes on startup we'll get an error message like the following:

thread '<unnamed>' panicked at 'Unable to find "Cylinder Pivot" node for revolver', libcore\option.rs:989:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
error: process didn't exit successfully: `D:\GitHub\online-fps\target\debug\client.exe` (exit code: 101)

This is likely happening because we're running the late init logic on the frame immediately after a prefab is instantiated and instantiation ends up taking more than a frame to complete. We should first confirm that this issue is in fact happening because the prefab hasn't yet been instantiated, then we need to somehow update the late init functionality to better handle this case.

randomPoison avatar Sep 19 '18 05:09 randomPoison

This might be a case to start investigating async support in game logic, since this is a case where we want to wait on an async operation (loading the asset) to complete before continuing the game logic.

randomPoison avatar Sep 19 '18 05:09 randomPoison