godot icon indicating copy to clipboard operation
godot copied to clipboard

Android: Pressing Back button exits the editor when running the project

Open Sleff1 opened this issue 3 years ago • 10 comments


Bugsquad note: This issue has been confirmed several times already. No need to confirm it further.


Godot version

V3.5 and 4.0

System information

Android 11

Issue description

When playing a scene whole Godot editor turns of when pressing a back button I just want to close palyed scene and go back to the editor but i can't Sometimes it's working normal and I'm going back to the editor and sometimes not I think that there should be on screen floating button to close the scene and that would be good solution or even opening it as a separate app

Steps to reproduce

I have no idea looks like it's random

Minimal reproduction project

No response

Sleff1 avatar Jun 01 '22 17:06 Sleff1

As a workaround, add a visible Button node on your game that calls get_tree().quit() when pressed.

Calinou avatar Jul 10 '22 16:07 Calinou

As a workaround, add a visible Button node on your game that calls get_tree().quit() when pressed.

Unfortunately, this does not appear to solve the issue (using godot Alpha 13)

https://user-images.githubusercontent.com/34092413/181997131-b2b2d1b9-2fef-4d2e-b66c-ee90e380978a.mp4

Solutionful avatar Jul 30 '22 21:07 Solutionful

I tried everything but nothing helps...

Sleff1 avatar Aug 12 '22 14:08 Sleff1

I would like to add that this bug occurs all the time in my current setup: Operating system: Android 12 Godot version: 4.0 Beta 3 Device: Samsung Galaxy Tab S8

gabydoo avatar Oct 23 '22 19:10 gabydoo

The behavior is not intentional and caused by an input-related crash bug when returning to the editor from the running project.

The issue has already been fixed on the 3.x branch, but still remains on the 4.x branch.

m4gr3d avatar Nov 27 '22 04:11 m4gr3d

Just tried the latest 3.x branch, doesn't seem to work. However I do recall a release candidate of 3.5 that actually fixed the problem, however everything after said candidate stil has the problem.

Solutionful avatar Nov 27 '22 14:11 Solutionful

Just tried the latest 3.x branch, doesn't seem to work.

@Liquidful Do you mean you tried a custom build from the 3.x branch and the issue is still present (i.e: pressing back from the running project causes the editor to close as well?) ?

m4gr3d avatar Nov 27 '22 22:11 m4gr3d

Not a custom build, just the official 3.5.1 package found on the website, And yes, the same issue is still present. (Android 12, Xiaomi Pad 5)

Solutionful avatar Nov 28 '22 08:11 Solutionful

Not a custom build, just the official 3.5.1 package found on the website, And yes, the same issue is still present. (Android 12, Xiaomi Pad 5)

@Liquidful That's expected. The fixes are being made for the upcoming 3.6 release as they contained some large refactor to the input logic which we deemed unsuitable for the 3.5.x releases.

We'll soon make that release available through the play store which will provide an easier (and automatic) way to keep up-to-date with the latest improvements.

m4gr3d avatar Nov 28 '22 14:11 m4gr3d

That's great news! Happy to hear that it's being worked on

Solutionful avatar Nov 28 '22 15:11 Solutionful

I have a problem, no matter how many times i click back, it doesn't return to the editor, it won't quit even with get_tree().quit()

Unknownman21229 avatar Feb 17 '23 14:02 Unknownman21229

I have a problem, no matter how many times i click back, it doesn't return to the editor, it won't quit even with get_tree().quit()

I've seen that behavior when the debugger is on and stopped at a breakpoint. Check to ensure that there's no breakpoints in your gdscript code prior to running the project.

m4gr3d avatar Feb 17 '23 17:02 m4gr3d

Same problem happening in my android device Infinix Smart 5 android 10, 32-bit Even i tried godot 4.1.2 and 4.2 beta Problem is not solved please fix it As soon as possible.

LotusLegends avatar Oct 16 '23 13:10 LotusLegends

Not a custom build, just the official 3.5.1 package found on the website, And yes, the same issue is still present. (Android 12, Xiaomi Pad 5)

@Liquidful That's expected. The fixes are being made for the upcoming 3.6 release as they contained some large refactor to the input logic which we deemed unsuitable for the 3.5.x releases.

We'll soon make that release available through the play store which will provide an easier (and automatic) way to keep up-to-date with the latest improvements.

It's already been a year and 3.6.0.beta.3 has been released yet I'm still facing this issue. I've installed the official app from play store still facing the issue

SamiunNafis avatar Nov 15 '23 15:11 SamiunNafis

If this only occurs when encountering a script error when running the project (including runtime errors not visible when the project isn't running), see https://github.com/godotengine/godot/issues/77272.

Calinou avatar Nov 15 '23 15:11 Calinou

Not a custom build, just the official 3.5.1 package found on the website, And yes, the same issue is still present. (Android 12, Xiaomi Pad 5)

@Liquidful That's expected. The fixes are being made for the upcoming 3.6 release as they contained some large refactor to the input logic which we deemed unsuitable for the 3.5.x releases.

We'll soon make that release available through the play store which will provide an easier (and automatic) way to keep up-to-date with the latest improvements.

It's already been a year and 3.6.0.beta.3 has been released yet I'm still facing this issue. I've installed the official app from play store still facing the issue

@SamiunNafis there was a second fix needed which is being added by https://github.com/godotengine/godot/pull/84279. That fix hasn't been merged yet but will be part of the next beta release.

m4gr3d avatar Nov 15 '23 15:11 m4gr3d