godotengine / godotengine/godot

Android editor crashes when running multiple instances of a project

Open
#98,080 3 comments 0 reactions 0 assignees View on GitHub
bug crash platform:android topic:editor
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

Tested Versions:

Current Version: Godot 4.4.0 dev3 (commit hash: [insert commit hash here if available])

Reproducibility:

The issue is consistently reproducible in the current version (4.4.0 dev3).

Additional Versions Tested:

1. Godot 4.3.stable:

Issue: Reproducible

2. Godot 4.2.stable:

Issue: Reproducible

3. Godot 4.1.stable:

Issue: Reproducible

4. Godot 4.2.dev1:

Issue: Reproducible

5. Godot 4.2.dev2:

Issue: Reproducible

Summary:

The bug is reproducible across all tested versions. This indicates that it is not a regression, as the issue has been present in these versions. Identifying the root cause will be essential for resolving the problem

### System information

System Information: Operating System: Android 11 Device Model: Infinix Hot 11 Play CPU Model: MediaTek Helio G35 CPU Architecture: ARM64 GPU Model: PowerVR GE8320 RAM: 3 GB / 4 GB Storage: 32 GB / 64 GB (expandable via microSD) Battery: 6000 mAh Rendering Backend: GLES3 (or specify GLES2, Vulkan, etc., as applicable) Godot Version: Godot 4.4.0 dev3

### Issue description

https://github.com/user-attachments/assets/56806949-6966-4992-9c26-abb6c3149a7d

I am facing a critical issue in my Godot project on Android. Whenever I open multiple instances of the application, the app closes automatically right after running the project. There is no error message or crash log— the app just exits abruptly. It seems like the app is unable to handle more than one instance properly, leading to an immediate closure.

The issue does not appear to be related to any specific bug in the code, as the app works perfectly with a single instance. However, as soon as I try to run multiple instances, the app cuts off and closes without any warning.

This is a major problem because I am developing a multiplayer game, and running multiple instances is crucial for testing and gameplay. Without resolving this issue, it is impossible to proceed with the multiplayer functionality. I would appreciate it if this could be addressed and fixed as soon as possible.

### Steps to reproduce

1. Open the Godot project on an Android device.

2. Run the project and open a single instance of the app. The app works fine.

3. Now, attempt to open multiple instances of the app (either by launching it again or through a multitasking action on the Android device).

4. Notice that the app exits automatically without any error or crash log right after running the second instance.

If needed, I can provide a minimal reproduction project that demonstrates this issue. It includes basic scenes and the necessary setup to replicate the problem on Android. Simply run the project on an Android device, open multiple instances, and observe the app's behavior as described above.

### Minimal reproduction project (MRP)

I have created a minimal reproduction project that demonstrates the issue. The project is written in GDScript, as C# is not supported for Android development in this context.

The project includes only the necessary files to reproduce the issue, and I have ensured that the .godot folder is not included in the archive (the project.godot file is retained).

You can upload the ZIP archive of the project here (max 10 MB).

If the reproduction steps are not project dependent, you can specify that as well.

---

Feel free to add any specific instructions or details about how to use the project when you upload it!

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure on the listed Infinix Hot 11 Play running Android 11 with the Godot 4.4.0 dev3 project, then obtain Android crash output because the report includes no log. Compare launching one instance with launching a second; done means the cause is identified and multiple instances no longer exit unexpectedly.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
game-dev, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.