Skip to content

ResourceLoader.load_threaded_get_status returns THREAD_LOAD_LOADED after ResourceLoader.load_threaded_request with invalid path #95490

Closed
@Summersay415

Description

@Summersay415

Tested versions

  • Reproducible in v4.3.rc3.official [03afb92], latest master [9f6336b46], v4.0.4.stable.official [fc0b241]

System information

Godot v4.3.rc3 - Ubuntu 24.04 LTS 24.04 - X11 - GLES3 (Compatibility) - Mesa Intel(R) Graphics (ADL GT2) - 12th Gen Intel(R) Core(TM) i5-1235U (12 Threads)

Issue description

ResourceLoader.load_threaded_get_status with invalid path returns 3, which is THREAD_LOAD_LOADED, after ResourceLoader.load_threaded_request with that same invalid path. Interestingly, ResourceLoader.load_threaded_request returns 0, which is OK, while printing an error. After call to ResourceLoader.load_threaded_get with that invalid path, ResourceLoader.load_threaded_get_status starts to give normal result: 0, which is THREAD_LOAD_INVALID_RESOURCE.
By invalid path, i mean something like res://node.tsc or invalid UID, NOT like res://node.gd, which results in "File not found" and THREAD_LOAD_FAILED status.

Steps to reproduce

  1. Call ResourceLoader.load_threaded_request with some invalid path.
  2. Call ResourceLoader.load_threaded_get_status with that same path. Notice status equaling to 3.

Minimal reproduction project (MRP)

mrp.zip

  1. Start project.
  2. Notice output.
  3. Click "get" to call ResourceLoader.load_threaded_get.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions