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

Game crashes when resizing UI to exact size of Container #83789

Open
AsperTheDog opened this issue Oct 22, 2023 · 3 comments
Open

Game crashes when resizing UI to exact size of Container #83789

AsperTheDog opened this issue Oct 22, 2023 · 3 comments

Comments

@AsperTheDog
Copy link

Godot version

v4.1.2.stable.official [399c9dc]

System information

Godot v4.1.2.stable - Windows 10.0.22000 - Vulkan (Compatibility) - NVIDIA GeForce RTX 3070 Ti (NVIDIA; 31.0.15.3758) - Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (8 Threads)

Issue description

Whenever I resize the game, if the size of the window matches the size of a specific container the whole computer freezes for a moment, then a "message out of memory" error is displayed in the terminal and the game crashes (Infinite loop somewhere that causes a stack overflow?).

2023-10-22.19-23-40.mp4

Steps to reproduce

  1. Open sample project
  2. Run UI scene (Scenes/UI.tscn)
  3. Slowly shrink window vertically
  4. See how the computer freezes for a moment, then the game becomes unresponsive, then it crashes.

Minimal reproduction project

MRP.zip

@KoBeWi
Copy link
Member

KoBeWi commented Oct 22, 2023

This is a known issue, check the description of expand_mode in TextureRect.
Avoid using fit modes with AspectRatioContainer.

@AsperTheDog
Copy link
Author

AsperTheDog commented Oct 23, 2023

I tried removing the AspectRatioContainer and the problem still persists so it probably still breaks either just with the margin container or the panel. Just avoid fit modes in general

@bitsawer
Copy link
Member

bitsawer commented Oct 23, 2023

This could also be related to #81878. The TextureRect issue is tracked here I think: #75713 (or #73071).

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

No branches or pull requests

4 participants