IL2CPP Game Build Crash

1. What happened

  • Running a game built with IL2CPP crashes the game immediately after being run (but after Unity logo being shown).

2. How can we reproduce it using the example you attached

  1. Create a Unity project.

  2. Assign a render pipelines (URP or HDRP).

  3. Set ‘Scripting Backend’ under ‘Other Settings’ inside ‘Player Settings’ to IL2CPP.

  4. Go to ‘Build Settings’ and set ‘IL2CPP Code Generation’ to ‘Faster (smaller) builds’.

  5. Hit ‘Build’ and then run the game, or hit ‘Build And Run’ to run it immediately.

Expected Result: Game runs as expected.
Actual Result: Game crashes immediately after Unity logo is shown.


I reported this issue in “Unity 2021.2.0b15” and “Unity 2021.2.0b16”.

However, when I go to “FogBugz” to track my issue, I cannot find my report I wrote, it’s just blank. If anyone know what is the issue, please, let me know! Any help is much appreciated, thanks.

Blank [spoiler]https://ibb.co/4NKtCWV[/spoiler]

I faced the same blank issue recently. The bug report process seems to be bugged :smile:

Oh really? The bug report process is bugged, how ironic! Now that I know for sure that I’m not in the dark alone… haha :smile: