I have started getting an il2cpp crash in different parts of the game. It seems like the top of the stack trace is always similar, even though the place the il2cpp library code is called from differs a lot.
The issue seems eerily similar to Unity Issue Tracker - [IL2CPP] il2cpp::metadata::Il2CppTypeHash::Hash crashes Player on OnCollisionEnter2D but is reproducible in many different scenarios. I have tried to run the game on 2019.2.0a11, and it seems like the issue does not reproduce there, which points to the fix for the mentioned issue also fixing my troubles. I am on 2018.3.x however, and updating to an alpha release is not feasible.
As this issue causes my game to be unplayable because of loads of seemingly random crashes, it seems like this issue would be worth fixing also for the 2018 versions. If a fix isn’t possible, any kind of light shed on the cause of the issue would be appreciated, as it would maybe allow me to work around the issue.
I have attached stack traces of three different crashes.
4433794–405331–Stacktrace 1 Processed.txt (18.2 KB)
4433794–405334–Stacktrace 2 Processed.txt (14.4 KB)
4433794–405337–Stacktrace 3 Processed.txt (14.3 KB)