Skip to content

libgodot crashes when running with --dump-extension-api #120954

Description

@0x0ACB

Tested versions

v4.6.3.stable

System information

Windows 10

Issue description

When using libgodot and running --dump-extension-api the program crashes with an access fault in

OS::get_singleton()->get_main_loop()->initialize();

This is due to the main loop not being initialized when dumping the extension api.

godot/main/main.cpp

Lines 4294 to 4295 in a3fc1cb

if (dump_gdextension_interface || dump_gdextension_interface_header || dump_extension_api) {
return EXIT_SUCCESS;

Steps to reproduce

Use the libgodot build and run --dump-extension-api

Minimal reproduction project (MRP)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions