Gut
Gut copied to clipboard
Index out of bounds crashes on Godot 4.x and Gut 9.1
Using Gut 9.1.0 in our CI pipeline
Running into this issue where it is not picking up classes defined in addons/ as well as an index out of bounds error.
I found the index error in a few old issues but it looks like it was resolved years ago on 3.x
I don't know if these are Gut issues or Godot issues, so starting here :)
Archive: Godot_v4.1.3-stable_linux.x86_64.zip
inflating: Godot_v4.1.3-stable_linux.x86_64
Running GUT tests using params:
-> -gdir=res://Scripts/ -gconfig=res://.gutconfig.json -gprefix=test_ -gsuffix=.gd
libfontconfig.so.1: cannot open shared object file: No such file or directory
Godot Engine v4.1.3.stable.official.f06b6836a - https://godotengine.org/
Debugger Break, Reason: 'Parser Error: Identifier "Config" not declared in the current scope.'
*Frame 0 - res://addons/logger/logger.gd:27 in function ''
Enter "help" for assistance.
debug>
================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.1.3.stable.official (f06b6836a9ecfd0e6ec96d8bcf0fe9c9bc10dcbf)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
ERROR: FATAL: Index p_index = 1 is out of bounds (size() = 0).
at: get (./core/templates/cowdata.h:155)
================================================================
handle_crash: Program crashed with signal 4
Engine version: Godot Engine v4.1.3.stable.official (f06b6836a9ecfd0e6ec96d8bcf0fe9c9bc10dcbf)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
ERROR: FATAL: Index p_index = 1 is out of bounds (size() = 0).
at: get (./core/templates/cowdata.h:155)
One or more test have failed
Is the logger addon enabled when running the pipeline?
Closing this out. This sounds similar to issues others have had with GutUtils
not being defined. They fixed it by loading the project once before running tests by doing godot --headless --import
.
sorry I hadn't gotten back to this again yet - will do some testing at some point and open a new issue if I have more problems