Hi,
I have used Vuforia SDK library (libExtensionVuforia.a) for image recognition.
I also added QCAR headers in my project.
But, when i lanuch the image recognition part, it is throwing exception of QCAR::init(). Sometimes app gets crashed.
I found following exception log:
2013-04-16 12:04:15.289 SamlpleAR[2500:707] INFO/AR(2500) 2013-04-16 12:04:15: QCAR SDK version 2.0.29
configureVideoBackground PORTRAIT with aspect: nan
Configure Video Background : Video (0,0), Screen (640,832), mSize (832,0)
2013-04-16 12:04:15.476 SamlpleAR[2500:707] ERROR/AR(2500) 2013-04-16 12:04:15: VideoBackgroundConfig with screen size of zero received, skipping config step
2013-04-16 12:04:15.525 SamlpleAR[2500:707] DEBUG/AR(2500) UIView has CAEAGLLayer class
2013-04-16 12:04:15.527 SamlpleAR[2500:707] DEBUG/AR(2500) UIView responds to selector renderFrameQCAR
QCAR::CameraDevice::getInstance().init()
configureVideoBackground PORTRAIT with aspect: 1.333333
Configure Video Background : Video (480,360), Screen (640,832), mSize (832,1109)
(lldb) bt
* thread #1: tid = 0x1c03, 0x3774e238 libobjc.A.dylib`objc_exception_throw, stop reason = breakpoint 1.1
frame #0: 0x3774e238 libobjc.A.dylib`objc_exception_throw
frame #1: 0x352365b8 AVFoundation`-[AVCaptureVideoDataOutput setVideoSettings:] + 396
frame #2: 0x001f1706 SamlpleAR`QCAR::init() + 547410
(lldb)
Please suggest how to resolve this.
Thanks in advance.
Kind regards,
Kishan Lal
App crash because of QCAR::init()
Hi kishanlal7
It's hard to tell anything from this log, and it is unlikely that your app is crashing because of QCAR.
Firstly it's worth using the latest SDK.
Second, are you able to get all the samples running perfectly without issue?
N