Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
3.02k stars 1.12k forks source link

ARFoundation integrated in ios native app as library crashes with EXC_BAD_ACCESS error #337

Closed pnok closed 4 years ago

pnok commented 4 years ago

I built an AR iOS project using ARFoundation 1.5.0, ARKit XR plugin 2.2.0, with Unity 2018.4.8f1 version and XCode 11.

As standalone iOS app it works.

Then I tried to integrate the Unity XCode project as library in an exisisting ios native project. The build process succeeded, but as soon as I ran the app on an iphone 7 plus device it crashed with EXC_BAD_ACCESS.

The error has been raised by the unity_init func in AppDelegate class. In details the crash happens at UnityInitRuntime inside the unity_init function.

Any suggestions?

Thanks

simonevilla commented 4 years ago

Hi all,

same issue for me; any solutions?

nilsk123 commented 4 years ago

Same

mdurand42 commented 4 years ago

Do you think it might be a duplicate of this resolved issue? https://github.com/Unity-Technologies/arfoundation-samples/issues/95

ROBYER1 commented 1 year ago

Since nobody else bothered to do it, I have reported this issue being caused by MultiThreaded Rendering at Unity Bug: IN-35599 - [AR Foundation] MultiThreaded Rendering crash AR Foundation when enable/disable AR Session on iOS+Android

Forum post: https://forum.unity.com/threads/multithreaded-rendering-crash-ar-foundation-when-enable-disable-ar-session.1413507/