Project can't play any scenes

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

I started a small project today and after a few hours of work, my project won’t play any scenes anymore.

When I try to play a scene, the editor acts like it should (ie the play button switches to a pause button, reload scene button appears, ect) but nothing else happens. I get nothing in the error log, I have a print statement in the ready function of the root node that wont print to output, no window shows up, and my computer fans kick into overdrive (obviously trying to run something. I initially thought that I had somehow written an infinite loop somewhere that was hanging up the scene).

I tried running the project from the terminal and the issue remained still with no output whatsoever. I tried creating an empty Node2D scene without any scripts attached and that also wouldn’t play. I tried running other projects and they all worked. And nothing in my project.godot file has changed since my first commit. I’m sure i’ve done something stupid but I just can’t for the life of me figure out what it is.

here’s the link to my repo: my project’s repository

I’m running arch linux with gnome. not sure if that’s relevant to this issue.

Thank you all so much in advance for reading and trying to help me solve my issue. If there are anymore details I can provide, let me know. also if there’s a better way to share the project on this forum rather than sharing the github repo, let me know! Thanks so much.

I think there’s something wrong with your computer, or the Godot Engine on your computer itself.
I downloaded your project, and everything seems fine, and the project runs properly and all. Maybe try deleting Godot and re-installing it?
Or maybe you didn’t activate enough permissions for Godot to run properly.
Point is, your project runs properly on my computer. Not sure what’s wrong with yours.

TheJokingJack | 2021-04-12 20:22

Strange indeed. Can you try with a fresh project.godot file and a simple scene? Did you try moving your ~/.godot/ and ~/.local/share/godot/ folders? Could try that.
In the console, does it even get to the point where it starts a new process to run your project (something like Running: /path/to/godot --path … --remote-debug …)?

Hoimar | 2021-04-13 18:58

Thanks for the reply! Im pretty sure a new process began but I wasn’t getting any output at all in the terminal.

I had planned on switching to KDE Plasma anyway so I took this as an opportunity to reinstall arch. Problem… solved?

I’ll try moving around the ~/.godot and ~/.local/share/godot dirs if something like this ever happens again?

Thanks so much

reedt3 | 2021-04-15 16:45

:bust_in_silhouette: Reply From: kidandcat

EDIT: Finally found the solution. As incredible as it may sound, after experimenting with the project.godot file, just changing the project name fixed it

I had:

[application]

config/name="SakuraPlatformer"
run/main_scene="res://Menu.tscn"
config/icon="res://icon.png"

And I changed it to:

[application]

config/name="sakura"
run/main_scene="res://Menu.tscn"
config/icon="res://icon.png"

That fixed the issue.
(The project was working for a week, I’m not sure what changed that broke it)


I’ve got this exact same issue on my macbook pro m1, I haven’t found any godot folder in my home nor in .local/share

It just happens with a specific project. The project.godot file looks pretty common. Sadly I don’t have initialized a git repo, but anyway I’ve trying to run standalone scenes, and disabling all autoloads, and it still stucks.

I’m going to view if the child process is running or not, and also I’ll be copying some files from other working projects and post an update.

PD: I tried reinstalling godot unsuccesfully

This is a macos “sample” of the hanged child process: godot-hang-mac - Pastebin.com

The child process is launched, it suddently takes 100% CPU and in a few seconds it hangs