-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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 freezes after script error in project due to not switching to the editor view automatically #77966
Comments
I also got this behaviour when I tested the example code. @m4gr3d |
I think the normal logic would be something like this: There is a problem -> Go back to the engine edit page and display the error message and memory information. Just like on the computer side |
I am also facing the same problem. Is godot going to fix this bug anytime soon? |
The issue occurs because the gdscript error causes the Godot debugger to freeze the running project until it's resumed. Screen_Recording_20231103_095619_Godot.Editor.4.dev.mp4A simple fix would be to have an option to disable that behavior from the debugger. |
This comment was marked as outdated.
This comment was marked as outdated.
@Calinou I'd rather consolidate #77272 into this issue since this one has more information.
Btw, do you know if we already have the option to disable the described behavior from the debugger? |
I don't think so, but I'd suggest starting to look at the It seems to have some logic to bypass some stuff if using an external editor, maybe that could help inspire a fix: void ScriptEditor::_breaked(bool p_breaked, bool p_can_debug) {
if (bool(EditorSettings::get_singleton()->get("text_editor/external/use_external_editor"))) {
return;
}
debug_menu->get_popup()->set_item_disabled(debug_menu->get_popup()->get_item_index(DEBUG_NEXT), !(p_breaked && p_can_debug));
debug_menu->get_popup()->set_item_disabled(debug_menu->get_popup()->get_item_index(DEBUG_STEP), !(p_breaked && p_can_debug));
debug_menu->get_popup()->set_item_disabled(debug_menu->get_popup()->get_item_index(DEBUG_BREAK), p_breaked);
debug_menu->get_popup()->set_item_disabled(debug_menu->get_popup()->get_item_index(DEBUG_CONTINUE), !p_breaked);
for (int i = 0; i < tab_container->get_child_count(); i++) {
ScriptEditorBase *se = Object::cast_to<ScriptEditorBase>(tab_container->get_child(i));
if (!se) {
continue;
}
se->set_debugger_active(p_breaked);
}
} But I'm not sure that would be sufficient. |
Is this error fixed in the new updates ? If not then is there any way to fix this from inside the Godot editor or we have to suffer this until it gets fixed. It has been 6 months since i wanted to use Godot on android but this error is not letting me use it. Whenever there is an error in the code then the editor should return me to the debugger and tell me what the error is but nothing happens. I am stuck in the main game window. Pls anyone fix this faast |
As far as I can see the correct fix is for the focus to change from the running app to the editor when a bug is found, and back again when rerunning. But maybe there are reasons why this is not simple / possible, maybe @m4gr3d can explain, most of us will know next to nothing about swapping processes on Android. 😊 |
This comment was marked as off-topic.
This comment was marked as off-topic.
OK when I set It looks like one key problem is that the back button is disabled, this presumably would be better used to to be able to quit the debug session (in this situation at least, when the debugger is active). Really we want to minimize the running debug app, and maximize the editor for debugging. |
@lawnjelly Now that GodotCon is over, and if there are no further objections, I can take a look at discontinuing support for the Android editor in 3.x. |
I've just unpublished the 3.x version, which means that new users cannot find and install it, although existing users can still find it. I think that should be sufficient for the time being, and this still gives us the option of re-publishing this version of the editor if we want. |
@lawnjelly Note that regarding this issue, I believe both #95700 and the upcoming #97257 mitigate it for 4.x, the issue being able to backport either of them for 3.x. |
Godot version
Mobile Editor 3.6.beta.2 android
System information
I am on a samsung a04s android 11
Issue description
When you run a piece of code that has a error in it in the mobile version of godot the scene becomes black and it also does not let you leave the scene the only way to go back is by manualy leaveing the app i havd no idea what causes this or how to fix it but it would be nice if you would i have also provided a little demostration down below kind regards
: random poor kid
Steps to reproduce
Go into godot type a error and run it should brick the entire thing
Minimal reproduction project
The text was updated successfully, but these errors were encountered: