jondyne / ARcore_mobileVRHeadset

ARcore for use in VR headset
31 stars 12 forks source link

App Crash #2

Open AiyappaND opened 5 years ago

AiyappaND commented 5 years ago

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.

vl4dimir commented 5 years ago

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

AiyappaND commented 5 years ago

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?

AiyappaND commented 5 years ago

I tried that, that crashes too.

vl4dimir commented 5 years ago

@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.

AiyappaND commented 5 years ago

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

jondyne commented 5 years ago

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