The exact conditions are unclear, but it occurs when enable/disable sprites of GOs generated from the factory.
This issue seems more likely to occur when multiple GO instances are enable/disable simultaneously.
Please let us know if there is any missing information.
This issue has been confirmed to be reproducible up to version 1.12.0.
It has not been confirmed to be reproducible in earlier versions.
The reason the crash is occurring is that the Sprite-related processing, which appears to be the direct cause of the crash, is being executed in late_update().
Moving this processing to fixed_update() prevents the crash from recurring.
I also tried a minimal project "TestPJ ", but I were unable to reproduce the issue.
I push TestPJ for your reference.
TestPJ is structured similarly to the original project, with enemy constantly sending messages to shadow.
Removing Sprite enable/disable handling the “size” message in shadow.script temporarily prevents the crash.
Could you please create an issue on GitHub with the information in this post? This way we have the information saved for the future in case someone else manages to find a good way to reproduce the issue.
Thank you for your assistance!
I have confirmed that the issue has been resolved in my project, which I had kept in a state where the problem was reproducible (using v1.13.1).