godot
godot copied to clipboard
`Mismatch in extents tracking stack` spam with a hanging `const` keyword
Godot version
4.0.2.stable
System information
Windows 10
Issue description
Engine keeps spamming me this

Steps to reproduce
No steps, issue happens from time to time absolutely randomly
Minimal reproduction project
N/A
Hey there! Without an example of a script that causes this we can't really investigate this. You can help the process by reducing your project until you can identify which part of it causes the error spam. That's what you can upload as an MRP.
You can help the process by reducing your project until you can identify which part of it causes the error spam
Well, the problem is that this issue happened randomly couple times and my code changed since these moments so I don't really have an example that will immediatly trigger this issue. And that's ofc sad. But I can upload all the scripts that the project had at the moment the issue happened. Luckily there are only 3 small scripts since it's basic learn project. P.S. Problem happened in chunk.gd script that was attached to MeshInstance3D with ArrayMesh created in it. Other 2 scripts wasn't attached to anything. Hope this helps! mrp.zip
Hey I got the same bug. The issue seems to arise when writing the const keyword.
Godot version
4.1.stable
System Information
Windows 11
Issue description
The parser is writing parser bug errors when the const keyword is written by itself no matter the scope
Steps to reproduce
Node3D + a new script attached to it
Minimal reproduction project
N/A
I also tried it on my Android 11 smartphone with a Node2D and godot 4.0.3.stable, same problem.
I can confirm, that hanging const on a line causes a bunch of following lines being printed:
modules/gdscript/gdscript_parser.cpp:4337 - Parser bug: Mismatch in extents tracking stack.
The line number is correct for 4.1-stable, it's in GDScriptParser::complete_extents(Node *p_node). Original report also had other issues printed, but it's unclear how that can be achieved. It's also likely that this other issue has been fixed already.
For me it happens too, when i write the prefix "const" into an empty line.
@Drachenbauer The issue has been fixed already and the fix will be available in future versions of the engine (4.1.2 and 4.2).