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

Dock windows are empty if they were hidden when loading a layout that make them floating #80748

Closed
mieldepoche opened this issue Aug 18, 2023 · 5 comments · Fixed by #82742
Closed

Comments

@mieldepoche
Copy link
Contributor

mieldepoche commented Aug 18, 2023

Godot version

4.1.1

System information

linux

Issue description

If a dock isn't visible in the editor (in an unshown tab), loading an editor layout that undocks it will result in this behavior:

simplescreenrecorder-2023-08-18_08.58.08.webm

This also happen sometimes when the docks are visible before undocking, but I can't reproduce it 🙃

Steps to reproduce

See video above:

  1. save a layout with a floating dock,
  2. restore the default layout or manually close the dock window,
  3. hide this particular dock,
  4. load the previously created layout.

Minimal reproduction project

Here's the editor layout I use in the clip, though it needs to be recreated locally because of monitors and coordinates etc.:

append to ~/.config/godot/editor_layouts.cfg

[test]

dock_1_selected_tab_idx=0
dock_2_selected_tab_idx=0
dock_3_selected_tab_idx=0
dock_4_selected_tab_idx=0
dock_5_selected_tab_idx=0
dock_6_selected_tab_idx=0
dock_7_selected_tab_idx=0
dock_8_selected_tab_idx=0
dock_floating={
"FileSystem": {
"window_rect": Rect2i(2669, 319, 228, 302),
"window_screen": 0,
"window_screen_rect": Rect2i(1990, 27, 2490, 1413)
},
"Inspector": {
"window_rect": Rect2i(2927, 323, 270, 300),
"window_screen": 0,
"window_screen_rect": Rect2i(1990, 27, 2490, 1413)
},
"Scene": {
"window_rect": Rect2i(2388, 315, 252, 300),
"window_screen": 0,
"window_screen_rect": Rect2i(1990, 27, 2490, 1413)
}
}
dock_split_2=0
dock_hsplit_1=0
dock_hsplit_2=337
dock_hsplit_3=-337
dock_hsplit_4=0
dock_filesystem_split=0
dock_filesystem_display_mode=0
dock_filesystem_file_sort=0
dock_filesystem_file_list_display_mode=1
dock_filesystem_selected_paths=PackedStringArray("res://")
dock_filesystem_uncollapsed_paths=PackedStringArray("res://")
dock_3="Import,Scene"
dock_5="Node,History,Inspector"
dock_4="FileSystem"
dock_split_3=0
@moritztim
Copy link

whenever I open a godot project that I had previously used with floating windows, the node window is always blank. I have made a layout that keeps the node window attatched and only if I then manually make it floating does it work.

@ColtonRamos
Copy link

ColtonRamos commented Sep 22, 2023

I can confirm that this issue or something very similar occurs every time I reopen my project with floating/undocked windows. My current workaround is to close and reopen/reposition those windows, which is really annoying.

edit: adding a pic of what my project looks like on startup before closing/reopening windows.
image

@ColtonRamos
Copy link

ColtonRamos commented Sep 29, 2023

After reading this post again, I found a quicker workaround: Set up a "fixer" editor layout by arranging all the windows I want undocked in a new layout by going to Editor => Editor Layout => Save Layout. Then I flip to the "fixer" before I flip to my actual multi-monitor layout.

However, this doesn't work every time. About 1/3 of the time when I do this, Godot hard crashes to desktop (Windows 11, Godot v4.1.1.stable.mono.official). Another 1/3 of the time, the windows are still blank and I have to do it again.

@moritztim
Copy link

That's what I've been doing too

@mieldepoche
Copy link
Contributor Author

mieldepoche commented Oct 15, 2023

This still happened at least once after #82742 (v4.2.beta.custom_build [a574c02]).
The exact same behavior, where the dock that was hidden showed up empty when detached.
Restarting the editor fixed it the time it happened (and I didn't manage to make it happen again...).

Edit: after further testing, this may have been due to corrupted editor layouts 🤔. It's the only thing I can think of considering I couldn't reproduce it again now.

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

Successfully merging a pull request may close this issue.

5 participants