jondyne/ARcore_mobileVRHeadset

App Crash

AiyappaND opened this issue · 6 comments

The app crashes immediately after launch and the display of the Unity splash screen. I tried it with multiple VR plugins like Daydream, Cardboard and Oculus and it's the same result every time. Is there something extra I'm supposed to do in the build settings? Currently, I'm just switching the platform to Android and running the Main scene as it is.

Please help.

@AiyappaND There should be no additional steps. What device and OS version are you running the project on?

I'm running it on an Samsung S9 with Android 8.0.0. I just tried installing the APK provided by you, and that runs fine. Do I need to disable the VR support in Unity and just run it as it is?

I tried that, that crashes too.

@AiyappaND Hmm, that's weird. Since the .apk runs fine, it's probably something locally that needs to be set up. Can you run it with "Development Build" enabled in Build Settings, and look at the logs on the device with adb logcat -s Unity? So we can see what's happening and add any additional instructions to the README.

I've attached the log. I looked through it and it seemed to be a problem with some missing ARCore components. I imported the ARCore plugin for Unity, and this fixed the crash. However, the ARCore session is not starting and the camera is all black. Could this be a problem with the .NET Scripting Runtime being 4.0?
CrashLog.txt

@AiyappaND - did you allow App permissions for the app? Perhaps the app's access to the camera is blocked?