arfoundation-samples icon indicating copy to clipboard operation
arfoundation-samples copied to clipboard

[Bug] ObjDetQueue.thread crash when using Object Tracking with ARFoundation for iOS

Open AkhilRaja opened this issue 3 years ago • 5 comments
trafficstars

Unity bug report case number Case 1287297

Describe the bug Unity crashes when using ARFoundation Object Tracking for iOS and resetting the ARSession.

To Reproduce Steps to reproduce the behaviour:

  1. Create an ARFoundation Object Tracking app
  2. Reset the ARSession
  3. Load a different ARObject into the reference library
  4. The app crashes on the ObjDetQueue (Thread 379 Queue : ObjDetQueue (serial)) Screenshot 2022-06-29 at 5 11 29 PM

dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib:/usr/lib/libMTLCapture.dylib

Expected behavior You should be able to load different ARObjects into a reference library and the app should not crash

Actual behavior The app is crashing randomly

Smartphone (please complete the following information):

  • Device: iPhone 13
  • OS: iOS 15
  • Unity version - 2022.1.1f1
  • ARFoundation version - 4.3 (I tried the same on 5+ prerelease versions and it is reproducible there too)

AkhilRaja avatar Jun 29 '22 11:06 AkhilRaja

As noted in the issue tracker, the issue is in ARKit code and cannot be fixed by Unity. https://issuetracker.unity3d.com/issues/objdetqueue-dot-thread-crash-when-using-object-tracking-artrackedobjectmanager-and-ar-foundation

We communicated this to Apple at the time. You can look into their developer forums for directly reporting it to Apple. https://developer.apple.com/forums/tags/arkit

ankur-unity avatar Jun 30 '22 00:06 ankur-unity

Thanks @ankur-unity . Is there any eta on ARKit 6 with ar foundation? They claim to have improved object detection in it and I’m hoping that would fix this bug.

AkhilRaja avatar Jul 03 '22 19:07 AkhilRaja

Thanks @ankur-unity . Is there any eta on ARKit 6 with ar foundation? They claim to have improved object detection in it and I’m hoping that would fix this bug.

@AkhilRaja - Sorry for the delayed response. We are working on ARKit 6 feature integration but don't have an ETA yet.

For object detection, there are no API changes that I'm aware of. You can try building your project with the Xcode 14 beta to test the improvements in object detection in ARKit 6.

ankur-unity avatar Jul 27 '22 20:07 ankur-unity

@ankur-unity no problem, thanks for responding. I was hoping they would have fixed this problem with arkit6, I too dont think there is any API change. Thanks for pointing out that I could try it out with Xcode 14 beta. I will test it out and see if this bug is reproducible.

AkhilRaja avatar Jul 29 '22 10:07 AkhilRaja

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 21 '22 11:09 stale[bot]

Closing this due to lack of response. The original issue was a third party issue in ARKit Framework and cannot be fixed by Unity.

Feel free to re-open if you have additional questions.

ankur-unity avatar Nov 21 '22 20:11 ankur-unity