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

Android editor: Heavy projects occasionally crashing when playing since 4.4 #98112

Open
GreenDevGD opened this issue Oct 12, 2024 · 33 comments
Open

Comments

@GreenDevGD
Copy link

Tested versions

I'm trying out the mobile version of Godot Engine, but I'm facing some issues involving 3D and possibly 2D: When I start the project, the engine for some reason restarts by itself as if some failure had occurred. Obs: There is no error, not even in the scripts, but the engine still insists on restarting, This only happens when I start the project, mysterious crashes also occur, as the project is too small to make the device crash. I use a Moto G9 play.

Moto G9 play:
Qualcomm Snapdragon 665
Adreno 610
64GB and 4GB RAM
Android 10 (Updated to Android 11)

Godot Engine 4.4 dev3

System information

Godot v4.4.dev3 - Android - Single-window, 1 monitor - Vulkan (Mobile) - integrated Adreno (TM) 610 - (8 threads)

Issue description

The Engine is restarting itself every time I start the project to test, even if it opens and loads correctly, the unwanted restart happens.

Steps to reproduce

Engine problems, I haven't found any problems with GDscript so far.

Minimal reproduction project (MRP)

No problem in settings

@llama-nl
Copy link

Is it happening when you minimize the app and re-enter? Or most probably because of Android 11.

@Calinou
Copy link
Member

Calinou commented Oct 12, 2024

Try switching to the Compatibility rendering method at the top-right corner of the editor. (If this does not work, change Rendering Method.mobile to Compatibility in the project settings then restart the editor.)

@syntaxerror247
Copy link
Member

@GreenDevGD I tested on the exact same device, but cannot reproduce it.
Can you please share a screen recording?

@GreenDevStudio
Copy link

@syntaxerror247 Maybe, I did some tests and realized that this happens when the project is very heavy but I don't suffer from this problem in Godot 4.3 Stable. I suspect that it is the new windowed mode of the engine that must have released this problem. And thanks to everyone who responded. All other versions including dev7 have the problem. I will take a screenshot to make the problem clearer.

@GreenDevStudio
Copy link

@llama-nl This is common but that is not the problem.

@Calinou It's not a rendering problem either, in fact my project uses mobile render

@GreenDevStudio
Copy link

Video Report : https://github.com/user-attachments/assets/873f8c19-a00c-4fd1-ab4a-d883a038ddc8

As I said before, even if the project runs normally it insists on restarting. I believe that unfortunately this happens on weaker devices. But this did not happen in previous versions.

Obs: This is the "last" engine update and the problem still exists.

I have already reported this to the developers but I am concerned that the final version will have this issue. At the moment I can only use a mobile device to work on Godot.

@syntaxerror247
Copy link
Member

@GreenDevStudio To check if the issue is caused by the new pip mode, try disabling it in the editor settings and see if the problem persists.

Go to Editor Settings and set run/window_placement/play_window_pip_mode to Disabled.

@GreenDevStudio
Copy link

@syntaxerror247 It didn't work. Godot keeps restarting when I run the entire project.I really don't know but I strongly suspect that PIP mode is causing the problem but that's up to the developers I think.

@llama-nl
Copy link

llama-nl commented Jan 7, 2025

@GreenDevStudio have you tested with an empty project? it could be device specific problem.

@GreenDevStudio
Copy link

GreenDevStudio commented Jan 7, 2025

@llama-nl Yes. The problem is much more specific, restarts only occur in more complex or heavy scenes. This implies that it is my hardware that is weak but this did not happen in previous versions.

I don't know if anyone here has had this problem with a complex project in Godot mobile so I'm not sure.

@Saul2022
Copy link

Saul2022 commented Jan 8, 2025

I don't know if anyone here has had this problem with a complex project in Godot mobile so I'm not sure.

I do since 4.4 dev versions with a s23+ which is not old by any means, so it seems to be a godot issue. It happens on my game , the terrain 3d demo project from Cory and the tps demo.

Edit: While it not the same I feel it ‘s a pretty similar issue that occurs in the tps demo. Can you reproduce it here too?

#98330

@GreenDevStudio

This comment has been minimized.

@Saul2022

This comment has been minimized.

@GreenDevStudio

This comment has been minimized.

@GreenDevStudio

This comment has been minimized.

@Saul2022

This comment has been minimized.

@akien-mga akien-mga changed the title Godot Mobile: Unwanted restart Godot Android editor: Heavy projects occasionally crashing when playing since 4.4\ Jan 8, 2025
@akien-mga akien-mga changed the title Godot Android editor: Heavy projects occasionally crashing when playing since 4.4\ Godot Android editor: Heavy projects occasionally crashing when playing since 4.4 Jan 8, 2025
@akien-mga akien-mga added this to the 4.4 milestone Jan 8, 2025
@akien-mga akien-mga moved this from Unassessed to Very Bad in 4.x Release Blockers Jan 8, 2025
@akien-mga
Copy link
Member

Could you test all 4.4 dev snapshots (you can download the APKs directly from https://github.com/godotengine/godot-builds/releases) and pinpoint which is the first one where the bug happens?

This might help us narrow down what change may have caused this regression even if contributors aren't able to reproduce the issue themselves.

@GreenDevStudio
Copy link

@akien-mga Of course, I'll come back here when I'm done testing the snapshots.

@GreenDevStudio
Copy link

@akien-mga Engine restarts only occur in snapshots dev2 through dev7. Specifically those that have pip mode, as this problem does not occur in dev1. But I noticed that restarts also occur in 4.3 but the difference is that the project is not forced to stop, while in snapshots the project stops

Explaining better: The restarts have something to do with pip mode, because without it (in versions 4.3 and dev1) the project runs normally, but those that have pip mode (dev2 to dev7) the restarts are happening to me at least.

@syntaxerror247
Copy link
Member

syntaxerror247 commented Jan 8, 2025

@GreenDevStudio Just to be clear, Did you tried after disabling the PiP mode in Editor Settings? After disabling it, it would run in the same window as did in 4.3.

@GreenDevStudio
Copy link

@syntaxerror247 Yes, I disabled pip mode but that didn't stop the Engine from closing my project and restarting. Maybe the problem is much deeper

@Saul2022
Copy link

Saul2022 commented Jan 8, 2025

[1. But I noticed that restarts also occur in 4.3 but the difference is that the project is not forced to stop, while in snapshots the project stops

WDYM? Is it happening after you want to close the play window or how ?

@GreenDevStudio
Copy link

The strange thing is that I think the restarts also occur in 4.3, but the project is not stopped and this does not bother me much, but it is quite bad to wait for the engine to load the assets every time it occurs.

@GreenDevStudio
Copy link

@Saul2022 When you close the play window. But I believe it is a performance issue on the part of the hardware. Perhaps this problem does not occur on more powerful devices. But it doesn't bother me enough because at least the project isn't forcibly terminated.

@Saul2022
Copy link

Saul2022 commented Jan 8, 2025

Perhaps this problem does not occur on more powerful devices. But it doesn't bother me enough because at least the project isn't forcibly terminated.

Yea , but the issue is a s23+ has the same problem , which possibly means than a s24 does too so it doesn´t seem like a device issue for me. If you want you might create other issue that refers to this problem if you want and i confirm it too with my case.

@GreenDevStudio
Copy link

@Saul2022 So I really don't know the origin of the problem, maybe it only occurs in complex projects?

@Saul2022
Copy link

Saul2022 commented Jan 8, 2025

@Saul2022 So I really don't know the origin of the problem, maybe it only occurs in complex projects?

Maybe, my project is just 250mb tho, what i know is that for empty scenes it does work perfectly.

@clayjohn
Copy link
Member

@GreenDevStudio Could you try running the project with the Compatibility renderer like Calinou suggested above?

@syntaxerror247 syntaxerror247 marked this as a duplicate of #98330 Feb 9, 2025
@syntaxerror247
Copy link
Member

Could someone try the Android Editor from #102492 artifects and confirm if the issue is still reproducible?

@akien-mga akien-mga changed the title Godot Android editor: Heavy projects occasionally crashing when playing since 4.4 Android editor: Heavy projects occasionally crashing when playing since 4.4 Feb 10, 2025
@akien-mga akien-mga moved this from Very Bad to Bad in 4.x Release Blockers Feb 11, 2025
@akien-mga akien-mga modified the milestones: 4.4, 4.5 Feb 14, 2025
@syntaxerror247 syntaxerror247 marked this as a duplicate of #99421 Feb 16, 2025
@darksylinc
Copy link
Contributor

There's a chance this bug gets fixed by #102830 thus I'll ask that you try again a newer version that includes that patch.

@Saul2022
Copy link

There's a chance this bug gets fixed by #102830 thus I'll ask that you try again a newer version that includes that patch.

Sorry i am late, i am so busy rn, but seems like on my s24 fe on rc 2 ITS not reproducible,( It can open the game and upon closing It doesnt restarte the editor), although trying to open my project in a OPPO A74 5g makes It Crash upon losding editor( It has 6gb off ram).

@syntaxerror247
Copy link
Member

although trying to open my project in a OPPO A74 5g makes It Crash upon losding editor( It has 6gb off ram).

It seems like a seperate issue. Does it crash after trying to open the project or on app startup?

It might be better to create a new bug report for it, with crash log.

@Saul2022
Copy link

Saul2022 commented Feb 28, 2025

It seems like a seperate issue. Does it crash after trying to open the project or on app startup?

After opening the projec right after finishing asset reimport, but that didn´t happen with the s24fe. I think it can be because of low ram(6gb) or an importer bug. I am atleast glad that on the s24 fei can no longer reproduce this hell bug..
,

What about you ? Can you still reproduce the issue?

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

No branches or pull requests

9 participants