Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor crash at shutdown when using Engine::get_singleton() #1118

Closed
jacogasp opened this issue May 22, 2023 · 1 comment
Closed

Editor crash at shutdown when using Engine::get_singleton() #1118

jacogasp opened this issue May 22, 2023 · 1 comment
Labels
archived bug This has been identified as a bug crash topic:gdextension This relates to the new Godot 4 extension implementation

Comments

@jacogasp
Copy link

Hello,
I don't know if the following is related to this open issue, but when I try to simply access the Engine singleton in one on my Node2D class in GDExtension, this makes the editor crash at shutdown.

Example

void _physics_process(float delta) {
  auto const engine = Engine::get_singleton();
  if (engine->is_editor_hint()) {
    return;
  }
}

Just calling Engine::get_singleton(); is sufficient to make the issue to show up.
Invoking Godot from terminal with godot --editor gives the following trace at shutdown

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.0.3.stable.official (5222a99f5d38cd5346254cefed8f65315bca4fcb)
Dumping the backtrace. 
[1] 1   libsystem_platform.dylib            0x00000001978dea84 _sigtramp + 56
[2] Object::can_translate_messages() const
[3] RendererRD::ParticlesStorage::_create_particles_material_funcs(RendererRD::MaterialStorage::ShaderData*)
[4] RendererCompositorRD::_create_current()
[5] RendererCompositorRD::_create_current()
[6] 6   dyld                                0x0000000197557f28 start + 2236
-- END OF BACKTRACE --
================================================================

I run Godot v4.0.3 on MacBookPro M2

@Calinou Calinou added bug This has been identified as a bug crash topic:gdextension This relates to the new Godot 4 extension implementation labels May 23, 2023
@Calinou
Copy link
Member

Calinou commented May 23, 2023

@Calinou Calinou closed this as not planned Won't fix, can't repro, duplicate, stale May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
archived bug This has been identified as a bug crash topic:gdextension This relates to the new Godot 4 extension implementation
Projects
None yet
Development

No branches or pull requests

2 participants