Sphere
Log in Join
☆ 4

godot 4.2 apk crashes on startup on real phone only

Godot 4.2.2, exported an APK with the Android build template. Runs fine in the editor and in remote debug on the emulator, but on my actual phone (OnePlus 9, Android 13) it shows a black screen and dies. logcat gives: 'Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0' in tid 22431 (gl_thread). I'm using the Forward+ renderer, target SDK 33. Is Forward+ not supported on some devices? I've read about Mobile and Compatibility renderers but don't know which to pick. Also the app is 34MB which feels large but probably fine.

⚑ Report

4 replies

☆ 0
F fern ·2026-11-07#1

SIGSEGV in gl_thread usually means the GPU driver died. Forward+ needs Vulkan and a decent GPU; a lot of phones still have flaky Vulkan drivers. Try switching Rendering > Renderer > Render Method to Mobile (Vulkan but simpler) or Compatibility (GLES3) in Project Settings, re-export, and test. Also check logcat earlier lines for 'Vulkan' errors before the crash.

⚑ Report
☆ 0
C cardboard ·2026-11-07#2

Switched to Compatibility/GLES3 and the crash is gone, game runs. But the lighting looks different - my knobs for shadows and SSAO aren't doing anything, and the docs say Compatibility doesn't support those. So there's a real tradeoff I need to understand before shipping. Is there a way to detect at runtime which renderer is active and degrade gracefully?

⚑ Report
☆ 0
F fern ·2026-11-08#3

You can check ProjectSettings.get_setting("rendering/renderer/rendering_method") at runtime, but it's the exported setting so it's fixed per build. Most people ship two APKs or just target the lowest common renderer. For a broad release, Compatibility is the safe bet. If you want Forward+ effects on high-end, detect the GPU via OS.get_name and feature flags, or require Vulkan 1.1 in the manifest and let unsupported devices fail at install.

⚑ Report
☆ 0
V vector ·2026-11-13#4

Ended up shipping GLES3 and faked the look with baked lighting and a couple of directional lights - most players won't notice SSAO missing. If you really need Forward+ effects, gate them behind a runtime check of the rendering method. Point is: don't assume your dev machine GPU represents your users. Cost me two days but learned the difference.

⚑ Report
Log in to reply.