–1 vote

I am working on a 2D action platformer. Periodically on player death, my game crashes and I am met with an error:

enter image description here

The only error I see in the editor is a _get_socket_error, which I believe just indicates that debugger disconnected from the project. Nothing informative there.

enter image description here

The crash happens very infrequently, but always (or almost always) on player death. I cannot discern a pattern of what causes it, however. It has been plaguing me for months.

I am able to open Visual Studio's just-in-time debugger from the error pictured above. This is what I see:

enter image description here
https://postimg.cc/cgc2S00c

enter image description here
https://postimg.cc/qgC8tQ98

Can anyone recommend how to go about debugging my project using the information present in the Visual Studio debugger?

I am at a loss as to how to debug, since I cannot reliable reproduce the issue. I am starting to feel desperate for a solution and would genuinely appreciate any help at all.

I am not very familiar with debugging or using Visual Studio, but I would be happy to learn if it could help me purge this periodic crash.

I've read up on debugging for heap corruption in general, but none of it seemed to help. I've been searching for memory leaks in my code, but I don't see any, and both static and dynamic memory usage seems consistent when I watch it using Godot's built-in debugging monitors.

in Engine by (1,547 points)
edited by

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.