Editor breaks after a Git Commit.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Chao Yu

Think I encountered an extremely strange bug.

Yesterday, after I finished coding a feature of my game and tested thoroughly without any error messages in the output log, I did a Git Commit and closed the project.

However, today, without doing any modification, I opened the project and the output log became flooded immediately with the following error message.

core/rid.h:165 - Condition ' !id_map.has(p_rid.get_data()) ' is true. returned: __null

Aside from that, the texts of the editor tabs became unreadable bizarre squares. And the scene is not editable. (I can still run it though).

Screenshots of the output log:

Screenshot 1

Screenshot 2

Screenshot of the broken editor.

Screenshot 3

The weirder thing is, after I Git Checkouted my previous commit → reopened the project (errors were gone in this step) → closed the project → re-Git Checkouted the latest commit. The errors were all gone. (So I guess the error has nothing to do with my source code).

Since I’m not quite familiar with Godot’s source code and the “behind the scenes” of Git, I wonder if there’s any way to solve this, or is it a bug of Godot? (Should I file this as an Issue on GitHub?)

P.S. I’m running Godot 3.0.2 on macOS 10.13.1

:bust_in_silhouette: Reply From: Chao Yu

So I somehow tackled this problem without knowing why:

I simply git clone the project from the remote repo to a brand new folder, and all the errors are gone.