Godot: Project destroyed on system crash

Created on 22 Aug 2019  路  4Comments  路  Source: godotengine/godot

Godot 3.1.1.stable
Windows 7
ATI Radeon HD 4870
Intel Core 2 Duo E6400

My system crashed while editing a project, and now my project.godot, all my scenes (including an already forgotten tileset.tscn), and one of the scripts, are all like this:

0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
# repeated many more lines

The script that was detroyed was a tool script, so it's possible that this was related to it? My system crashes on occasion, but I never had a project destroyed by it. I also rarely use tool scripts, so I'm connecting the two things, though maybe they're not related. That script exported some vars and updated a Sprite2D and a CollisionPolygon2D in real time in the editor.

Nevermind that, it still happened more times while no using tool scripts.


EDIT: I didn't lose a lot from this. This happened in a prototype I started just a few hours ago. I only had 6 simple scenes. I just thought I ought to bring it up here, in case this is related to some obscure problem in Godot and there's something that can be done about it.

discussion windows editor

Most helpful comment

Yea, I was about to edit the OP to say that I do use backups, but this happened in a prototype I was making since just a few hours ago. Not a lot was lost either. I only had 6 simple scenes in total. I just thought I ought to bring it up here, in case there's anything that can be done to prevent it from happening.

All 4 comments

Not sure if this is a Godot problem. I've had a drive unplugged badly, resulting in a list of Godot issues I had on it to look like so:
image

That being said, if there is something we might do to lessen the damage of such crashes without impacting performance much, it might be a good idea to do it.
(also, make backups / use a VCS, you never know when a crash or misbehavor by some program will happen)

Yea, I was about to edit the OP to say that I do use backups, but this happened in a prototype I was making since just a few hours ago. Not a lot was lost either. I only had 6 simple scenes in total. I just thought I ought to bring it up here, in case there's anything that can be done to prevent it from happening.

I realized this is a bigger problem than I had expected. Since my last post I had my project crash my system quite a few more times (still haven't figured out why -- Godot 2 never does it), and I just had a power outage a few minutes ago while working on another new project, and it too got almost entirely destroyed.

What I realized is that even if you're using backups this is still a problem: you're likely not committing changes every five minutes, and you might lose your incomplete or experimental progress (any progress that there's no reason to commit yet) of several hours, maybe even several days, because of this.

I only started using Godot 3 recently, and this never happened to me in Godot 2 (which I've been using since 2016). So as far as I can tell, this is something to do with how Godot 3 handles files. Seems as if Godot is keeping files open after reading/writing, or something of the sort. At least that's my best not-really-informed guess.

I never had this kind of thing happen in any other apps either, by the way.

Haven't been having these problems on 3.2 alpha 3 so far. No system crashes while using godot, and no corrupt files from the last power outage a few days ago. Maybe it got fixed. :)

EDIT: Still haven't had this issue ever again. Godot 3.2 rc4 is just out a few hours ago from me writing this. I haven't tried it yet, and I'm still on rc1 at the moment, but this issue really seems pretty much gone.

Not sure I should close this or leave it to someone else.

Was this page helpful?
0 / 5 - 0 ratings