Search Issue Tracker

Fixed in 2022.1.X

Fixed in 2021.2.X



Found in




Issue ID




IL2CPP Player crash



Reproduction steps:
1. Open the user's attached project ""
2. Go to Assets > Scenes and open "SampleScene.unity"
3. Go to Edit > Project Settings > Player > Configuration and select the "Scripting Backened" to "IL2CPP"
4. Build and run the project

Expected result: Build works with no issues
Actual result: Build crashes

Reproducible with: 2021.2.0a4, 2022.1.0a7
Not reproducible with: 2019.4.30f1, 2020.3.18f1, 2021.1.20f1
Could not test with: 2021.2.0a1, 2021.2.0a2 (Due to IL2CPP errors), 2021.2.0a3 (Editor crash while opening the project)

- Building the project with 2021.2.0a1 and 2021.2.0a2 versions resulted in various IL2CPP errors
- Opening the project with the 2021.2.0a3 version, resulted in an Editor crash
- Mono scripting backend works with no issues

  1. Resolution Note (fix version 2022.1):

    Fixed in 2022.1.0a12

  2. Resolution Note (fix version 2021.2):

    Fixed in 2021.2.0b16

Comments (8)

  1. celinedioncdc

    Aug 15, 2023 09:18

    It's possible that Unity has acknowledged this issue and provided additional information or workarounds.

  2. weninvite68

    Jul 27, 2023 04:37

    This is an amazing and informative article that covers so much ground.

  3. cristianbailey

    May 09, 2023 02:50

    I too received the same error. But don't know how to handle it

  4. killingodd

    Apr 21, 2023 09:06

    I also got the same error.

  5. yearoryx

    Mar 08, 2023 02:12

    When build Android player with Il2CPP, it will crash but work properly with Mono build. Windows standalone player build with Il2CPP when run it, it will crash when press button to spawn hero.

  6. KristinTanner

    Sep 12, 2022 04:01

    When running a Windows standalone player that was compiled with Il2CPP, pressing the button to spawn the hero causes the program to crash They don't function correctly in the Linux and Windows server builds, but they don't crash either.

  7. RenatoMalota

    Apr 12, 2022 14:25

    When there was no hope, I found HTTPS:// service. I had no enough time to write my own piece before due date but them completing my sample very fast. I will definitely recommend to my mates, my grade was one of the highest in the class!

  8. MichaelPerez123

    Feb 21, 2022 21:29

    check thos

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.