Why might my game sometimes crash my PC?

Check Event Viewer Program, just type in your windows’ event viewer, then check the Windows Logs, then System tab. check what the errors said there

Did you build your own custom export template?

Hook up a second monitor and run task manager there. Does that also freeze up or does it keep updating?

I’d be down to try this but I don’t have a 2nd monitor :sweat_smile:

For the time being, I’ve just made a singleton that redeclairs the default quit behavior:

extends Node

func _notification(what):
	if what == NOTIFICATION_WM_CLOSE_REQUEST:
		get_tree().quit()

Then in Project Settings > General > Application > Config I’ve set auto_accept_quit to false

This should technically have no effect on anything, but I’ve yet to hit the crash - so maybe it was something to do with the quit behavior?

It’s a bit of a mess to close out as solved since I’ve yet to figure out what the crash is, but for the time being I’ll leave a breakpoint in the close request and if I don’t hit any errors for a while then this might have actually fixed it.

EDIT: I haven’t hit the crash since making this change, so either I’ve been getting incredibly lucky, or something must be going on with the default quit behavior that gets fixed by overwriting it.

I’ll re-open this if I ever hit the crash again, but for now I’ll mark this as a solution as it did seem to fix my problem.

Ahh, that’s a shame! Maybe you have a TV? Or, hmm… loan one from a friend? :sweat_smile:

TBH multiple monitors for development are really nice, so maybe consider getting one anyway? :sweat_smile:

Another tack may be to try your code on another machine with the same OS.
Perhaps a friend or what have you.
This would either rule out code bug or prove it true.

How about testing it on a virtual mechine?

Or

Let’s just wear tin foil hats

Lol I drew it using mouse

Also is your game on fullscreen mode?
If I had a error in the godot engine,the game freezes and the worst thing is,if it’s on fullscreen I just have to completely shut down the laptop cuz it will eat every input!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.