IL2CPP issue: il2cpp::metadata::Il2CppGenericMethodHash::Hash

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)

It looks like the fix for Unity Issue Tracker - [IL2CPP] il2cpp::metadata::Il2CppTypeHash::Hash crashes Player on OnCollisionEnter2D was back ported to 2018.3 and released in 2018.3.6. If you’ve not done so, can you try this in that version or newer?

Hi Josh, and thanks for the quick reply!

This issue happens for me also on 2018.3.6, 2018.3.10, 2018.3.12, and 2019.1.0. I was not aware the fix had been back ported! If that’s the case, maybe this is an entirely different issue, then.

Yes, it sounds like a different issue. Unforuntately the Issue Tracker website does not indicate well when a fix has been back ported.

Can you send us a new bug report for this issue? That might help us track down the fix and make sure it is back ported as well.

I have reported the issue with the id 1145468 a couple of days ago. Thanks for looking into it!

1 Like