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

[4.4RC1] Android: Leaving Rendering Device Driver Set To Auto Crashes Exported Project #103156

Open
MTareqAzim opened this issue Feb 22, 2025 · 5 comments · May be fixed by #103144 or #103197
Open

[4.4RC1] Android: Leaving Rendering Device Driver Set To Auto Crashes Exported Project #103156

MTareqAzim opened this issue Feb 22, 2025 · 5 comments · May be fixed by #103144 or #103197

Comments

@MTareqAzim
Copy link
Contributor

Tested versions

  • Reproducible in 4.4RC1.
  • Not Reproducible in 4.4 beta 4 and before.

System information

Android 13 - Godot v4.4rc1 - Mobile - Qualcomm Adreno 650

Issue description

PR #103026 added the option to select which rendering driver to be used for each platform. They also added a new default setting which is auto. Currently, leaving the setting for rendering/rendering_device/driver.android to auto causes debug exported projects to crash. Changing the setting to vulkan fixes the issue.

Possibly relevant crash log:

02-22 18:49:21.266 19681 19720 E godot   : ERROR: Parameter "native_window" is null.
02-22 18:49:21.266 19681 19720 E godot   :    at: DisplayServerAndroid (platform/android/display_server_android.cpp:700)
02-22 18:49:21.266 19681 19720 E godot   : ERROR: Unable to create DisplayServer, all display drivers failed.
02-22 18:49:21.266 19681 19720 E godot   : Use "--headless" command line argument to run the engine in headless mode if this is desired (e.g. for continuous integration).
02-22 18:49:21.266 19681 19720 E godot   :    at: setup2 (main/main.cpp:3015)

Additional concerns: Someone should probably check exports on iOS and MacOS as those are probably just as overlooked as Android exports.

Steps to reproduce

  1. Create a simple, exportable project for Android with default Project Settings.
  2. Export project to Android.
  3. Run project and watch it crash.

Extra steps to fix:
4. Change rendering/rendering_device/driver.android in Project Settings to vulkan.
5. Export and run project to see it work as normal.

Minimal reproduction project (MRP)

android-crash.zip

@SoloRobo
Copy link

Same on a Google Pixel 2 & Sony Xperia 10 VI, unsure of GPU but adding in the hope it helps

@clayjohn
Copy link
Member

Will be fixed by #103144

@MTareqAzim
Copy link
Contributor Author

Sorry, should just wait till it's merged in to close.

@syntaxerror247
Copy link
Member

@MTareqAzim You can validate the fix by testing #103144. Simply download the Editor and android template from PR artifects in Checks tab.

@MTareqAzim
Copy link
Contributor Author

Okay, it took a while since I had to compile it myself for the debug templates, the fix works for both the MRP I provided as well as my own Godot Project.

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