Log in or register to post comments

Unity v4.5.4 and XCode6 EXC BAD ACCESS

September 26, 2014 - 3:53am #1

periviusly I was using unity v4.5.2 and vuforia 3, i had no problem in order creating dataset at run time and load it at run time. and recently due to ios 8 i had to update unity and xcode, here is the problem start:

after build on iOS 8, at run time when need to create dataset at runtime the EXC_BAD_ACCESS will happen, exectly at this line DataSet dataSet = imageTracker.CreateDataSet();

 

here is the error (Filename: /Applications/buildAgent/work/d63dfc6385190b60/artifacts/iPhonePlayer-armv7Generated/UnityEngineDebug.cpp Line: 49)

 

is there any solution. thanks

Unity v4.5.4 and XCode6 EXC BAD ACCESS

September 29, 2014 - 2:52am #4

Have you checked the iOS8 and Xcode 6 migration guidelines here:

https://developer.vuforia.com/forum/ios/ios-8-xcode-6-and-vuforia-30-compatibility

in particular, check the camera access section, as iOS 8 introduces a new policy to handle camera access in an App.

 

Unity v4.5.4 and XCode6 EXC BAD ACCESS

September 28, 2014 - 10:31am #3

hi ,

thanks for reply, I have read that post periviously and I am currently using unity 4.5.4, I have no problem on EXC_BAD_ACCESS on rotation so, that post dosent help me, since I get the error during create dasets. and thats make the problem somewhere which I dont know. 

 

must mention that, I get these errors as well before bad exec, and  after updating to new version of unity and xcode. however before, there were not such error.

Could not initialize the tracker.

 

(Filename: /Applications/buildAgent/work/d63dfc6385190b60/artifacts/iPhonePlayer-armv7Generated/UnityEngineDebug.cpp Line: 49)

 

Could not initialize the tracker.

 

(Filename: /Applications/buildAgent/work/d63dfc6385190b60/artifacts/iPhonePlayer-armv7Generated/UnityEngineDebug.cpp Line: 49)

 

SetHint

 

(Filename: /Applications/buildAgent/work/d63dfc6385190b60/artifacts/iPhonePlayer-armv7Generated/UnityEngineDebug.cpp Line: 49)

 

2014-09-29 00:57:02.164 relatable[725:257806] ERROR/AR(0) 2014-09-29 00:57:02: Failed to set hint 'HINT_MAX_SIMULTANEOUS_IMAGE_TARGETS' because the ImageTracker has not been initialized.

StartQCAR

 

(Filename: /Applications/buildAgent/work/d63dfc6385190b60/artifacts/iPhonePlayer-armv7Generated/UnityEngineDebug.cpp Line: 49)

 

2014-09-29 00:57:02.200 relatable[725:257806] ERROR/AR(0) 2014-09-29 00:57:02: CameraDevice::getCameraCalibration(): Failed to get camera calibration because the camera is not initialized. 

Unity v4.5.4 and XCode6 EXC BAD ACCESS

September 26, 2014 - 4:17am #2

Hi,

first you need to upgrade to Unity 4.5.3 or 4.5.4 if you are using Xcode 6 and iOS8 SDK (according to the Unity release notes, Unity supports Xcode 6 since 4.5.3)

Then, once you have upgraded to Unity 4.5.3 / 4.5.4, read this migration article:

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/unity-454-and-vuforia-ios

That should solve.

Log in or register to post comments