Log in or register to post comments

EXC_BAD_ACCESS on 64-Bit devices on suspend

June 18, 2015 - 6:16am #4

I get a reproducible crash on my 64 bit iPad Air after pressing the home button.

Stack trace:

The code:

		Color_t95  L_16 = {0};
		Color__ctor_m2554(&L_16, (0.0f), (0.0f), (0.0f), (1.0f), /*hidden argument*/NULL);
		GL_Clear_m7113(NULL /*static, unused*/, 0, 1, L_16, /*hidden argument*/NULL);
		Object_t * L_17 = UnityPlayer_get_Instance_m5504(NULL /*static, unused*/, /*hidden argument*/NULL);
		InterfaceActionInvoker0::Invoke(4 /* System.Void Vuforia.IUnityPlayer::OnPause() */, IUnityPlayer_t651_il2cpp_TypeInfo_var, L_17);

Xcode Console:

-> applicationWillResignActive()
System.Collections.Generic.DefaultComparer:Equals(TimeSpan, TimeSpan)
UnityEngine.Debug:Internal_Log(Int32, String, Object)
System.Collections.Generic.DefaultComparer:Equals(TimeSpan, TimeSpan)
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebug.gen.cpp Line: 56)


I am running iOS 8.3, iPad Air WiFi, 16 GB

The Project is exported from Unity iOS Pro 5.0.3 and built with Xcode 6.3.2. It happens regardless if I run a debug build from Xcode or install it as ipa. I set optimisation level to None in build settings as recommended in Vuforia 4.2.3, Unity 4.6.5p4 IL2CPP 32bit Crash.

The crash does not happen on my iPhone 5 which is a 32 bit device (iOS 8.2).

Any ideas what I can do to avoid this? Thanks


EXC_BAD_ACCESS on 64-Bit devices on suspend

June 18, 2015 - 8:51pm #3

Are you building your project with iOS Metal (logs show GfxDeviceMetal) selected in Unity? Graphics API should be set to OpenGL ES 2.0.

EXC_BAD_ACCESS on 64-Bit devices on suspend

June 24, 2015 - 5:42am #2

Sorry for answering so late. I missed your reply as my thread notifications were disabled.

That's it, thank you for saving my life again :-) This 32/64 bit stuff turns out to be even more nasty than the camera permissioning popup some time ago.

I never touched this setting and found it set to Automatic (sounds like the default?). But maybe some other plugin modified it during its installation.

EXC_BAD_ACCESS on 64-Bit devices on suspend

June 25, 2015 - 4:02am #1

Vuforia 4.2.3 should normally set the Graphics API for iOS to OpenGL ES 2.0 when you import the package (either the SDK package or any of the Samples packages);

it is definitely possible that some other plugins that you are using in your project may have overriden those settings, as you say.

Log in or register to post comments