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

Godot crashes when building map files which heavily utilize repeated linked duplicates #39

Open
sszczepa opened this issue Nov 11, 2022 · 1 comment

Comments

@sszczepa
Copy link

I've found that Godot crashes when trying to load map files which heavily utilize repeated linked duplicates.

I can replicate this issue by starting a new map file in Trenchbroom, grouping 5 brushes together, and creating a linked duplicate from this group ~300 times (I'm not sure what the exact cut off value is, but this is a safe value to cause the crash).

When trying to build the map in Godot running with the verbose flag, the following error is generated:

Building map res://maps/test01.map
Failed method: Control::_clear_size_warning
Failed method: CanvasItem::_redraw_callback
Failed method: CanvasItem::_redraw_callback

================================================================
Failed method: CanvasItem::_redraw_callback

However, if I select all of the groups in Trenchbroom, right click and select "Ungroup Selected Objects" to break all of the brushes back down, the map will compile fine in Godot.

@codecat
Copy link
Owner

codecat commented Nov 11, 2022

Can you post a .map file that causes the crash? I managed to make a map file that causes the crash.

I'm not entirely sure why exactly it's crashing yet, but it seems like it might have something to do with the amount of nodes in the scene that is created from having groups. Each group will get its own node.

Maybe it would be nice to have an option that all meshes are grouped into the same root node.

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

No branches or pull requests

2 participants