vuforia-engine icon indicating copy to clipboard operation
vuforia-engine copied to clipboard

Vuforia Camera Black Screen Issue on Samsung F13 and A55 (Android 14)

Open IrfanKMT opened this issue 1 year ago • 25 comments

Hello everyone,

We are experiencing a black screen issue when starting the Vuforia camera on specific Android devices. Our game, developed using Unity and Vuforia, works fine on most devices but encounters problems on the following:

Samsung Galaxy F13 (Android 14) Samsung Galaxy A55 (Android 14) Details:

Unity Version: 2022.3.24f1 (also tested with 2021.3.9f1) Vuforia SDK: 10.25.4 Game Link: https://play.google.com/store/apps/details?id=com.root16.mapologyworld&hl=en_IN

Issue:

On the mentioned devices, the game launches without any errors, but when the Vuforia camera starts, the screen goes black. We've tested the game on several other devices, and it works as expected, so the problem seems specific to these Samsung models running Android 14.

What We’ve Tried:

Tested with different Unity versions (2022.3.24f1 and 2021.3.9f1). Verified permissions for camera access. Ensured that the latest updates for both Unity and Vuforia are in use. Request:

Has anyone encountered a similar issue, or does anyone have suggestions for potential solutions? Any guidance or troubleshooting tips would be greatly appreciated!

Thank you!

IrfanKMT avatar Aug 28 '24 10:08 IrfanKMT

Hello,

Thanks for reaching out.

Could you try and reproduce the black screens on the devices with the Vuforia Core Samples?

Thank you

ptc-thesbyro avatar Aug 28 '24 11:08 ptc-thesbyro

Hello,

Thanks for reaching out.

Could you try and reproduce the black screens on the devices with the Vuforia Core Samples?

Thank you

Hello, Thanks for quick response. Yes we have tried with vuforia core sample. same issue. We have tried to test in other samsung device like, Samsung S21FE (14), Samsung F23(14) working fine. but appear black screen in Samsung F13(14) and Samsung A55(14).

Thank you

IrfanKMT avatar Aug 28 '24 12:08 IrfanKMT

Hi @IrfanKMT,

While we work on trying to reproduce this issue, have you maybe tried removing Vulkan from the Graphics APIs list in the Android Player Settings and using only OpenGLES3 instead? There have been reports in the past of rendering issues in Unity with the Vulkan APIs on Exynos/Mali-based devices like the ones you are having trouble with.

ptc-epassaro avatar Aug 28 '24 12:08 ptc-epassaro

Hi @IrfanKMT,

While we work on trying to reproduce this issue, have you maybe tried removing Vulkan from the Graphics APIs list in the Android Player Settings and using only OpenGLES3 instead? There have been reports in the past of rendering issues in Unity with the Vulkan APIs on Exynos/Mali-based devices like the ones you are having trouble with.

Hi @ptc-epassaro Yes i have tried without Vulkan (using only OpenGLES3) and with Vulkan as well. Same issue occur.

IrfanKMT avatar Aug 28 '24 13:08 IrfanKMT

Ok, then it would be great to have some more details. Could you please send us a log from the affected devices? Here we have some documentation on how to better capture Unity and Vuforia logs on Android: https://developer.vuforia.com/library/troubleshooting/troubleshooting-your-app#collect-logs

Also, which version of ARCore is installed on the devices?

ptc-epassaro avatar Aug 28 '24 13:08 ptc-epassaro

@ptc-epassaro IMG-20240828-WA0009 We didn't get any error in log We use marker base AR. so i think no need ARCore.

IrfanKMT avatar Aug 29 '24 08:08 IrfanKMT

@IrfanKMT one thing I see from the log is that you have more than one VuforiaBehaviour in the scene, which shouldn't have any effect at runtime, but I would suggest you to remove all the VuforiaBehaviours from your scene except one.

By default, Vuforia will try to use ARCore if it's installed on your device. You might have an app called "Google Play Services for AR" installed on your phone. If you do, please send us the version of the app.

For the logs, please try to use the adb logcat command line tool and follow the steps here to capture a complete log. With that, we might be able to get a better idea of the cause of this issue.

ptc-epassaro avatar Aug 29 '24 08:08 ptc-epassaro

@ptc-epassaro Thanks for your suggestion. i will remove VuforiaBehaviours from my scene except one. I don't device handy right now. so not able to get log using logcat. I have tested on multiple devices(Samsung S20(13), S21FE(14), F23(14), A35(14) etc) working fine in this device but black screen appears in Samsung F13(14) and A55(14). Thank you.

IrfanKMT avatar Aug 29 '24 09:08 IrfanKMT

@IrfanKMT I see, okay, we will try our best on our side and will keep you posted!

ptc-epassaro avatar Aug 29 '24 09:08 ptc-epassaro

@IrfanKMT I see, okay, we will try our best on our side and will keep you posted!

Thank you.

IrfanKMT avatar Aug 29 '24 09:08 IrfanKMT

Hi @IrfanKMT, from our tests it seems like Exynos-based devices like yours should work without issues when updated to the latest version of ARCore. When you have the chance, it would be great if you could update those devices to the latest version of the Google Play Services for AR. If you give it a try, please let us know how it goes. We will keep trying to reproduce the issue on our side in the meantime.

ptc-epassaro avatar Aug 29 '24 14:08 ptc-epassaro

@ptc-epassaro Okay sure i will update and let you know.

IrfanKMT avatar Aug 29 '24 14:08 IrfanKMT

We have a similar problem with our application. It works on every snapdragon device we have tested. Devices that we have a problem with are A33, A54 (probably other Exynos based devices) and Samsung Galaxy Tab A8 10.5 with Unisoc Tiger T618 chipset. Something that is in common to those not working devices:

  • Camera 2 API is not enabled (checked on A33 and Tab A8)
  • Mali GPU

On first start application asks for camera permission and we allow it but when we start AR scene the camera is not activating (no green dot in top right part of screen) and everything is black. As we were testing on Galaxy Tab A8 we found out it works if we put "optional" or "required" in ARCore Requirement inside Vuforia Configuration image Problems arise on other devices if we use those optional/required options. Problems like inverted colors in camera stream (AR detection worked) and green screen. Those problems were happening on some Xiaomi devices

Unity Version: 2022.3.23f1 Vuforia SDK: 10.24.4 (also tested on newer vuforia version)

KybokyN avatar Aug 30 '24 07:08 KybokyN

Hi @IrfanKMT, from our tests it seems like Exynos-based devices like yours should work without issues when updated to the latest version of ARCore. When you have the chance, it would be great if you could update those devices to the latest version of the Google Play Services for AR. If you give it a try, please let us know how it goes. We will keep trying to reproduce the issue on our side in the meantime.

@ptc-epassaro I have update Google Play Services for AR in A55 and working fine(Issue resolved). And F13 is not compatible. Thank you.

IrfanKMT avatar Aug 30 '24 08:08 IrfanKMT

@KybokyN by setting ARCore Requirement to DONT_USE Vuforia will use the Camera2 API, instead of ARCore camera API. We would be interested to know more about the inverted color problem on Xiaomi devices. Since this is likely unrelated to the black screen problem could you please create a separate issue including details about the specific device?

ptc-emaggio avatar Aug 30 '24 08:08 ptc-emaggio

@IrfanKMT glad to know that it works on the A55 now! We will keep investigating the issue on the F13 and in apps that don't use ARCore and will update this thread with our findings.

Thank you all for all the info!

ptc-epassaro avatar Aug 30 '24 08:08 ptc-epassaro

@IrfanKMT glad to know that it works on the A55 now! We will keep investigating the issue on the F13 and in apps that don't use ARCore and will update this thread with our findings.

Thank you all for all the info!

@ptc-epassaro Did you get any solution for Samsung F13. If you found something it will help to us. Thank you for your support.

IrfanKMT avatar Sep 03 '24 07:09 IrfanKMT

Hi @IrfanKMT, the only update is that we found a way to reproduce this issue on Exynos/Mali-based devices. We're still working on a solution though. We will keep you posted as soon as we have something new.

Thank you for the patience!

ptc-epassaro avatar Sep 03 '24 10:09 ptc-epassaro

Hi @IrfanKMT, the only update is that we found a way to reproduce this issue on Exynos/Mali-based devices. We're still working on a solution though. We will keep you posted as soon as we have something new.

Thank you for the patience!

@ptc-epassaro Thank you for the update!

IrfanKMT avatar Sep 03 '24 10:09 IrfanKMT

I am experiencing the same problem on Samsung A15 and Samsung A35. The app works well on older Android versions, such as on the Samsung A20.

I have tried all Unity versions shown in the attached screenshot, along with Vuforia SDK 10.25.4, but without success.

Screenshot 2024-10-08 173934

What I've Tried:

  • Ensured that all necessary camera permissions are granted.
  • Tried different graphics APIs (OpenGL ES 3.0, Vulkan).
  • Built the project with both ARMv7 and ARM64 architectures (also tested with ARMv7 disabled).
  • Set Vuforia to use the VUFORIA_FUSION_ONLY provider.

islammohy avatar Oct 08 '24 14:10 islammohy

@islammohy, both A15 and A35 should support ARCore. Could you please confirm that Google Play Services fro AR is installed on the devices and up to date to the most recent version (currently 1.45)? Do you still get a black screen if you use PREFER_PLATFORM_FUSION_PROVIDER ?

ptc-emaggio avatar Oct 09 '24 11:10 ptc-emaggio

A15 with no ARCore A35 with ARCore last update Note that I was using ARCore (Disable ARCore including) and trying on a new project every time

islammohy avatar Oct 09 '24 11:10 islammohy

Hi @islammohy, is ARCore set to OPTIONAL or REQUIRED in the VuforiaConfiguration?

ptc-epassaro avatar Oct 09 '24 11:10 ptc-epassaro

Track Device Pose is disabled ARCore requirement is DON'T USE

islammohy avatar Oct 09 '24 12:10 islammohy

Thanks @islammohy this is likely the same issue observed with the A55. Currently we do not have a fix but the known workaround is to set ARCore to OPTIONAL or REQUIRED even if do not intend to use the Device Tracker.

ptc-emaggio avatar Oct 09 '24 12:10 ptc-emaggio

Hi all. Came here to add more details on this topic.

Lately, after updating the application, I got reports from users with similar issues. The phones affected are mostly A series, like Galaxy A**, RedMi A**, but not limited. So for example I got my old Huawei Honor 9 (Android 9, Hisillicon Kirin 960), and Ulefone Armor 9 (android 10), and both have the same issue (no ARCore for both phones)

In my main application, I use various plugins, including ARfoundation, ARCore...
But I have started a new project only with Vuforia to try understand the reason (with the latest version of Vuforia).

Unity 2022.3.5f1, URP - without any changes, a simple scene with one Vudoia's AR Camera, result - not working(black screen). I have tried any possible ways

  1. Assigning shader again at runtime,
  2. Adding shader to always be included, and preloaded.
  3. Mono, IL2CPP, .net framework and 2.1, Armv7+64.
  4. Setting new Vuforia video background shader.
  5. Excluding ARcore from Vuforia Lib (Don't use, Optional)
  6. all the combinations of Focus and Device modes.
  7. Initing Vuforia delayed (with different Fusion mode)

Having a big userbase, I would like to see a solution to this issue asap )))

Archi97 avatar Dec 21 '24 10:12 Archi97

Hi @Archi97 thanks for the report. We recently found out that the black screen problem is associated to Android devices not supporting full Camera2 API. A fix will be available with Vuforia Engine 10.29 release.

ptc-emaggio avatar Dec 22 '24 08:12 ptc-emaggio

Hi @Archi97 thanks for the report. We recently found out that the black screen problem is associated to Android devices not supporting full Camera2 API. A fix will be available with Vuforia Engine 10.29 release.

Is there any possible release date for 10.29? Users leaving negative feedback )

Archi97 avatar Dec 30 '24 14:12 Archi97

Hi @Archi97 thanks for the report. We recently found out that the black screen problem is associated to Android devices not supporting full Camera2 API. A fix will be available with Vuforia Engine 10.29 release.

Is there any possible release date for 10.29? Users leaving negative feedback )

Testing is in progress. Release should happen in January timeframe.

ptc-emaggio avatar Jan 05 '25 10:01 ptc-emaggio

Hi,

The release of Vuforia Engine 10.29.6 includes a fix for the black screen on Android devices described and discussed in this issue. Please update to the latest SDK and see if the issue has been fixed on your side.

Reopen this issue, if you still see a black screen.

ptc-thesbyro avatar Jan 20 '25 15:01 ptc-thesbyro