Log in or register to post comments

Vuforia black screen when compiling for Android ARM64 IL2CPP

February 1, 2019 - 7:25am #1

Hi,

I've noticed the camera AR from Vuforia show always a black screen when ARM64 is set in Build Settings into Unity. Evrything works fine when ARMv7 is checked.

There is clearly a bug with ARM64 IL2CPP compiling mode with Vuforia / Unity. I'm using Vuforia 8.0.10 with Unity 2018.3.3 on Windows 10. I have download the last samples from the asset store (which bring also black screen when ARM64 is checked).

I have made the test with 3 different phones, Sony XPERA XA2, Samsung A5 2017 and Huawei with Android 8.0. The problem is exactly the same on the 3 phones. A clue is there is not request authorization at the app launch for the camera use when ARM64 is checked but there is the request when ARMv7 is checked. It seems there is a problem whith request authorizations when ARM64 is selected.

In August 2019, we won't have the choice, ARM64 will be our only choice to publish Android app on the Google Play Store. ARMv7 and Mono apps will be rejected by Google. Can you please see what is the problem ?

 

By the way, I have made a test with the following trick:

https://docs.unity3d.com/Manual/android-RequestingPermissions.html

Replacing Microphone in the example with Camera, Android is correctly asking me my authorization to use the camera but the screen stays black once the AR scene is loaded. The only thing wich works is to change ARM64 to ARMv7.

Thanks,

 

Pierre

Vuforia black screen when compiling for Android ARM64 IL2CPP

August 23, 2019 - 12:10am #6

HI,

Yes, there is a conflict. This would be related to which process is controlling the device camera. When Vuforia is initialized, it will attach to the camera as a singleton. Technically, no other process can access or control the camera while Vuforia is running. The corollary is also true (from my understanding) that if another process is attached to the camera, Vuforia cannot access it and the video background from the camera feed will not be rendered. Normally, this results in a black screen being rendered when trying to run Vuforia.

Vuforia provides APIs to control the device camera: https://library.vuforia.com/content/vuforia-library/en/reference/unity/classVuforia_1_1CameraDevice.html

If you want to use the ARCore functionality of the device, you can adjust the settings in the vuforia configuration.

Below article provides insights on using ARCore with Vuforia Engine.

https://library.vuforia.com/content/vuforia-library/en/articles/Solution/arcore-with-vuforia.html

Thank you.

Vuforia Engine Support

Vuforia black screen when compiling for Android ARM64 IL2CPP

August 17, 2019 - 8:47pm #5

Am currently experiencing similar problem or upon ARM 64-bit compliancy measures, the Vuforia AR camera works enough to attached AR elements to image targets, but renders all camera video as black. Phone is LG G7 ThinQ (LM-G710VM). Prior to ARM 64-bit conversion, AR camera was fine. I've upgraded the Vuforia to 8.3.8 in Unity 2019.2.0f1 with ARCore XR Plugin 2.1.1. 

It is also suspicious that Google announces that ARCore is the format for the Google AR Play service. Seeming to shun Vuforia, ARFoundation, and all the other AR formats. I never really got a clear understanding, Why exactly are we not to choose BOTH ARCore and Vuforia together?  See attached error barking because I have both selected?!

There are tutorials that counter this warning.... maybe I'm missing something?

"Using ARCore with Vuforia Engine: Beginning with the 7.2 version, Vuforia Engine can leverage Google's ARCore on devices that support it. Vuforia Engine can take advantage of ARCore for Ground Plane and Device Tracking (including Extended Tracking) features."

Am I right in believing there may be a conflict over the camera?  I'm new to Unity, so I don't really know how to use the Profiler window to suss out the issue... but considering this was a known issue a few versions ago, I'm hoping I'm on the right track, and there's a fix or workaround?

AttachmentSize
Image icon ARCoreOrVuforia.PNG28.37 KB

Vuforia black screen when compiling for Android ARM64 IL2CPP

May 9, 2019 - 4:04pm #4

Hello,

Please note that support for Android arm64 has been added to the Vuforia Engine Unity Extension with v8.1.7.

https://library.vuforia.com/content/vuforia-library/en/articles/Release_Notes/Vuforia-SDK-Release-Notes.html

Thanks,

Vuforia Engine Support

Vuforia black screen when compiling for Android ARM64 IL2CPP

May 9, 2019 - 3:20pm #3

pgibouin wrote:

Hi,

I've noticed the camera AR from Vuforia show always a black screen when ARM64 is set in Build Settings into Unity. Evrything works fine when ARMv7 is checked.

There is clearly a bug with ARM64 IL2CPP compiling mode with Vuforia / Unity. I'm using Vuforia 8.0.10 with Unity 2018.3.3 on Windows 10. I have download the last samples from the asset store (which bring also black screen when ARM64 is checked).

I have made the test with 3 different phones, Sony XPERA XA2, Samsung A5 2017 and Huawei with Android 8.0. The problem is exactly the same on the 3 phones. A clue is there is not request authorization at the app launch for the camera use when ARM64 is checked but there is the request when ARMv7 is checked. It seems there is a problem whith request authorizations when ARM64 is selected.

In August 2019, we won't have the choice, ARM64 will be our only choice to publish Android app on the Google Play Store. ARMv7 and Mono apps will be rejected by Google. Can you please see what is the problem ?

 

By the way, I have made a test with the following trick:

https://docs.unity3d.com/Manual/android-RequestingPermissions.html

Replacing Microphone in the example with Camera, Android is correctly asking me my authorization to use the camera but the screen stays black once the AR scene is loaded. The only thing wich works is to change ARM64 to ARMv7.

Thanks,

 

Pierre

 

I have the same exact problem. I can export it in 32 bit and it works as an apk, but I can't publish it to Play Store because of the 32bit architecture restriction

Vuforia black screen when compiling for Android ARM64 IL2CPP

February 4, 2019 - 1:26pm #2

Hello,

Vuforia Engine 8.0 SDK does not support 64-bit Android builds in Unity at this time.

The team is aware of Google's upcoming deadline and is working hard to provide support in a near-term release.

Thanks,

Vuforia Engine Support

Log in or register to post comments