From 0baa47bb53e15c35671a986e06df1ae8aa2eab23 Mon Sep 17 00:00:00 2001 From: cpl-s-matsuyama <26297239+cpl-s-matsuyama@users.noreply.github.com> Date: Wed, 10 Dec 2025 10:41:43 +0900 Subject: [PATCH] Fix crash on quit when settings_changed signal is emitted during exit Add `is_inside_tree()` guard to `GameView::_editor_or_project_settings_changed()` to prevent accessing invalid state when the signal is emitted during editor shutdown. Fixes #113829 --- editor/run/game_view_plugin.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/editor/run/game_view_plugin.cpp b/editor/run/game_view_plugin.cpp index 7638d644bd7..12ba56afb61 100644 --- a/editor/run/game_view_plugin.cpp +++ b/editor/run/game_view_plugin.cpp @@ -507,6 +507,10 @@ void GameView::_embedded_process_focused() { } void GameView::_editor_or_project_settings_changed() { + if (!is_inside_tree()) { + return; + } + // Update the window size and aspect ratio. _update_embed_window_size();