Why is my Godot crashing upon playing a certain scene?

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

I’ve been trying to learn godot by myself, recently I tried to connect a shader in a tile map to another node but I’m still having trouble. Anyway, I don’t know what recent change has caused this, but now whenever I try to play my scene, the console spits out repeating errors and Godot crashes. Can someone tell me what it means?

The error reads: Can’t use get_node() with absolute paths from outside the active scene tree.

imgur link

Is strange, looks like the scene got corrupted for some reason (maybe a tool/plugin?), look at the scene file with a text editor to find references of that absolute path mentioned there.

eons | 2019-06-17 17:53

:bust_in_silhouette: Reply From: Dooowy.

From what the Console says. You need to load the resource Your GDScript file locally instead of just using get_node(). Add get_tree()

:bust_in_silhouette: Reply From: Argysaur

Turns out that within my script-less tilemap was a tileset which had a script attached to it which didn’t exist. Even trying to open this script from the inspector crashed Godot. Not sure how this happened, maybe a bug, but clearing the script field has made my scene run as normal again.