godot icon indicating copy to clipboard operation
godot copied to clipboard

`Mismatch in extents tracking stack` spam with a hanging `const` keyword

Open evilenzo opened this issue 2 years ago • 4 comments

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

evilenzo avatar Apr 14 '23 10:04 evilenzo

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.

YuriSizov avatar Apr 14 '23 10:04 YuriSizov

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

evilenzo avatar Apr 16 '23 15:04 evilenzo

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 image

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.

Diskane avatar Jul 07 '23 15:07 Diskane

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.

YuriSizov avatar Jul 07 '23 16:07 YuriSizov

For me it happens too, when i write the prefix "const" into an empty line.

Drachenbauer avatar Sep 17 '23 18:09 Drachenbauer

@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).

YuriSizov avatar Sep 19 '23 12:09 YuriSizov