Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
IrfanKMT opened this issue Aug 28, 2024 · 29 comments
Open
Labels
bug-report Bugs and issues device-feedback Device feedback

Comments

@IrfanKMT
Copy link

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 IrfanKMT added the device-feedback Device feedback label Aug 28, 2024
@ptc-thesbyro
Copy link
Collaborator

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 ptc-thesbyro added the bug-report Bugs and issues label Aug 28, 2024
@IrfanKMT
Copy link
Author

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

@ptc-epassaro
Copy link
Collaborator

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.

@IrfanKMT
Copy link
Author

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.

@ptc-epassaro
Copy link
Collaborator

ptc-epassaro commented Aug 28, 2024

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?

@IrfanKMT
Copy link
Author

IrfanKMT commented Aug 29, 2024

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

@ptc-epassaro
Copy link
Collaborator

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

@IrfanKMT
Copy link
Author

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

@ptc-epassaro
Copy link
Collaborator

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

@IrfanKMT
Copy link
Author

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

Thank you.

@ptc-epassaro
Copy link
Collaborator

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.

@IrfanKMT
Copy link
Author

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

@KybokyN
Copy link

KybokyN commented Aug 30, 2024

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)

@IrfanKMT
Copy link
Author

IrfanKMT commented Aug 30, 2024

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.

@ptc-emaggio
Copy link
Collaborator

ptc-emaggio commented Aug 30, 2024

@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-epassaro
Copy link
Collaborator

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

@IrfanKMT
Copy link
Author

IrfanKMT commented Sep 3, 2024

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

@ptc-epassaro
Copy link
Collaborator

ptc-epassaro commented Sep 3, 2024

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!

@IrfanKMT
Copy link
Author

IrfanKMT commented Sep 3, 2024

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!

@islammohy
Copy link

islammohy commented Oct 8, 2024

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.

@ptc-emaggio
Copy link
Collaborator

ptc-emaggio commented Oct 9, 2024

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

@islammohy
Copy link

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

@ptc-epassaro
Copy link
Collaborator

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

@islammohy
Copy link

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

@ptc-emaggio
Copy link
Collaborator

ptc-emaggio commented Oct 9, 2024

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.

@Archi97
Copy link

Archi97 commented Dec 21, 2024

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 )))

@ptc-emaggio
Copy link
Collaborator

ptc-emaggio commented Dec 22, 2024

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.

@Archi97
Copy link

Archi97 commented Dec 30, 2024

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 )

@ptc-emaggio
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Bugs and issues device-feedback Device feedback
Projects
None yet
Development

No branches or pull requests

8 participants
@ptc-emaggio @Archi97 @islammohy @ptc-epassaro @ptc-thesbyro @KybokyN @IrfanKMT and others