0 votes

Hello, I'm making a project using Godot 4.

When I run the project via the editor (not in exported form), it runs fine.
However when exported I get a whole list of errors.
This is the log:


Godot Engine v4.0.beta1.mono.official.4ba934bf3 - https://godotengine.org
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perfstreamparanoid=0
Vulkan API 1.2.0 - Using Vulkan Device #0: Intel - Intel(R) UHD Graphics 630 (CML GT2)

ERROR: .NET: Failed to load hostfxr
at: initialize (modules/mono/monogd/gdmono.cpp:394)
SCRIPT ERROR: Parse Error: Preload file "res://videotrack.tscn" does not exist.
at: GDScript::reload (res://Scripts/editor.gd:3)
SCRIPT ERROR: Parse Error: Preload file "res://audio
track.tscn" does not exist.
at: GDScript::reload (res://Scripts/editor.gd:4)
ERROR: Parser bug (please report): tried to assign unset node without an identifier.
at: resolveclassinterface (modules/gdscript/gdscriptanalyzer.cpp:656)
SCRIPT ERROR: Parse Error: Preload file "res://file.tscn" does not exist.
at: GDScript::reload (res://Scripts/file-manager.gd:4)
ERROR: Parser bug (please report): tried to assign unset node without an identifier.
at: resolve
classinterface (modules/gdscript/gdscriptanalyzer.cpp:656)
SCRIPT ERROR: Parse Error: Preload file "res://sample.tscn" does not exist.
at: GDScript::reload (res://Scripts/file-drag-manager.gd:3)
ERROR: Signal 'mouseentered' is already connected to given callable 'Control(custom-button.gd)::onmousehover' in that object.
at: connect (core/object/object.cpp:1269)
ERROR: Signal 'mouse
exited' is already connected to given callable 'Control(custom-button.gd)::onmouseunhover' in that object.
at: connect (core/object/object.cpp:1269)
ERROR: Signal 'mouseentered' is already connected to given callable 'Control(custom-button.gd)::onmousehover' in that object.
at: connect (core/object/object.cpp:1269)
ERROR: Signal 'mouse
exited' is already connected to given callable 'Control(custom-button.gd)::onmouseunhover' in that object.
at: connect (core/object/object.cpp:1269)
ERROR: Signal 'mouseentered' is already connected to given callable 'Control(custom-button.gd)::onmousehover' in that object.
at: connect (core/object/object.cpp:1269)
ERROR: Signal 'mouse
exited' is already connected to given callable 'Control(custom-button.gd)::onmouseunhover' in that object.
at: connect (core/object/object.cpp:1269)
ERROR: Signal 'mouseentered' is already connected to given callable 'Control(custom-button-fade.gd)::onmousehover' in that object.
at: connect (core/object/object.cpp:1269)
ERROR: Signal 'mouse
exited' is already connected to given callable 'Control(custom-button-fade.gd)::onmouseunhover' in that object.
at: connect (core/object/object.cpp:1269)
ERROR: Signal 'mouseentered' is already connected to given callable 'Control(custom-button-fade.gd)::onmousehover' in that object.
at: connect (core/object/object.cpp:1269)
ERROR: Signal 'mouse
exited' is already connected to given callable 'Control(custom-button-fade.gd)::onmouseunhover' in that object.
at: connect (core/object/object.cpp:1269)


In the exported version, nothing seems to happen when GUI buttons are clicked, while in the unexported mode, everything works.

As seen in the log, no signals seem to get connected properly, these are connected via the Godot 4 GUI, not via script. Just to mention that.

When a GUI button is clicked in the exported project, i get this error:


ERROR: Error calling from signal 'pressed' to callable: 'Node(editor.gd)::onaddvideotrack': Method not found..
at: emit
signalp (core/object/object.cpp:1057)


This button is a custom made one, but it does work in the unexported version.
'editor.gd' by the way is a script i made.

This project is fully written in GDScript.

Can someone please help me to fix this issue?

(My machine runs Fedora Linux 36)

Godot version v4.0.beta1.mono.official [4ba934bf3]
in Engine by (30 points)
edited by

1 Answer

0 votes
Best answer

I fixed it. Apparently, it wasn't about the errors. It was about using preload() in Godot 4. As said in the announcement page of Godot 4, preload() doesn't work yet in this version.

I was using preload to spawn an object when the button was pressed. Since preload() fails, there was nothing to spawn. Thus this didn't work.

Just replacing preload() with load() fixed everything.

So don't use preload() in Godot 4 beta!!!!

by (30 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.