Hello I'm having issues with the Vuforia AR on ios or android when closing the app and returning to it, sometimes the AR camera will not come back and only displays a black screen. UI still renders fine. Even after getting a black screen, closing and reopening the app 'might' bring the camera back.
Unity 4.5.5f1
Vuforia 3.0.9
xCode 6.1 ( 6A1052d)
The below is what I get from xCode on returning to a black screen.
Help fixing this is appreciated. Thank you.
targetFinderStop
targetFinderStop
-> applicationWillResignActive()
StopQCAR
(Filename: /Applications/buildAgent/work/
markerTrackerStop
imageTrackerStop
cameraDeviceStopCamera
cameraDeviceDeinitCamera
-> applicationDidEnterBackground(
-> applicationWillEnterForeground
-> applicationDidBecomeActive()
StartQCAR
(Filename: /Applications/buildAgent/work/
cameraDeviceInitCamera
2014-11-25 11:11:52.922 bubandu[16455:1956069] DEBUG/AR(16455) UIView has CAEAGLLayer class
2014-11-25 11:11:52.923 bubandu[16455:1956069] DEBUG/AR(16455) UIView does not respond to selector renderFrameQCAR
2014-11-25 11:11:52.923 bubandu[16455:1956069] DEBUG/AR(16455) UIView has CAEAGLLayer class
2014-11-25 11:11:52.924 bubandu[16455:1956069] DEBUG/AR(16455) UIView does not respond to selector renderFrameQCAR
2014-11-25 11:11:52.924 bubandu[16455:1956069] DEBUG/AR(16455) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
2014-11-25 11:11:52.925 bubandu[16455:1956069] DEBUG/AR(16455) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
cameraDeviceGetVideoMode
2014-11-25 11:11:52.939 bubandu[16455:1956069] DEBUG/AR(16455) UIView has CAEAGLLayer class
2014-11-25 11:11:52.959 bubandu[16455:1956069] DEBUG/AR(16455) UIView does not respond to selector renderFrameQCAR
2014-11-25 11:11:52.960 bubandu[16455:1956069] DEBUG/AR(16455) UIView has CAEAGLLayer class
2014-11-25 11:11:52.969 bubandu[16455:1956069] DEBUG/AR(16455) UIView does not respond to selector renderFrameQCAR
2014-11-25 11:11:52.971 bubandu[16455:1956069] DEBUG/AR(16455) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
2014-11-25 11:11:52.973 bubandu[16455:1956069] DEBUG/AR(16455) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
cameraDeviceSelectVideoMode
2014-11-25 11:11:52.977 bubandu[16455:1956069] DEBUG/AR(16455) UIView has CAEAGLLayer class
2014-11-25 11:11:52.978 bubandu[16455:1956069] DEBUG/AR(16455) UIView does not respond to selector renderFrameQCAR
2014-11-25 11:11:52.978 bubandu[16455:1956069] DEBUG/AR(16455) UIView has CAEAGLLayer class
2014-11-25 11:11:52.979 bubandu[16455:1956069] DEBUG/AR(16455) UIView does not respond to selector renderFrameQCAR
2014-11-25 11:11:52.979 bubandu[16455:1956069] DEBUG/AR(16455) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
2014-11-25 11:11:52.980 bubandu[16455:1956069] DEBUG/AR(16455) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
cameraDeviceStartCamera
markerTrackerStart
imageTrackerStart
cameraDeviceGetVideoMode
2014-11-25 11:11:53.022 bubandu[16455:1956069] DEBUG/AR(16455) UIView has CAEAGLLayer class
2014-11-25 11:11:53.023 bubandu[16455:1956069] DEBUG/AR(16455) UIView does not respond to selector renderFrameQCAR
2014-11-25 11:11:53.024 bubandu[16455:1956069] DEBUG/AR(16455) UIView has CAEAGLLayer class
2014-11-25 11:11:53.025 bubandu[16455:1956069] DEBUG/AR(16455) UIView does not respond to selector renderFrameQCAR
2014-11-25 11:11:53.026 bubandu[16455:1956069] DEBUG/AR(16455) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
2014-11-25 11:11:53.027 bubandu[16455:1956069] DEBUG/AR(16455) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
targetFinderStop
targetFinderStartRecognition
Unloading 0 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)
Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 3912.
Total: 17.329958 ms (FindLiveObjects: 2.934583 ms CreateObjectMapping: 0.390375 ms MarkObjects: 13.687583 ms DeleteObjects: 0.239541 ms)
cameraDeviceGetVideoMode
2014-11-25 11:12:03.234 bubandu[16455:1956069] DEBUG/AR(16455) UIView has CAEAGLLayer class
2014-11-25 11:12:03.235 bubandu[16455:1956069] DEBUG/AR(16455) UIView does not respond to selector renderFrameQCAR
2014-11-25 11:12:03.235 bubandu[16455:1956069] DEBUG/AR(16455) UIView has CAEAGLLayer class
2014-11-25 11:12:03.236 bubandu[16455:1956069] DEBUG/AR(16455) UIView does not respond to selector renderFrameQCAR
2014-11-25 11:12:03.236 bubandu[16455:1956069] DEBUG/AR(16455) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
2014-11-25 11:12:03.237 bubandu[16455:1956069] DEBUG/AR(16455) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
cameraDeviceGetVideoMode
2014-11-25 11:12:05.152 bubandu[16455:1956069] DEBUG/AR(16455) UIView has CAEAGLLayer class
2014-11-25 11:12:05.153 bubandu[16455:1956069] DEBUG/AR(16455) UIView does not respond to selector renderFrameQCAR
2014-11-25 11:12:05.153 bubandu[16455:1956069] DEBUG/AR(16455) UIView has CAEAGLLayer class
2014-11-25 11:12:05.154 bubandu[16455:1956069] DEBUG/AR(16455) UIView does not respond to selector renderFrameQCAR
2014-11-25 11:12:05.154 bubandu[16455:1956069] DEBUG/AR(16455) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
2014-11-25 11:12:05.155 bubandu[16455:1956069] DEBUG/AR(16455) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR
targetFinderStop
targetFinderStartRecognition
Unloading 0 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)
Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 3914.
Total: 16.556250 ms (FindLiveObjects: 1.805166 ms CreateObjectMapping: 0.404208 ms MarkObjects: 14.147208 ms DeleteObjects: 0.126208 ms)
The script provided in my previous post simply takes care of stopping the QCARBehaviour component (which is handling the camera and tracker initialization) when the App is paused, and re-enabling it explicitly when the app is resumed. The script can be attached to any object n your scene, although a good candidate might be the ARCamera object itself.