"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

IOS App Crashes on Startup

Firstly - my app used to work! Then after adding a bunch of other code I went back to test it on the device and now it crashes on startup. I'm using the Unity extension. It crashes on the phone as soon as it starts up, before my app gets going properly. It looks like it is in QCAR:setInitParameters as I get this stack trace: Thread 9 (thread 9475): #0 0x34be3004 in mach_msg_trap () #1 0x34be3200 in mach_msg () #2 0x34dd33f2 in __CFRunLoopServiceMachPort () #3 0x34dd212a in __CFRunLoopRun () #4 0x34d554a4 in CFRunLoopRunSpecific () #5 0x34d5536c in CFRunLoopRunInMode () #6 0x30c15b74 in -[NSRunLoop(NSRunLoop) runMode:beforeDate:] () #7 0x02223d2c in QCAR::setInitParameters () #8 0x30c21a80 in -[NSThread main] () #9 0x30cb5590 in __NSThread__main__ () #10 0x36ab0734 in _pthread_start () #11 0x36ab05f0 in thread_start () I've removed the Vuforia code and the app works fine. I've downloaded the latest code and installed that, but I get the same problem.

DavidBeard

Wed, 05/09/2012 - 02:36

So to confirm, your app was running properly using the Vuforia extension, but the new code you've added results in a crash that seems to derive from QCAR::setInitParameters () ? - is that correct? How does the new code interact w/ Vuforia? - how does this differ from your earlier version?

whydoidoit

Wed, 05/09/2012 - 02:59

Yes it worked fine before. I've was happily target tracking for a few days. I doubt that the new code I wrote has anything to do with it and the initial scene I load does not have an AR in it.

whydoidoit

Wed, 05/09/2012 - 03:18

Actually it is crashing somewhere else not in that QCAR:setInitParameters call - this lldb view shows Thread14 crashing with a null reference exception - as you can see the QCAR:setInitParameters in in a different thread. Still this only happens if I have the plug in installed. [IMG]http://www.mik

whydoidoit

Wed, 05/09/2012 - 03:20

This is the log from that run: 2012-05-09 04:10:46.731 loyaltygame[7388:707] -> registered mono modules 0x277affc -> applicationDidFinishLaunching() QCAR Extension version 1.5.10 2012-05-09 04:10:46.879 loyaltygame[7388:707] INFO/AR(7388) 2012-05-09 04:10:46: QCAR SDK version 1.5.8 Mono path[0] =

DavidBeard

Wed, 05/09/2012 - 04:42

Good. I'm glad to see that you've resolved the error. Yes it's a good idea to work w/ a clean installation on the device when you run into problems. Certain resources are persisted among installations if these share common app identifiers.

whydoidoit

Wed, 05/09/2012 - 17:55

Ah so the plot thickens. Turns out it wasn't my deleting the profile, it was me turning off Script Debugging in the Unity build setting - I must have done that at the same time.

whydoidoit

Wed, 05/09/2012 - 18:37

By the way, I also tried removing some other libraries to ensure that it wasn't just a memory thing - while I can't guarantee that the combination of those libraries compiles to the size of the QCAR stuff - it made no difference.

DavidBeard

Thu, 05/10/2012 - 01:53

Interesting. I'll have to test that. So when you're running Script Debugging in Unity are you also building a Development Build?