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

C# - GC.Collect causes the game to crash #67460

Closed
Xyotic opened this issue Oct 15, 2022 · 4 comments
Closed

C# - GC.Collect causes the game to crash #67460

Xyotic opened this issue Oct 15, 2022 · 4 comments

Comments

@Xyotic
Copy link

Xyotic commented Oct 15, 2022

Godot version

4.0 beta 3

System information

Windows 10, RTX2080 Vulkan

Issue description

Calling "GC.Collect()" causes the game to crash. The window freezes fore a second and closes.
There's no error message thrown inside the editor nor in VisualStudio while debugging.

"GC.Collect()" works in 3.x

Steps to reproduce

Call GC.Collect() from code.

Minimal reproduction project

No response

@raulsntos
Copy link
Member

@Xyotic Please upload a minimal reproduction project to make this easier to troubleshoot.

@raulsntos
Copy link
Member

I opened PR #69194 that may fix this issue, can you try it out to confirm?

Linux users can download the artifact built by CI: https://github.com/godotengine/godot/suites/9514119809/artifacts/451640372
For other platforms, you'll have to build Godot yourself.

@neikeq
Copy link
Contributor

neikeq commented Dec 10, 2022

Can you check if this is fixed in beta 8?

@Xyotic
Copy link
Author

Xyotic commented Dec 12, 2022

I tried my old code with GC.Collect() and it seems to be stable now. No random crashes anymore.
Closing this as it seems to be fixed.

Thanks for the awesome work. 👍

@Xyotic Xyotic closed this as completed Dec 12, 2022
@akien-mga akien-mga added this to the 4.0 milestone Dec 12, 2022
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