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 when using EditorNavigationMeshGenerator::bake(Ref<NavigationMesh>, Node*) #30006

Closed
qarmin opened this issue Jun 23, 2019 · 3 comments

Comments

@qarmin
Copy link
Contributor

qarmin commented Jun 23, 2019

Godot version:
3.2.dev.custom_build. 02319dc

OS/device including version:
Ubuntu 19.04

Issue description:

[1] /lib/x86_64-linux-gnu/libc.so.6(+0x43f60) [0x7f38ada95f60] (??:0)
[2] EditorNode::progress_add_task(String const&, String const&, int, bool) (/home/rafal/Pulpit/godot/editor/editor_node.cpp:3540)
[3] EditorProgress::EditorProgress(String const&, String const&, int, bool) (/home/rafal/Pulpit/godot/./editor/editor_node.h:856)
[4] EditorNavigationMeshGenerator::bake(Ref<NavigationMesh>, Node*) (/home/rafal/Pulpit/godot/modules/recast/navigation_mesh_generator.cpp:419 (discriminator 3))
[5] MethodBind2<Ref<NavigationMesh>, Node*>::call(Object*, Variant const**, int, Variant::CallError&) (/home/rafal/Pulpit/godot/./core/method_bind.gen.inc:1523 (discriminator 19))
[6] Object::call(StringName const&, Variant const**, int, Variant::CallError&) (/home/rafal/Pulpit/godot/core/object.cpp:940 (discriminator 1))
[7] Variant::call_ptr(StringName const&, Variant const**, int, Variant*, Variant::CallError&) (/home/rafal/Pulpit/godot/core/variant_call.cpp:1073 (discriminator 1))
[8] GDScriptFunction::call(GDScriptInstance*, Variant const**, int, Variant::CallError&, GDScriptFunction::CallState*) (/home/rafal/Pulpit/godot/modules/gdscript/gdscript_function.cpp:1086)
[9] GDScriptInstance::call_multilevel(StringName const&, Variant const**, int) (/home/rafal/Pulpit/godot/modules/gdscript/gdscript.cpp:1192)
[10] Node::_notification(int) (/home/rafal/Pulpit/godot/scene/main/node.cpp:58)
[11] Node::_notificationv(int, bool) (/home/rafal/Pulpit/godot/./scene/main/node.h:46 (discriminator 14))
[12] CanvasItem::_notificationv(int, bool) (/home/rafal/Pulpit/godot/./scene/2d/canvas_item.h:166 (discriminator 3))
[13] Node2D::_notificationv(int, bool) (/home/rafal/Pulpit/godot/./scene/2d/node_2d.h:38 (discriminator 3))
[14] Object::notification(int, bool) (/home/rafal/Pulpit/godot/core/object.cpp:952)
[15] SceneTree::_notify_group_pause(StringName const&, int) (/home/rafal/Pulpit/godot/scene/main/scene_tree.cpp:975)
[16] SceneTree::idle(float) (/home/rafal/Pulpit/godot/scene/main/scene_tree.cpp:522 (discriminator 3))
[17] Main::iteration() (/home/rafal/Pulpit/godot/main/main.cpp:1922)
[18] OS_X11::run() (/home/rafal/Pulpit/godot/platform/x11/os_x11.cpp:3163)
[19] /usr/bin/godot(main+0xdf) [0x1390871] (/home/rafal/Pulpit/godot/platform/x11/godot_x11.cpp:56)
[20] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x7f38ada78b6b] (??:0)
[21] /usr/bin/godot(_start+0x2a) [0x13906da] (??:?)


Steps to reproduce:

  1. Run minimal project and wait

Minimal reproduction project:
https://github.com/qarmin/The-worst-Godot-test-project/
commit 9f18c417a39afc63083eb555a99f612f3071a56a
ZIP - https://github.com/qarmin/The-worst-Godot-test-project/archive/9f18c417a39afc63083eb555a99f612f3071a56a.zip

@realkotob
Copy link
Contributor

The editor still crashes when I bake a big navigation mesh, but I can't see the error because it force closes so not sure if it's the same issue.

@Calinou
Copy link
Member

Calinou commented Jun 5, 2020

This was most likely resolved by #34776, closing. See #17885 (comment) if you need a solution in Godot 3.2.

@Calinou Calinou closed this as completed Jun 5, 2020
@Calinou Calinou added this to the 4.0 milestone Jun 5, 2020
@alib86
Copy link

alib86 commented Jul 24, 2021

@Calinou Trying EditorNavigationMeshGenerator to bake NavMesh in script at runtime but getting the below error, using 3.3.2 (stable) Mono 64-bit (tried with both C# and GDScript). Is this something that is supposed to be resolved by #34776 but was overlooked? Or am I missing something? The code here seems to suggest that it will fail if it's not run from editor, regardless of version or anything else.

ERROR: bake: Invoking EditorNavigationMeshGenerator::bake(...) in-game is not supported in Godot 3.2 or below. Aborting bake... At: modules/recast/navigation_mesh_generator.cpp:437

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants