godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.78k stars 20.91k forks source link

Exporting via the console after closing the editor sometimes throws a "Pages in use exist at exit in PagedAllocator" error. #90867

Open MEMESCOEP opened 5 months ago

MEMESCOEP commented 5 months ago

Tested versions

Reproducible in 4.2.1.stable - Currently testing 4.2.2.stable and 4.1.4.stable, and will test more versions when I can

System information

Windows 10 & 11 - Godot v4.2.1.stable - Vulkan (Mobile)

Issue description

After closing the editor and running an export via the command prompt, it will often fail with the following error:

ERROR: Pages in use exist at exit in PagedAllocator: N7Variant5Pools12BucketMediumE
   at: ~PagedAllocator (./core/templates/paged_allocator.h:170)

It returns he exit code 3221225477 as well. If I run the build again, everything works as intended. Here's the build command I use: C:\>{GODOT_PATH} --path {PROJECT_PATH} --headless --verbose --export-debug Windows BUILDS

Instead of failing to export, the engine should finish successfully.

Steps to reproduce

  1. Edit a project using the editor
  2. Close the editor and run command prompt
  3. Run the build command for said project
  4. After the engine finishes some savepack steps, the error may be thrown

Minimal reproduction project (MRP)

N/A

MEMESCOEP commented 5 months ago

Update: this does not appear to happen on version v4.2.2.stable.official [15073afe3]