EDIT: SEEMS resolved, details at bottom.
Hello gang,
I have been working on a project for a few years and have just run into a problem with a compiled game.
Shortly after the game starts it crashes. No dialog box or other message. This does not happen inside the editor. Within the editor no errors or warnings are thrown during playback.
Yesterday my anti-virus was telling me an issue with this folder: C:\ProgramData\Microsoft\Windows\WER\Temp
This is the Windows Error Reporting
Shortly after the game starts 8 files are created, and then 7 of them instantly deleted, the last file, a random guid named empty file, is automatically deleted in less than a couple of minutes.
What I have been able to track is:
- I have a sub scene
- There is ONE empty object within that subscene
- If I attach a RigidBody or PhysicsShape, the crash occurs. If I remove that object, no crash.
- I have deleted said object and recreated a new one to ensure that this is reproducible.
This is a PCVR game, however the issue occurs even when “Initialize XR on Startup” in UNchecked. (I don’t know if XR matters in this issue, I am only stating this as a ‘just in case’
Unity 2022.3.46f1
Entities: 1.3.5
Entities Graphics: 1.3.2
Unity Physics: 1.3.5
Universal RP: 14.0.11
OpenXR Plugin: 1.12.1
Windows 10
I had two sub scenes, one of those was just the Player entity. When I removed that sub scene and recreated the player entity within the other sub scene with the Physics components the compiled game does not crash.