Closed Scream034 closed 1 year ago
Related to https://github.com/godotengine/godot/issues/62006.
Did you upgrade your project from a previous 4.0 alpha?
I'm also starting to see these errors in alpha10, though I didn't right after upgrading from 9.
This code, which only was written in alpha10, will print the error 3-4 times in my project.
extends ControlState
func enter(message := {}) -> void:
super.enter(message)
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
func exit() -> void:
super.exit()
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
If there's a way to get more helpful error messages, I'm happy to investigate further.
I found an easier way to reproduce the same error code in Godot alpha 10 on Win 11 64bits.
To see the same error code in Godot 4.0 alpha 12, change the code in step 2 to:
@onready var _state_machine : Node = _get_state_machine(self)
Still reproducible v4.0.alpha.custom_build [b3bd08207]
extends Node
var test := _get_value()
func _get_value() -> int:
return 5
extends Node var test := _get_value() func _get_value() -> int: return 5
See #58542 and #63438.
I also get Parser bug (please report): tried to assign unset node without an identifier.
when I do the following in 4.0 alpha 10 or later (earlier versions not tested):
.
at the end.extends Node
var test_arr = [
{"a": "1"}
]
var test_val = test_arr[0]
Seeing this as early as alpha14 WHILE writing the script in question. Once I'm done writing, the error goes away. Still happens in beta 1 (it did when I was upgrading to account for the API changes)
For me, godot crashes slightly after this. Not sure if its related?
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.0.beta4.official (e6751549cf7247965d1744b8c464f5e901006f21)
[1] /usr/lib/libc.so.6(+0x38a00) [0x7f1d63908a00] (??:0)
[2] godot4() [0x1122d36] (??:0)
[3] godot4() [0x11e5d50] (??:0)
[4] godot4() [0x11e852c] (??:0)
[5] godot4() [0x10f1f6d] (??:0)
[6] godot4() [0x45cf3b0] (??:0)
[7] godot4() [0x107dc18] (??:0)
[8] godot4() [0x103f78b] (??:0)
[9] godot4() [0x424c5e8] (??:0)
[10] godot4() [0x426eb5f] (??:0)
[11] godot4() [0x14442e0] (??:0)
[12] godot4() [0x1444c5a] (??:0)
[13] godot4() [0x105aa25] (??:0)
[14] godot4() [0x106019b] (??:0)
[15] godot4() [0x4245ea4] (??:0)
[16] godot4() [0x29209ce] (??:0)
[17] godot4() [0x2965f4e] (??:0)
[18] godot4() [0xe5da65] (??:0)
[19] godot4() [0xd96fa3] (??:0)
[20] /usr/lib/libc.so.6(+0x23290) [0x7f1d638f3290] (??:0)
[21] /usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7f1d638f334a] (??:0)
[22] godot4() [0xdb87de] (??:0)
Ill see if i can get my hands on a debug build.
I tried to reproduce numerous examples here, but couldn't reproduce on master (fcba87e). I suggest to close this issue.
Godot version
4.0.alpha10
System information
Windows10, GPU: AMD R7 200 SERIES(250)
Issue description
only error: modules/gdscript/gdscript_analyzer.cpp:656 - Parser bug (please report): tried to assign unset node without an identifier.
Steps to reproduce
Minimal reproduction project
Code is writed already