Running --test after a fresh repository clone, and scons build crashes after a few tests run.
documentationneeds testingcrashtopic:tests
### Tested versions
-Reproducible in version 4.7
### System information
Windows 11 25H2 Intel evo i7
### Issue description
I did a completely clean re-clone of the master repository at https://github.com/godotengine/godot.git. Once completed, I compiled the program using the command chain:
scons platform=windows tests=yes dev_mode=yes
Once compilation was completed, I cd into the /bin directory and ran the following:
godot.windows.editor.x86_64.exe --test
I then received the following output (shown at the bottom).
My previous build had been fine, but I walked away from it for a few days and began having problems upon return. It looks like I'm having issues with the fresh build as well. I wasn't sure if anyone ran into something similar.
Am I somehow pulling in some cutting edge features rather than only stable version code?
```
C:\Users\...\source\repos\Godot\bin>[doctest] doctest version is "2.4.12"
[doctest] run with "--help" for options
Could not load project settings.
ERROR: Could not open specified test directory.
at: (modules\gdscript\tests\gdscript_test_runner.cpp:340)
===============================================================================
.\modules/gdscript/tests/gdscript_test_runner_suite.h(62):
TEST SUITE: [Modules][GDScript]
TEST CASE: Script compilation and runtime
modules\gdscript\tests\gdscript_test_runner.cpp(195): FATAL ERROR: An error occurred while making the tests.
.\modules/gdscript/tests/gdscript_test_runner_suite.h(68): FATAL ERROR: REQUIRE( fail_count == 0 ) is NOT correct!
values: REQUIRE( -1 == 0 )
logged: Make sure `*.out` files have expected results.
All GDScript tests should pass.
===============================================================================
.\modules/gdscript/tests/gdscript_test_runner_suite.h(95):
TEST CASE: [Modules][GDScript] Loading keeps ResourceCache and GDScriptCache in sync
.\modules/gdscript/tests/gdscript_test_runner_suite.h(111): ERROR: CHECK( ResourceCache::has(path) ) is NOT correct!
values: CHECK( false )
.\modules/gdscript/tests/gdscript_test_runner_suite.h(113): ERROR: CHECK( TestGDScriptCacheAccessor::has_full(path) ) is NOT correct!
values: CHECK( false )
Could not load project settings.
===============================================================================
.\modules/gdscript/tests/test_completion.h(262):
TEST SUITE: [Modules][GDScript][Completion]
TEST CASE: [Editor] Check suggestion list
.\modules/gdscript/tests/test_completion.h(230): FATAL ERROR: Invalid test directory.
.\modules/gdscript/tests/test_completion.h(88): FATAL ERROR: Invalid test directory.
===============================================================================
.\modules/gdscript/tests/test_lsp.h(327):
TEST SUITE: [Modules][GDScript][LSP][Editor]
TEST CASE: [workspace][resolve_symbol]
.\modules/gdscript/tests/test_lsp.h(99): FATAL ERROR: REQUIRE( err == OK ) is NOT correct!
values: REQUIRE( 31 == 0 )
logged: Could not open specified root directory
================================================================
CrashHandlerException: Program crashed
Engine version: Godot Engine v4.8.dev.custom_build (eda2a482e9ce82e4056cfffae0ea98c1954605a1)
Dumping the backtrace. Please include this when reporting the bug on: https://github.com/godotengine/godot/issues
Load address: 7ff634f00000
[0] 7ff6350f9311 (main+1f9311) - <couldn't map PC to fn name>
[1] 7ff6350f9311 (main+1f9311) - <couldn't map PC to fn name>
[2] 7ff63509460c (main+19460c) - <couldn't map PC to fn name>
[3] 7ff635ac0f95 (main+bc0f95) - <couldn't map PC to fn name>
[4] 7ff635114064 (main+214064) - <couldn't map PC to fn name>
[5] 7ff63503adbc (main+13adbc) - <couldn't map PC to fn name>
[6] 7ff634ffbcca (main+fbcca) - <couldn't map PC to fn name>
[7] 7ff634ffbb67 (main+fbb67) - <couldn't map PC to fn name>
[8] 7ff634ffbdd9 (main+fbdd9) - <couldn't map PC to fn name>
[9] 7ff63b69ab09 (main+679ab09) - <couldn't map PC to fn name>
[10] 7ffabdd5e957 (kernel32.dll+2e957) - <couldn't map PC to fn name>
-- END OF C++ BACKTRACE --
================================================================
.\modules/gdscript/tests/test_lsp.h(327): FATAL ERROR: test case CRASHED: SIGSEGV - Segmentation violation signal
===============================================================================
[doctest] test cases: 9 | 5 passed | 4 failed | 1405 skipped
[doctest] assertions: 142 | 135 passed | 7 failed |
[doctest] Status: FAILURE!
ERROR: BUG: Unreferenced static string to 0: _skip_save_
at: StringName::unref (core\string\string_name.cpp:118)
ERROR: BUG: Unreferenced static string to 0: ..
at: StringName::unref (core\string\string_name.cpp:118)
ERROR: BUG: Unreferenced static string to 0: .
at: StringName::unref (core\string\string_name.cpp:118)
ERROR: BUG: Unreferenced static string to 0: _request_gizmo_for_id
at: StringName::unref (core\string\string_name.cpp:118)
ERROR: Pages in use exist at exit in PagedAllocator: union VariantPools::BucketLarge
at: PagedAllocator<union VariantPools::BucketLarge,1,4096>::~PagedAllocator (.\core/templates/paged_allocator.h:170)
ERROR: Pages in use exist at exit in PagedAllocator: union VariantPools::BucketMedium
at: PagedAllocator<union VariantPools::BucketMedium,1,4096>::~PagedAllocator (.\core/templates/paged_allocator.h:170)
ERROR: Pages in use exist at exit in PagedAllocator: union VariantPools::BucketSmall
at: PagedAllocator<union VariantPools::BucketSmall,1,4096>::~PagedAllocator (.\core/templates/paged_allocator.h:170)
ERROR: BUG: Unreferenced static string to 0: _unhandled_key_input
at: StringName::unref (core\string\string_name.cpp:118)
ERROR: BUG: Unreferenced static string to 0: _unhandled_input
at: StringName::unref (core\string\string_name.cpp:118)
ERROR: BUG: Unreferenced static string to 0: _shortcut_input
at: StringName::unref (core\string\string_name.cpp:118)
ERROR: BUG: Unreferenced static string to 0: _input
at: StringName::unref (core\string\string_name.cpp:118)
ERROR: BUG: Unreferenced static string to 0: _exit_tree
at: StringName::unref (core\string\string_name.cpp:118)
ERROR: BUG: Unreferenced static string to 0: _enter_tree
at: StringName::unref (core\string\string_name.cpp:118)
ERROR: BUG: Unreferenced static string to 0: _finalize
at: StringName::unref (core\string\string_name.cpp:118)
ERROR: BUG: Unreferenced static string to 0: _process
at: StringName::unref (core\string\string_name.cpp:118)
ERROR: BUG: Unreferenced static string to 0: _physics_process
at: StringName::unref (core\string\string_name.cpp:118)
ERROR: BUG: Unreferenced static string to 0: _initialize
at: StringName::unref (core\string\string_name.cpp:118)
ERROR: BUG: Unreferenced static string to 0: _recognize_path
at: StringName::unref (core\string\string_name.cpp:118)
ERROR: BUG: Unreferenced static string to 0: _set_path_cache
at: StringName::unref (core\string\string_name.cpp:118)
ERROR: Pages in use exist at exit in PagedAllocator: struct StringName::_Data
at: PagedAllocator<struct StringName::_Data,0,4096>::~PagedAllocator (.\core/templates/paged_allocator.h:170)
```
### Steps to reproduce
N/A. The reproducible steps were described previously as the repository is cloned, built and subsequently runs into issues trying to run unit tests.
### Minimal reproduction project (MRP)
N/A
6 条评论