Skip to content

Can't retrieve singleton 'EditorInterface' outside of editor. #76

@Withaust

Description

@Withaust

Currently, on Godot 4.6 if you were to dump your game with a new ObjectDB Profiler you would run into an issue with a code in vmf_node.gd:

var editor_interface:
	get: return Engine.get_singleton("EditorInterface");

Since ObjectDB Profiler operates by recursively visiting each and every single property, this causes this property to get accessed during game's runtime which was clearly not intended before. This causes:

E 0:01:06:715   vmf_node.gd:58 @ @editor_interface_getter(): Can't retrieve singleton 'EditorInterface' outside of editor.
  <C++ Error>   Method/function failed. Returning: nullptr
  <C++ Source>  core/config/engine.cpp:338 @ get_singleton_object()
  <Stack Trace> vmf_node.gd:58 @ @editor_interface_getter()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions