Log in or register to post comments

iPad app crashes when running from XCode, runs fine on device

September 14, 2012 - 1:14pm #1

The app I have created using the Unity extension will crash, throwing an exception, when I press a button that calls startUnity in AppController.mm, but only when running from Xcode. If the app is started on the device (iPad2), it runs fine, or as well as I expect it to at its current stage of development. It would be nice to have running in Xcode so I can check for memory leaks and observe the console output. Below is the console output at the time of the crash:

 

(Filename: /Applications/buildAgent/work/d9c061b1c154f5ae/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 43)

StartQCAR

 (Filename: /Applications/buildAgent/work/d9c061b1c154f5ae/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 43)

 

2012-09-14 15:01:38.857 ScheelsAR[694:707] DEBUG/AR(694) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR

2012-09-14 15:01:38.859 ScheelsAR[694:707] DEBUG/AR(694) UIView has CAEAGLLayer class

2012-09-14 15:01:38.861 ScheelsAR[694:707] DEBUG/AR(694) UIView does not respond to selector renderFrameQCAR

2012-09-14 15:01:38.862 ScheelsAR[694:707] DEBUG/AR(694) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR

2012-09-14 15:01:38.871 ScheelsAR[694:707] DEBUG/AR(694) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR

2012-09-14 15:01:38.872 ScheelsAR[694:707] DEBUG/AR(694) UIView has CAEAGLLayer class

2012-09-14 15:01:38.874 ScheelsAR[694:707] DEBUG/AR(694) UIView does not respond to selector renderFrameQCAR

2012-09-14 15:01:38.876 ScheelsAR[694:707] DEBUG/AR(694) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR

2012-09-14 15:01:38.879 ScheelsAR[694:707] DEBUG/AR(694) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR

2012-09-14 15:01:38.880 ScheelsAR[694:707] DEBUG/AR(694) UIView has CAEAGLLayer class

2012-09-14 15:01:38.883 ScheelsAR[694:707] DEBUG/AR(694) UIView does not respond to selector renderFrameQCAR

2012-09-14 15:01:38.885 ScheelsAR[694:707] DEBUG/AR(694) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR

(lldb)  

 

It crashes at this point every time. No luck so far finding the cause. This app has additional viewControllers, including one that has a "start" button that calls startUnity. I realize this is not the suggested approach to creating an app with Vuforia but it's necessary. Has anyone had this problem as well, or have any suggestions. Thanks very much!

 

iPad app crashes when running from XCode, runs fine on device

September 17, 2012 - 1:29am #2

Ok so basically you are taking the Xcode project generated by Unity and adding additional ViewControllers right?

As you highlighted this is not the approach we recommend, though I can understand why you might want to go this way.

As we don't have any experience here of this route you might want to try the Unity forums, as this is probably a generic question that somebody there may have come across with.

However, looking at your log, it is probably something to do with the startup sequence, because the view that draws the camera background and augmentation (in native iOS) requires the renderFrameQCAR delegate/method on it.  Chances are that somewhere along the way (in XCode only) this may not be initialised.

The other thing you could try is running the native iOS samples just to get some experience of what goes on there as it might help you.

HTH

N

Log in or register to post comments