IL2CPP crash on iOS using version 5.0.1p3

I have previously been able to build and run this project using Unity 5.0.1f2, I think. But there were still a few issues when running the app. I upgraded Unity to the latest patch and have not been able to boot to the main menu with IL2CPP builds. I’ve tried removing the IL2CPP recompile header but get the same result, I think this changes if I force OpenGL es 2.0, but still getting issues. Think I will roll back the update, but was wondering if anyone has any thoughts. I get this error,

2015-05-01 15:27:00.409 infection[18969:2555837] No video texture cache

2015-05-01 15:27:00.443 infection[18969:2555837] No video texture cache

2015-05-01 15:27:00.476 infection[18969:2555837] No video texture cache

2015-05-01 15:27:00.510 infection[18969:2555837] No video texture cache

2015-05-01 15:27:00.543 infection[18969:2555837] No video texture cache

2015-05-01 15:27:00.576 infection[18969:2555837] No video texture cache

2015-05-01 15:27:00.580 infection[18969:2556032] totalRenderTime: 4.680013

2015-05-01 15:27:00.623 infection[18969:2556032] deallocing instance: 2

The referenced script on this Behaviour is missing!

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Mono/MonoBehaviour.cpp Line: 1713)

Unloading 6 Unused Serialized files (Serialized files now loaded: 0)

UnloadTime: 1.205458 ms

ColorManager has no color modes set at runtime!!!

System.Collections.Generic.DefaultComparer:Equals(Guid, Guid)

UnityEngine.Debug:Internal_Log(Int32, String, Object)

UnityEngine.Debug:LogError(Object)

ColorSchemeManager:RefreshColorModes()

ColorSchemeManager:OnEnable()

System.Collections.Generic.DefaultComparer:Equals(Guid, Guid)

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebug.gen.cpp Line: 56)

I am interested to know if the same issue happens with 5.0.1p3 when you build with the Mono scripting backend. Could you give that a try? That will help us narrow down the cause of the problem. Thanks.

Hello,
Here is the same issue with extraneous issues removed. I’m not sure what is going on here. I have been able to compile and run the game using 5.0.1f1 with il2cpp compilation. However I encounter a completely different issue relating to save game restore. The plugin used for this is UnitySerializer which does appear in the stack trace. I was hoping the patch might fix this issue. Instead it doesn’t even get past the splash screen.
I was able to boot the project into a blank scene, but cannot get anything to work. Device is iPad mini 2. Any ideas?

CrashReporter: initialized

2015-05-06 18:53:10.094 infection[20645:2753930] → registered mono modules 0x101e5b2e0

→ applicationDidFinishLaunching()

PlayerConnection initialized from /private/var/mobile/Containers/Bundle/Application/51D70DB4-5DE6-4D72-9F58-7791A04CC40E/infection.app/Data (debug = 0)

PlayerConnection initialized network socket : 0.0.0.0 55000

Multi-casting “[IP] 192.168.0.155 [Port] 55000 [Flags] 2 [Guid] 2729114972 [EditorId] 4193497854 [Version] 1048832 [Id] iPhonePlayer(Andrews-iPad):56000 [Debug] 0” to [225.0.0.222:54997]…

→ applicationDidBecomeActive()

Requesting Resolution: 2048x1536

Init: screen size 2048x1536

Initializing Metal device caps

Initialize engine version: 5.0.1p3 (831bf8db21f1)

Device: iPadMini2Gen cRes: Vector2i x: 2048 y: 1536 tRes Vector2i x: 2048 y: 1536

Index2:<Getting>m__28(String, List1)

UnityEngine.Debug:Internal_Log(Int32, String, Object)

UnityEngine.Debug:Log(Object)

QualityController:SetDeviceResolutionSettings()

QualityController:Start()

Index2:<Getting>m__28(String, List1)

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebug.gen.cpp Line: 56)

Unloading 2 Unused Serialized files (Serialized files now loaded: 0)

UnloadTime: 2.469708 ms

System memory in use before: 6.5 MB.

System memory in use after: 6.6 MB.

Unloading 2 unused Assets to reduce memory usage. Loaded Objects now: 1041.

Total: 2.504958 ms (FindLiveObjects: 0.104500 ms CreateObjectMapping: 0.046291 ms MarkObjects: 2.317708 ms DeleteObjects: 0.033541 ms)

Unloading 5 Unused Serialized files (Serialized files now loaded: 0)

UnloadTime: 0.851041 ms

(lldb)

@Culzean

This looks like a problem that we have correct in the 5.0.1p4 release, which should be available today. Once that release is out, please give this a try again. Thanks.

I’ll try this as soon as the I can grab the patch. And will report back.

The 5.0.1p4 version was just released, so please give it a try. Thanks.

Hey Josh, I’ve grabbed the update and the crash has indeed been resolved and the game is running much better now. I’m afraid this does not solve all of our issues with IL2CPP compilation but is looking much better. Think we have an issue with generic types not making it through the Unity Serializer under IL2CPP compilation.
Going to try a few things, maybe I’ll have another question later.
Thanks!