godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.04k stars 21.12k forks source link

Godot 4.3 Can't Resume from Background on Android #98026

Open toannth opened 1 day ago

toannth commented 1 day ago

Tested versions

System information

Android 9 - Godot v4.3.stable - Compatibility

Issue description

Export the Platformer 2d sample project to Android. Open the exported game then bring it to background but can't resume the game when click to the game icon again

Steps to reproduce

  1. Export the Platformer 2d sample project to Android
  2. Install the exported game on Android phone
  3. Click the game icon to open
  4. Bring the game to background
  5. Click the game icon again to back to the game
  6. Notice that the game's not resume and the flash screen is shown
  7. Logcat prints error: Fatal signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0x8a048a40 in tid 23512 (le.platformer2d), pid 23512 (le.platformer2d)... Screenshot 2024-10-09 at 23 10 32

Minimal reproduction project (MRP)

The Platformer 2d sample project

toannth commented 15 hours ago

It happens on Godot 4.2.2.stable and 4.3-dev too. Any workaround at the moment?

shahriarlabib000 commented 14 hours ago

Seems to be working fine on these specs Godot v4.4.dev3 - Android 11 - Single-window, 1 monitor - OpenGL ES 3 (Compatibility) - Mali-G52 - (8 threads)

https://github.com/user-attachments/assets/6d4833e5-434f-44e7-bbb6-c9d7facecd38

syntaxerror247 commented 8 hours ago

It's working fine for me too on my Android 11 (motorola), Android 13 (Xiaomi) and Android 14 (Xiaomi).

@toannth Are you exporting a release or debug ?

toannth commented 6 hours ago

@syntaxerror247 : Debug export on Xiaomi Redmi Android 9

syntaxerror247 commented 6 hours ago

Debug export on Xiaomi Redmi Android 9

I cannot reproduce this issue even in debug export. It looks like your OS is force closing it. We will have to wait until a contributor can reproduce this issue.

MarcosFGS-CDS commented 4 hours ago

By any chance do you have application/config/quit_on_go_back set to On in your General>Application>Config(advanced settings need to be on)?