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

Don't edit current when changing docks (reverted) #90816

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

kitbdev
Copy link
Contributor

@kitbdev kitbdev commented Apr 17, 2024

In that PR I unified them to all call edit_current, but I don't think they need to call it at all. If any of them do, let me know.

@kitbdev kitbdev requested a review from a team as a code owner April 17, 2024 18:35
@akien-mga akien-mga added this to the 4.3 milestone Apr 17, 2024
@KoBeWi
Copy link
Member

KoBeWi commented Apr 17, 2024

Looks like it's needed when making a dock floating and back.

RABTXSEJw3.mp4

But it's only needed for the dock being moved and only for some docks, so calling a method that affects editor state globally is too much 🤔
As a quick fix you can call edit_current() only when needed, but perfectly this should not be needed and the docks should just preserve their state, always.

EDIT:
No, calling edit_current() could still randomly open the script editor. It might be better to do a proper fix now.

@kitbdev kitbdev force-pushed the dock-dont-edit-current branch from c8b93a3 to 8fd98bb Compare April 19, 2024 20:56
@kitbdev
Copy link
Contributor Author

kitbdev commented Apr 19, 2024

Changed Editor Inspector to only clean up on predelete and not in exit tree. I think the Inspector was the only dock had this problem. Moving the Inspector should now keep its state.
Its edited object can change even when it is closed, and it should show correctly when it is reopened.

@kitbdev kitbdev force-pushed the dock-dont-edit-current branch from 8fd98bb to 55711b2 Compare April 19, 2024 21:10
@KoBeWi

This comment was marked as resolved.

Copy link
Member

@KoBeWi KoBeWi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from a minor error it works fine now.

@kitbdev
Copy link
Contributor Author

kitbdev commented Apr 19, 2024

I noticed the error a little late and made a second push after my comment.
The error should be fixed by 55711b2

@akien-mga akien-mga merged commit 8ab5ab1 into godotengine:master Apr 22, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@kitbdev kitbdev deleted the dock-dont-edit-current branch April 22, 2024 13:46
@stuartcarnie
Copy link
Contributor

stuartcarnie commented Apr 22, 2024

Heads up that this commit is causing a crash on quit – I suspect due to a use-after-free.

Important

The issue appears to occur when the Visual Profiler under the Debugger tab is open, when closing Godot.

CleanShot 2024-04-23 at 08 37 05@2x

If I revert this specific change, the crash goes away:

diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp
--- a/editor/editor_inspector.cpp	(revision bde404fb39494284cbdfa641b8e4759e7ee2ce42)
+++ b/editor/editor_inspector.cpp	(date 1713825339106)
@@ -4028,6 +4028,7 @@
 			if (!sub_inspector) {
 				get_tree()->disconnect("node_removed", callable_mp(this, &EditorInspector::_node_removed));
 			}
+			edit(nullptr);
 		} break;
 
 		case NOTIFICATION_VISIBILITY_CHANGED: {

@Calinou
Copy link
Member

Calinou commented Apr 22, 2024

Backtrace (which I've gotten on every exit of the editor so far):

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.3.dev.custom_build (95381391747b3c600647721a22064531b9cd058a)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] /lib64/libc.so.6(+0x3e9a0) [0x7fcc9437b9a0] (??:0)
[2] bin/godot.linuxbsd.editor.x86_64() [0x471fe40] (/home/hugo/Documents/Git/godotengine/godot/./editor/editor_inspector.cpp:3485)
[3] bin/godot.linuxbsd.editor.x86_64() [0x47263fe] (/home/hugo/Documents/Git/godotengine/godot/./editor/editor_inspector.cpp:4030)
[4] bin/godot.linuxbsd.editor.x86_64() [0x47a7089] (/home/hugo/Documents/Git/godotengine/godot/./editor/editor_inspector.h:463 (discriminator 14))
[5] bin/godot.linuxbsd.editor.x86_64() [0x980d839] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:919)
[6] bin/godot.linuxbsd.editor.x86_64() [0x98096b3] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:200)
[7] bin/godot.linuxbsd.editor.x86_64() [0x981a7a5] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:2150)
[8] bin/godot.linuxbsd.editor.x86_64() [0x30afc44] (/home/hugo/Documents/Git/godotengine/godot/./core/os/memory.h:112 (discriminator 1))
[9] bin/godot.linuxbsd.editor.x86_64() [0x59aad97] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/node.cpp:241)
[10] bin/godot.linuxbsd.editor.x86_64() [0x2bac353] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/node.h:49 (discriminator 14))
[11] bin/godot.linuxbsd.editor.x86_64() [0x345fb3c] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/canvas_item.h:45)
[12] bin/godot.linuxbsd.editor.x86_64() [0x346049a] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/control.h:48)
[13] bin/godot.linuxbsd.editor.x86_64() [0x3462440] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/container.h:37)
[14] bin/godot.linuxbsd.editor.x86_64() [0x3462d9e] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/box_container.h:37)
[15] bin/godot.linuxbsd.editor.x86_64() [0x34644be] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/box_container.h:90)
[16] bin/godot.linuxbsd.editor.x86_64() [0x4a75a68] (/home/hugo/Documents/Git/godotengine/godot/./editor/inspector_dock.h:48)
[17] bin/godot.linuxbsd.editor.x86_64() [0x980d839] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:919)
[18] bin/godot.linuxbsd.editor.x86_64() [0x98096b3] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:200)
[19] bin/godot.linuxbsd.editor.x86_64() [0x981a7a5] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:2150)
[20] bin/godot.linuxbsd.editor.x86_64() [0x30afc44] (/home/hugo/Documents/Git/godotengine/godot/./core/os/memory.h:112 (discriminator 1))
[21] bin/godot.linuxbsd.editor.x86_64() [0x59aad97] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/node.cpp:241)
[22] bin/godot.linuxbsd.editor.x86_64() [0x2bac353] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/node.h:49 (discriminator 14))
[23] bin/godot.linuxbsd.editor.x86_64() [0x345fb3c] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/canvas_item.h:45)
[24] bin/godot.linuxbsd.editor.x86_64() [0x346049a] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/control.h:48)
[25] bin/godot.linuxbsd.editor.x86_64() [0x3462440] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/container.h:37)
[26] bin/godot.linuxbsd.editor.x86_64() [0x614fd34] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/tab_container.h:39)
[27] bin/godot.linuxbsd.editor.x86_64() [0x980d839] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:919)
[28] bin/godot.linuxbsd.editor.x86_64() [0x98096b3] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:200)
[29] bin/godot.linuxbsd.editor.x86_64() [0x981a7a5] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:2150)
[30] bin/godot.linuxbsd.editor.x86_64() [0x30afc44] (/home/hugo/Documents/Git/godotengine/godot/./core/os/memory.h:112 (discriminator 1))
[31] bin/godot.linuxbsd.editor.x86_64() [0x59aad97] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/node.cpp:241)
[32] bin/godot.linuxbsd.editor.x86_64() [0x2bac353] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/node.h:49 (discriminator 14))
[33] bin/godot.linuxbsd.editor.x86_64() [0x345fb3c] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/canvas_item.h:45)
[34] bin/godot.linuxbsd.editor.x86_64() [0x346049a] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/control.h:48)
[35] bin/godot.linuxbsd.editor.x86_64() [0x3462440] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/container.h:37)
[36] bin/godot.linuxbsd.editor.x86_64() [0x351080e] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/split_container.h:54)
[37] bin/godot.linuxbsd.editor.x86_64() [0x466f024] (/home/hugo/Documents/Git/godotengine/godot/./editor/editor_dock_manager.h:46)
[38] bin/godot.linuxbsd.editor.x86_64() [0x980d839] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:919)
[39] bin/godot.linuxbsd.editor.x86_64() [0x98096b3] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:200)
[40] bin/godot.linuxbsd.editor.x86_64() [0x981a7a5] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:2150)
[41] bin/godot.linuxbsd.editor.x86_64() [0x30afc44] (/home/hugo/Documents/Git/godotengine/godot/./core/os/memory.h:112 (discriminator 1))
[42] bin/godot.linuxbsd.editor.x86_64() [0x59aad97] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/node.cpp:241)
[43] bin/godot.linuxbsd.editor.x86_64() [0x2bac353] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/node.h:49 (discriminator 14))
[44] bin/godot.linuxbsd.editor.x86_64() [0x345fb3c] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/canvas_item.h:45)
[45] bin/godot.linuxbsd.editor.x86_64() [0x346049a] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/control.h:48)
[46] bin/godot.linuxbsd.editor.x86_64() [0x3462440] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/container.h:37)
[47] bin/godot.linuxbsd.editor.x86_64() [0x351080e] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/split_container.h:54)
[48] bin/godot.linuxbsd.editor.x86_64() [0x466f024] (/home/hugo/Documents/Git/godotengine/godot/./editor/editor_dock_manager.h:46)
[49] bin/godot.linuxbsd.editor.x86_64() [0x980d839] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:919)
[50] bin/godot.linuxbsd.editor.x86_64() [0x98096b3] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:200)
[51] bin/godot.linuxbsd.editor.x86_64() [0x981a7a5] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:2150)
[52] bin/godot.linuxbsd.editor.x86_64() [0x30afc44] (/home/hugo/Documents/Git/godotengine/godot/./core/os/memory.h:112 (discriminator 1))
[53] bin/godot.linuxbsd.editor.x86_64() [0x59aad97] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/node.cpp:241)
[54] bin/godot.linuxbsd.editor.x86_64() [0x2bac353] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/node.h:49 (discriminator 14))
[55] bin/godot.linuxbsd.editor.x86_64() [0x345fb3c] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/canvas_item.h:45)
[56] bin/godot.linuxbsd.editor.x86_64() [0x346049a] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/control.h:48)
[57] bin/godot.linuxbsd.editor.x86_64() [0x3462440] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/container.h:37)
[58] bin/godot.linuxbsd.editor.x86_64() [0x351080e] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/split_container.h:54)
[59] bin/godot.linuxbsd.editor.x86_64() [0x466f024] (/home/hugo/Documents/Git/godotengine/godot/./editor/editor_dock_manager.h:46)
[60] bin/godot.linuxbsd.editor.x86_64() [0x980d839] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:919)
[61] bin/godot.linuxbsd.editor.x86_64() [0x98096b3] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:200)
[62] bin/godot.linuxbsd.editor.x86_64() [0x981a7a5] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:2150)
[63] bin/godot.linuxbsd.editor.x86_64() [0x30afc44] (/home/hugo/Documents/Git/godotengine/godot/./core/os/memory.h:112 (discriminator 1))
[64] bin/godot.linuxbsd.editor.x86_64() [0x59aad97] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/node.cpp:241)
[65] bin/godot.linuxbsd.editor.x86_64() [0x2bac353] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/node.h:49 (discriminator 14))
[66] bin/godot.linuxbsd.editor.x86_64() [0x345fb3c] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/canvas_item.h:45)
[67] bin/godot.linuxbsd.editor.x86_64() [0x346049a] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/control.h:48)
[68] bin/godot.linuxbsd.editor.x86_64() [0x3462440] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/container.h:37)
[69] bin/godot.linuxbsd.editor.x86_64() [0x351080e] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/split_container.h:54)
[70] bin/godot.linuxbsd.editor.x86_64() [0x466f024] (/home/hugo/Documents/Git/godotengine/godot/./editor/editor_dock_manager.h:46)
[71] bin/godot.linuxbsd.editor.x86_64() [0x980d839] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:919)
[72] bin/godot.linuxbsd.editor.x86_64() [0x98096b3] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:200)
[73] bin/godot.linuxbsd.editor.x86_64() [0x981a7a5] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:2150)
[74] bin/godot.linuxbsd.editor.x86_64() [0x30afc44] (/home/hugo/Documents/Git/godotengine/godot/./core/os/memory.h:112 (discriminator 1))
[75] bin/godot.linuxbsd.editor.x86_64() [0x59aad97] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/node.cpp:241)
[76] bin/godot.linuxbsd.editor.x86_64() [0x2bac353] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/node.h:49 (discriminator 14))
[77] bin/godot.linuxbsd.editor.x86_64() [0x345fb3c] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/canvas_item.h:45)
[78] bin/godot.linuxbsd.editor.x86_64() [0x346049a] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/control.h:48)
[79] bin/godot.linuxbsd.editor.x86_64() [0x3462440] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/container.h:37)
[80] bin/godot.linuxbsd.editor.x86_64() [0x351080e] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/split_container.h:54)
[81] bin/godot.linuxbsd.editor.x86_64() [0x466f024] (/home/hugo/Documents/Git/godotengine/godot/./editor/editor_dock_manager.h:46)
[82] bin/godot.linuxbsd.editor.x86_64() [0x980d839] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:919)
[83] bin/godot.linuxbsd.editor.x86_64() [0x98096b3] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:200)
[84] bin/godot.linuxbsd.editor.x86_64() [0x981a7a5] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:2150)
[85] bin/godot.linuxbsd.editor.x86_64() [0x30afc44] (/home/hugo/Documents/Git/godotengine/godot/./core/os/memory.h:112 (discriminator 1))
[86] bin/godot.linuxbsd.editor.x86_64() [0x59aad97] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/node.cpp:241)
[87] bin/godot.linuxbsd.editor.x86_64() [0x2bac353] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/node.h:49 (discriminator 14))
[88] bin/godot.linuxbsd.editor.x86_64() [0x345fb3c] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/canvas_item.h:45)
[89] bin/godot.linuxbsd.editor.x86_64() [0x346049a] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/control.h:48)
[90] bin/godot.linuxbsd.editor.x86_64() [0x3462440] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/container.h:37)
[91] bin/godot.linuxbsd.editor.x86_64() [0x3462d9e] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/box_container.h:37)
[92] bin/godot.linuxbsd.editor.x86_64() [0x34644be] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/box_container.h:90)
[93] bin/godot.linuxbsd.editor.x86_64() [0x980d839] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:919)
[94] bin/godot.linuxbsd.editor.x86_64() [0x98096b3] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:200)
[95] bin/godot.linuxbsd.editor.x86_64() [0x981a7a5] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:2150)
[96] bin/godot.linuxbsd.editor.x86_64() [0x30afc44] (/home/hugo/Documents/Git/godotengine/godot/./core/os/memory.h:112 (discriminator 1))
[97] bin/godot.linuxbsd.editor.x86_64() [0x59aad97] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/node.cpp:241)
[98] bin/godot.linuxbsd.editor.x86_64() [0x2bac353] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/node.h:49 (discriminator 14))
[99] bin/godot.linuxbsd.editor.x86_64() [0x345fb3c] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/canvas_item.h:45)
[100] bin/godot.linuxbsd.editor.x86_64() [0x346049a] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/control.h:48)
[101] bin/godot.linuxbsd.editor.x86_64() [0x5e8f7c0] (/home/hugo/Documents/Git/godotengine/godot/./scene/gui/panel.h:37)
[102] bin/godot.linuxbsd.editor.x86_64() [0x980d839] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:919)
[103] bin/godot.linuxbsd.editor.x86_64() [0x98096b3] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:200)
[104] bin/godot.linuxbsd.editor.x86_64() [0x981a7a5] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:2150)
[105] bin/godot.linuxbsd.editor.x86_64() [0x30afc44] (/home/hugo/Documents/Git/godotengine/godot/./core/os/memory.h:112 (discriminator 1))
[106] bin/godot.linuxbsd.editor.x86_64() [0x59aad97] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/node.cpp:241)
[107] bin/godot.linuxbsd.editor.x86_64() [0x2bac353] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/node.h:49 (discriminator 14))
[108] bin/godot.linuxbsd.editor.x86_64() [0x47a2c90] (/home/hugo/Documents/Git/godotengine/godot/./editor/editor_node.h:126)
[109] bin/godot.linuxbsd.editor.x86_64() [0x980d839] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:919)
[110] bin/godot.linuxbsd.editor.x86_64() [0x98096b3] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:200)
[111] bin/godot.linuxbsd.editor.x86_64() [0x981a7a5] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:2150)
[112] bin/godot.linuxbsd.editor.x86_64() [0x30afc44] (/home/hugo/Documents/Git/godotengine/godot/./core/os/memory.h:112 (discriminator 1))
[113] bin/godot.linuxbsd.editor.x86_64() [0x59aad97] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/node.cpp:241)
[114] bin/godot.linuxbsd.editor.x86_64() [0x2bac353] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/node.h:49 (discriminator 14))
[115] bin/godot.linuxbsd.editor.x86_64() [0x350ca98] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/viewport.h:95)
[116] bin/godot.linuxbsd.editor.x86_64() [0x350d416] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/window.h:44)
[117] bin/godot.linuxbsd.editor.x86_64() [0x980d839] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:919)
[118] bin/godot.linuxbsd.editor.x86_64() [0x98096b3] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:200)
[119] bin/godot.linuxbsd.editor.x86_64() [0x981a7a5] (/home/hugo/Documents/Git/godotengine/godot/./core/object/object.cpp:2150)
[120] bin/godot.linuxbsd.editor.x86_64() [0x5afde17] (/home/hugo/Documents/Git/godotengine/godot/./core/os/memory.h:112 (discriminator 1))
[121] bin/godot.linuxbsd.editor.x86_64() [0x5a7900a] (/home/hugo/Documents/Git/godotengine/godot/./scene/main/scene_tree.cpp:646)
[122] bin/godot.linuxbsd.editor.x86_64() [0x28e6ae2] (/home/hugo/Documents/Git/godotengine/godot/platform/linuxbsd/os_linuxbsd.cpp:967)
[123] bin/godot.linuxbsd.editor.x86_64() [0x28dbfd1] (/home/hugo/Documents/Git/godotengine/godot/platform/linuxbsd/godot_linuxbsd.cpp:85)
[124] /lib64/libc.so.6(+0x2814a) [0x7fcc9436514a] (??:0)
[125] /lib64/libc.so.6(__libc_start_main+0x8b) [0x7fcc9436520b] (??:0)
[126] bin/godot.linuxbsd.editor.x86_64() [0x28dbdc5] (??:?)
-- END OF BACKTRACE --
================================================================
[1]    54379 IOT instruction (core dumped)  bin/godot.linuxbsd.editor.x86_64 --path ~/Documents/Godot/test_shader_tooltip

@stuartcarnie
Copy link
Contributor

@Calinou looks very similar to mine on macOS 👍🏻

@stuartcarnie
Copy link
Contributor

If I close the Debugger tab before exiting, it doesn't crash

@kitbdev
Copy link
Contributor Author

kitbdev commented Apr 22, 2024

I cannot reproduce the crash on Windows.
Clearing the object (edit(nullptr)) in predelete was originally done as part of a fix for #26749, but it got another fix so I don't know if it is necessary to keep. We may be able to just replace it with a call to _clear().

@KoBeWi KoBeWi mentioned this pull request Apr 23, 2024
@bruvzg
Copy link
Member

bruvzg commented Apr 23, 2024

I can reproduce the crash on Linux and macOS (and can confirm that re-added removed edit(nullptr) fixes it). The reliable way to reproduce the crash seems to be:

  • Open any project.
  • Create new scene.
  • Save new scene with Control/Command + S.
  • Quit immediately after saving.

@akien-mga
Copy link
Member

For now I reverted the PR to fix the crash. This can be redone with a fix for the regression (and we'll make sure to test on Linux and macOS).

@akien-mga akien-mga changed the title Don't edit current when changing docks Don't edit current when changing docks (reverted) Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Toggling distraction-free mode selects (or opens) a fixed script in the script list
6 participants