Skip to content

ScriptLanguageExtension methods can be called from multiple threads #556

Closed
@TitanNano

Description

@TitanNano

I have encountered this while doing reimports of some assets.

The method ScriptLanguageExtension::frame will be called for every frame in the main loop. In parallel, the engine might call ScriptLanguageExtension::handles_global_class_type from the import thread, which will cause a panic as frame is &mut self.


The quickest workaround is to not implement ScriptLanguageExtension::frame.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugc: engineGodot classes (nodes, resources, ...)c: threadsRelated to multithreading in Godot

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions