(Case 1315723) [IL2CPP][Physics][Netcode][Entities] Android build crash

Android with IL2CPP build will crash but working properly with Mono build. I believe other platforms like IOS, Windows, Linux with IL2CPP will also crash. I’m not really sure but seems like there are 2 crash bugs. For Develop build has DOTS Physics package bug meanwhile for release build has Subscene bug in Entities package.

6850310–798905–Android Logcat (Release).txt (1.05 MB)
6849986–797828–Android Logcat.txt (321 KB)

Hi @steveeHavok . Can you take a look at Android Logcat (Develop) for dots physics crash bug and also if possible forward Android Logcat (Release) to related person to fix Entities package crash bug.

Hi @optimise , could you please share editor logs as well, if possible? How did you conclude that Dev crash was caused by physics, is there anything else you could share?

I guess this is related to the other il2cpp thread ( [0.6.0-preview.3] IL2CPP build does not work properly )?

Hi @milos85miki , you can refer to Android Logcat (Develop) at above. The logcat mention something about PhysicsShapeAuthoring_GetCapsuleProperties.

6857522--799265--upload_2021-2-20_7-50-19.png

Hi @milos85miki , @steveeHavok . Any new updates?

Hi @optimise , I’m investigating. I saw the PhysicsShapeAuthoring entry, but since it’s in the middle of the call stack I’m not sure the problem is in that code.

As you’ve seen on your other thread, we are aware of one il2cpp crash that can happen with physics, but is actually caused by a bug in another package. That is being worked on (workaround is [MonoPInvokeCallback(typeof(_dlg_Hash64Long))]), but I’m trying to figure out if we’re dealing with the same underlying problem here or it’s something else.

Will let you know as soon as I have some news.

Just a quick update - the bug was triaged by Unity folks and it’s on the radar. That’s all I know.

@milos85miki . Any new update for this bug?

Sorry, I don’t have any news. There’s a note that any updates should be shared here as well.

Here’s where you can track the progress: https://issuetracker.unity3d.com/issues/android-il2cpp-netcode-development-build-crashes-on-signal-11-sigsegv-upon-app-launch

Hello, this is just to say that I have a SIGSEGV crash upon an android release build using il2cpp, and it does not crash on development build nor using mono. I had the crash on a bigger project using a small bit of DOTS code but I have reproduced it on a blank project with just the dots part.
Sorry if this isn’t directly related but I’m interested in any news too.
Crash with unity 2021 lastest, project was not crashing with 2020

Hi @optimise , Did you find any fix related to this issue?
We do have a similar issue, the game crashes when we do [IL2CPP] [Android] [Release] build.

Hi,
I’m also facing this issue.
Game is ready but can’t build for publishing :frowning:
Please help if anyone has a workaround?

@optimise @ArshakKroyan Any fixes? I faced the similar crash. My simple app works if it is built by Mono. But I need IL2CPP build because google requires ARM64 build.