"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Unity iOS Crash only after upload to Apple

I'm getting a strange Vuforia related crash. The strange part is that it only crashes after uploading to Apple, and installing either through Test Flight or App Store.

I am not sure how to figure out the cause, since I can't reproduce it during debugging.

I am using Unity 5.6.3p4, Xcode 9.0.1, and Vuforia 6-2-10.

Here is the error in the crash log:

Exception Type:  EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x000000011537c000 VM Region Info: 0x11537c000 is not in any region.  Bytes after previous region: 1  Bytes before following region: 16384       REGION TYPE                      START - END             [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL       MALLOC_LARGE           0000000115374000-000000011537c000 [   32K] rw-/rwx SM=PRV  --->  GAP OF 0x4000 BYTES       MALLOC_LARGE           0000000115380000-0000000115394000 [   80K] rw-/rwx SM=PRV 

Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: exc handler [0] Triggered by Thread:  0

Filtered syslog: None found

Thread 0 name:  Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0   wackyapp                       0x0000000101909e8c il2cpp::utils::StringUtils::Utf16ToUtf8(char16_t const*, int) + 16883340 (unchecked.h:133) 1   wackyapp                       0x0000000101909eb8 il2cpp::utils::StringUtils::Utf16ToUtf8(char16_t const*, int) + 16883384 (unchecked.h:139) 2   wackyapp                       0x0000000101922150 il2cpp::vm::PlatformInvoke::MarshalStringBuilder(Il2CppStringBuilder*) + 16982352 (string:1460) 3   wackyapp                       0x0000000100d84298 VuforiaNativeIosWrapper_dataSetGetTrackableName_m883447106 + 4801176 (Bulk_Vuforia.UnityExtensions.iOS_0.cpp:1954) 4   wackyapp                       0x0000000100d90808 DataSetImpl_CreateImageTargets_m1029277413 + 4851720 (Bulk_Vuforia.UnityExtensions_0.cpp:0) 5   wackyapp                       0x0000000100d90068 DataSetImpl_Load_m2480845763 + 4849768 (Bulk_Vuforia.UnityExtensions_0.cpp:11627) 6   wackyapp                       0x0000000100d8fe48 DataSetImpl_Load_m2213875884 + 4849224 (Bulk_Vuforia.UnityExtensions_0.cpp:11522) 7   wackyapp                       0x0000000100d8f3a8 DatabaseLoadARController_LoadDatasets_m3092836309 + 4846504 (Bulk_Vuforia.UnityExtensions_0.cpp:11059) 8   wackyapp                       0x0000000100dcda9c VuforiaARController_Start_m534875641 + 5102236 (Bulk_Vuforia.UnityExtensions_1.cpp:19878) 9   wackyapp                       0x0000000100ff2650 RuntimeInvoker_Void_t1841601450(MethodInfo const*, void*, void**) + 7349840 (Il2CppInvokerTable.cpp:2057) 10  wackyapp                       0x000000010192e10c il2cpp::vm::Runtime::InvokeConvertArgs(MethodInfo const*, void*, Il2CppObject**, int, Il2CppException**) + 17031436 (Runtime.cpp:606) 11  wackyapp                       0x00000001018f578c il2cpp::icalls::mscorlib::System::Reflection::MonoMethod::InternalInvoke(Il2CppReflectionMethod*, Il2CppObject*, Il2CppArray*, Il2CppObject**) + 16799628 (MonoMethod.cpp:241) 12  wackyapp                       0x0000000100e91a28 MonoMethod_Invoke_m3376991795 + 5904936 (Bulk_mscorlib_3.cpp:34090) 13  wackyapp                       0x0000000100d9588c DelegateHelper_InvokeDelegate_m790092300 + 4872332 (Bulk_Vuforia.UnityExtensions_0.cpp:14499) 14  wackyapp                       0x0000000100ff2650 RuntimeInvoker_Void_t1841601450(MethodInfo const*, void*, void**) + 7349840 (Il2CppInvokerTable.cpp:2057) 15  wackyapp                       0x000000010192daf4 il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) + 17029876 (Runtime.cpp:505) 16  wackyapp                       0x0000000101378ec8 scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool) + 11046600 (ScriptingApi_Il2Cpp.cpp:216) 17  wackyapp                       0x0000000101371a14 ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool) + 11016724 (ScriptingInvocation.cpp:303) 18  wackyapp                       0x00000001014549c8 MonoBehaviour::InvokeMethodOrCoroutineChecked(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingExceptionPtr*) + 11946440 (MonoBehaviour.cpp:862) 19  wackyapp                       0x0000000101454bdc MonoBehaviour::InvokeMethodOrCoroutineChecked(ScriptingMethodPtr, ScriptingObjectPtr) + 11946972 (MonoBehaviour.cpp:881) 20  wackyapp                       0x0000000101453974 MonoBehaviour::DelayedStartCall(Object*, void*) + 11942260 (MonoBehaviour.cpp:1237) 21  wackyapp                       0x0000000101179300 DelayedCallManager::Update(int) + 8950528 (CallDelayed.cpp:177) 22  wackyapp                       0x000000010127d5fc PlayerLoop() + 10016252 (PlayerLoop.cpp:122) 23  wackyapp                       0x00000001014bc860 UnityPlayerLoopImpl(bool) + 12372064 (LibEntryPoint.mm:223) 24  wackyapp                       0x00000001008fbe7c UnityRepaint + 48764 (UnityAppController+Rendering.mm:271) 25  wackyapp                       0x00000001008fbd68 -[UnityAppController(Rendering) repaintDisplayLink] + 48488 (UnityAppController+Rendering.mm:78) 26  QuartzCore                     0x00000001864a6fd4 CA::Display::DisplayLink::dispatch_items+ 49108 (unsigned long long, unsigned long long, unsigned long long) + 672 27  IOKit                          0x000000018284630c IODispatchCalloutFromCFMessage + 392 28  CoreFoundation                 0x000000018256a080 __CFMachPortPerform + 188 29  CoreFoundation                 0x00000001825849dc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 56 30  CoreFoundation                 0x00000001825840e0 __CFRunLoopDoSource1 + 440 31  CoreFoundation                 0x0000000182581bb4 __CFRunLoopRun + 2196 32  CoreFoundation                 0x00000001824a22d8 CFRunLoopRunSpecific + 436 33  GraphicsServices               0x0000000184333f84 GSEventRunModal + 100 34  UIKit                          0x000000018ba4f880 UIApplicationMain + 208 35  wackyapp                       0x00000001008f5cc0 main + 23744 (main.mm:33) 36  libdyld.dylib                  0x0000000181fc656c start + 4

Hello curiousmedia,

When does the crash occur and what features are you using? It's going to be difficult to debug this without a repro case of some sort.

Thanks,

I also encountered this problem when loading dataset dynamically which contains 90+ markers.

Here was the output before it crashes