Search Issue Tracker
Fixed in 2021.1.X
Votes
0
Found in
2021.1.0a6
Issue ID
1294088
Regression
Yes
Crash on (GameAssembly) il2cpp_assert and error Debug assertion failed! when building with IL2CPP & executing Try-Catch block
How to reproduce:
1. Open the attached project from "il2cpp_nested_trycatch_bug.zip"
2. Open scene "SampleScene"
3. Navigate to File > Build Settings... > Build And Run
Reproducible with: 2021.1.0a6, 2021.1.0a7
Not reproducible with: 2018.4.28f1, 2019.4.15f1, 2020.1.15f1, 2020.2.0b12, 2021.1.0a5
First lines of stacktrace:
0x00007FFC73E96CCE (GameAssembly) [D:\UnityVersions\2021.1\2021.1.0a7_fdd63b12dbc0\Editor\Data\il2cpp\libil2cpp\os\Win32\Assert.cpp:12] il2cpp_assert
0x00007FFC73C7E51E (GameAssembly) il2cpp::utils::ExceptionSupportStack<Il2CppObject * __ptr64,1>::push
0x00007FFC749AE7E1 (GameAssembly) [D:\Downloads\ddd\New folder\case_1281069-il2cpp_nested_trycatch_bug\case_1281069-il2cpp_nested_trycatch_bug\Library\Il2cppBuildCache\Windows\x64\il2cppOutput\Assembly-CSharp.cpp:564] Test_Start_m4D6FA0B24EBFD6471F4596A93EC95EC1EB5355D8$catch$1
0x00007FFC74077CB0 (GameAssembly) CallSettingFrame_LookupContinuationIndex
Notes:
- The issue does not reproduce with Mono and changing API compatibility levels does not have an effect.
- Does not reproduce on Mac.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note (fix version 2021.1):
Fixed in 2021.1.0a10