react-native-unity-view icon indicating copy to clipboard operation
react-native-unity-view copied to clipboard

Thread 1: EXC_BAD_ACCESS (code=1, address=0xa4)

Open jvetulani opened this issue 5 years ago • 5 comments

Hi!

Having this issue while running on an iphone, when I press the Toggle Unity button from the example xcode throws this error.

Nothing in this thread helps: https://github.com/f111fei/react-native-unity-view/issues/84

I've added all the privacy permissions I can think of to info.plist, filled out their respective strings with the reason for the usage, also added the UnityCloudProjectID, nothing.

Tried on Unity 2018.2.17f1 and the current 2018 LTS version - 4.6f1, tried cleaning the project. Running it on an iPhoneX, building with an updated xCode10.1

jvetulani avatar Sep 02 '19 10:09 jvetulani

Currently experiencing the exact same problem with iOS 12 and Unity 2019.1.14f1 / Vuforia 8.3.8. Error starts when the UnityPostMessage(gameObject, methodName, message); method has been called

edblokcer avatar Sep 09 '19 12:09 edblokcer

Same issue with Unity 2018.1.6f1, XCode 10.2.1, IOS 12.2

blurxs avatar Sep 10 '19 07:09 blurxs

Currently experiencing the exact same problem with iOS 12 and Unity 2019.1.14f1 / Vuforia 8.3.8. Error starts when the UnityPostMessage(gameObject, methodName, message); method has been called

Are you sure that you sending three parameters? I've experienced the same when sending two parameters and then added third blank:

UnityModule.postMessage('ARWorldContentProvider', 'CreatePost', '')

Hope this helps.

alisherakb avatar Sep 10 '19 11:09 alisherakb

Currently experiencing the exact same problem with iOS 12 and Unity 2019.1.14f1 / Vuforia 8.3.8. Error starts when the UnityPostMessage(gameObject, methodName, message); method has been called

Are you sure that you sending three parameters? I've experienced the same when sending two parameters and then added third blank:

UnityModule.postMessage('ARWorldContentProvider', 'CreatePost', '')

Hope this helps.

Thanks for your reply. From the Javascript code it's being triggered by UnityModule.postMessage('ARCamera', 'InitVuforia'), which has been working till I updated React Native and Unity. What would you suggest adding as a third parameter?

An addition to this is that it's working without UnityModule.postMessage('ARCamera', 'InitVuforia') and delayed initialization of Vuforia as setting from Unity.

edblokcer avatar Sep 10 '19 11:09 edblokcer

Misread it a little and added an empty string as the third parameter which indeed solved the problem. Thanks @alisherakb!

edblokcer avatar Sep 10 '19 11:09 edblokcer