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

black screen on android #82237

Open
minixzid opened this issue Sep 24, 2023 · 6 comments
Open

black screen on android #82237

minixzid opened this issue Sep 24, 2023 · 6 comments

Comments

@minixzid
Copy link

Godot version

4.1 stable

System information

Android 11 - Samsung Exynos 7 Octa (7904) , 64-bit ARMv8-A , 64-bit ARMv8-A - OpenGL

Issue description

Hello, I want to report a bug that occurred on my cellphone, I use Godot Editor 4 which I downloaded from the Play Store, when I opened the application suddenly my screen went black, I have waited for several minutes the screen is still black, even though it has been 2 months then when i tried to download godot editor on my phone it worked really well. Is there any solution to this problem? Thank You!

sorry for my english, I use google translate :)

Screenshot :
Screenshot_20230924-182054_Godot Editor 4

Steps to reproduce

Sorry, I don't understand what is meant in this field 🙏

Minimal reproduction project

Sorry, I don't understand what is meant in this field 🙏

@duarteroso
Copy link

Can you try the 4.2.0-dev5 build instead of the 4.1-stable?
Perhaps it was magically fixed in a later patch 🤞🏽

Also, just in case, is there any log related to the engine when you open the editor on your phone?
(you can check the logs vis Android Studio or command line on your computer adb logcat)

@nongvantinh
Copy link
Contributor

After a long period of development, the Godot 4.2 mono version finally supports exporting for mobile devices using .NET 8, and I wanted to give it a try. However, after upgrading the project from 4.1 to 4.2 and exporting it to my Android phone, I encountered several issues:

  • The loading time is excessively long.
  • Only the GUI is visible.
  • The world turns back.
  • The performance is severely laggy.

Despite attempting various solutions, only one proved to work:
Open Project Settings -> Rendering -> Renderer:

  1. Change Rendering Method to gl_compatibility.
  2. Change Rendering Method.mobile to gl_compatibility.
  3. Reload the project and export it again.

The exported APK works, so maybe my phone only supports OpenGL ES 3.2.

@mahdisml
Copy link

mahdisml commented Dec 2, 2023

After a long period of development, the Godot 4.2 mono version finally supports exporting for mobile devices using .NET 8, and I wanted to give it a try. However, after upgrading the project from 4.1 to 4.2 and exporting it to my Android phone, I encountered several issues:

  • The loading time is excessively long.
  • Only the GUI is visible.
  • The world turns back.
  • The performance is severely laggy.

Despite attempting various solutions, only one proved to work: Open Project Settings -> Rendering -> Renderer:

  1. Change Rendering Method to gl_compatibility.
  2. Change Rendering Method.mobile to gl_compatibility.
  3. Reload the project and export it again.

The exported APK works, so maybe my phone only supports OpenGL ES 3.2.

what is your phone model and android version ?

@nongvantinh
Copy link
Contributor

nongvantinh commented Dec 2, 2023

$ phone_model=$(adb shell getprop ro.product.model)
android_version=$(adb shell getprop ro.build.version.release)
gles_support=$(adb shell dumpsys SurfaceFlinger | grep GLES)

echo "Phone Model: $phone_model"
echo "Android Version: $android_version"
echo "GLES: $gles_support"

Phone Model: SM-A045F
Android Version: 13
GLES: GLES: Imagination Technologies, PowerVR Rogue GE8320, OpenGL ES 3.2 build 1.13@5776728

I tried searching for Vulkan, but there is no hope. When I ran the command:

$ adb shell dumpsys | grep -i vulkan

I encountered the following errors:

Error with service 'android.hardware.light.ILights/default' while dumping: FAILED_TRANSACTION
Error with service 'android.hardware.power.IPower/default' while dumping: FAILED_TRANSACTION
Error with service 'android.hardware.security.keymint.IKeyMintDevice/default' while dumping: FAILED_TRANSACTION
Error with service 'android.hardware.security.secureclock.ISecureClock/default' while dumping: FAILED_TRANSACTION
Error with service 'android.hardware.security.sharedsecret.ISharedSecret/default' while dumping: FAILED_TRANSACTION
Error with service 'android.hardware.vibrator.IVibrator/default' while dumping: FAILED_TRANSACTION
Can't find service: android.service.gatekeeper.IGateKeeperService
Error with service 'android.system.suspend.ISystemSuspend/default' while dumping: FAILED_TRANSACTION
Can't find service: dnsresolver
Binary file (standard input) matches
Can't find service: incident
Can't find service: installd
Error with service 'manager' while dumping: FAILED_TRANSACTION
Error with service 'mdns' while dumping: FAILED_TRANSACTION
Can't find service: netd
Error with service 'spqr_service' while dumping: FAILED_TRANSACTION
Can't find service: suspend_control
Can't find service: suspend_control_internal
Error with service 'vendor.samsung.hardware.keymint.ISehKeyMintExtension/default' while dumping: FAILED_TRANSACTION
Error with service 'vendor.samsung.hardware.keymint.ISehKeyMintFactory/default' while dumping: FAILED_TRANSACTION
Can't find service: vold
Error with service 'wifinl80211' while dumping: FAILED_TRANSACTION

It appears that the search did not yield the expected results. If you have any insights or suggestions, feel free to share them.

@Alex2782
Copy link
Contributor

Alex2782 commented Dec 2, 2023

SM-A045F is a Samsung Galaxy? With Android 13, it should also have Vulkan API. There is an error when MSAA is active, the GUI is visible and the background is black in 3D mode.

#83481 (comment)

@nongvantinh
Copy link
Contributor

nongvantinh commented Dec 2, 2023

It's definitely not the case, since I don't turn any of these options on.

image

It happens with a newly created project as well, here is a random project test_gui_input.zip that I created to try thing, you can give it a shot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants