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

BakedLightmap Crash #44760

Closed
zoomercamps opened this issue Dec 28, 2020 · 4 comments
Closed

BakedLightmap Crash #44760

zoomercamps opened this issue Dec 28, 2020 · 4 comments

Comments

@zoomercamps
Copy link

zoomercamps commented Dec 28, 2020

Godot version:
3.2.3

OS/device including version:
Godot Engine v3.2.3.stable.official - https://godotengine.org
OpenGL ES 2.0 Renderer: Intel(R) Iris(TM) Plus Graphics 655
OpenGL ES 2.0 Batching: ON

Issue description:
Every time I try to bake lightmaps the IDE crash suddenly. I'm trying on Windows OS and Mac OS, with the same result.

Backtrace

handle_crash: Program crashed with signal 11
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[1] 1   libsystem_platform.dylib            0x00007fff6a7895fd _sigtramp + 29
[2] 2   ???                                 0x0000000000000000 0x0 + 0
[3] VoxelLightBaker::_plot_face(int, int, int, int, int, Vector3 const*, Vector3 const*, Vector2 const*, VoxelLightBaker::MaterialCache const&, AABB const&) (in Godot) + 5518
[4] VoxelLightBaker::_plot_face(int, int, int, int, int, Vector3 const*, Vector3 const*, Vector2 const*, VoxelLightBaker::MaterialCache const&, AABB const&) (in Godot) + 5518
[5] VoxelLightBaker::_plot_face(int, int, int, int, int, Vector3 const*, Vector3 const*, Vector2 const*, VoxelLightBaker::MaterialCache const&, AABB const&) (in Godot) + 5518
[6] VoxelLightBaker::_plot_face(int, int, int, int, int, Vector3 const*, Vector3 const*, Vector2 const*, VoxelLightBaker::MaterialCache const&, AABB const&) (in Godot) + 5518
[7] VoxelLightBaker::_plot_face(int, int, int, int, int, Vector3 const*, Vector3 const*, Vector2 const*, VoxelLightBaker::MaterialCache const&, AABB const&) (in Godot) + 5518
[8] VoxelLightBaker::_plot_face(int, int, int, int, int, Vector3 const*, Vector3 const*, Vector2 const*, VoxelLightBaker::MaterialCache const&, AABB const&) (in Godot) + 5518
[9] VoxelLightBaker::_plot_face(int, int, int, int, int, Vector3 const*, Vector3 const*, Vector2 const*, VoxelLightBaker::MaterialCache const&, AABB const&) (in Godot) + 5518
[10] VoxelLightBaker::_plot_face(int, int, int, int, int, Vector3 const*, Vector3 const*, Vector2 const*, VoxelLightBaker::MaterialCache const&, AABB const&) (in Godot) + 5518
[11] VoxelLightBaker::_plot_face(int, int, int, int, int, Vector3 const*, Vector3 const*, Vector2 const*, VoxelLightBaker::MaterialCache const&, AABB const&) (in Godot) + 5518
[12] VoxelLightBaker::_plot_face(int, int, int, int, int, Vector3 const*, Vector3 const*, Vector2 const*, VoxelLightBaker::MaterialCache const&, AABB const&) (in Godot) + 5518
[13] VoxelLightBaker::_plot_face(int, int, int, int, int, Vector3 const*, Vector3 const*, Vector2 const*, VoxelLightBaker::MaterialCache const&, AABB const&) (in Godot) + 5518
[14] VoxelLightBaker::plot_mesh(Transform const&, Ref<Mesh>&, Vector<Ref<Material> > const&, Ref<Material> const&) (in Godot) + 1658
[15] BakedLightmap::bake(Node*, bool) (in Godot) + 2698
[16] BakedLightmapEditorPlugin::_bake() (in Godot) + 123
[17] MethodBind0::call(Object*, Variant const**, int, Variant::CallError&) (in Godot) + 88
[18] Object::call(StringName const&, Variant const**, int, Variant::CallError&) (in Godot) + 357
[19] Object::emit_signal(StringName const&, Variant const**, int) (in Godot) + 1901
[20] Object::emit_signal(StringName const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&) (in Godot) + 114
[21] BaseButton::_pressed() (in Godot) + 366
[22] BaseButton::on_action_event(Ref<InputEvent>) (in Godot) + 467
[23] BaseButton::_gui_input(Ref<InputEvent>) (in Godot) + 193
[24] MethodBind1<Ref<InputEvent> >::call(Object*, Variant const**, int, Variant::CallError&) (in Godot) + 277
[25] Object::call_multilevel(StringName const&, Variant const**, int) (in Godot) + 232
[26] Object::call_multilevel(StringName const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&) (in Godot) + 115
[27] Viewport::_gui_call_input(Control*, Ref<InputEvent> const&) (in Godot) + 831
[28] Viewport::_gui_input_event(Ref<InputEvent>) (in Godot) + 2089
[29] Viewport::input(Ref<InputEvent> const&) (in Godot) + 250
[30] Viewport::_vp_input(Ref<InputEvent> const&) (in Godot) + 217
[31] MethodBind1<Ref<InputEvent> const&>::call(Object*, Variant const**, int, Variant::CallError&) (in Godot) + 277
[32] Object::call(StringName const&, Variant const**, int, Variant::CallError&) (in Godot) + 357
[33] Object::call(StringName const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&) (in Godot) + 136
[34] SceneTree::call_group_flags(unsigned int, StringName const&, StringName const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&) (in Godot) + 924
[35] SceneTree::input_event(Ref<InputEvent> const&) (in Godot) + 387
[36] InputDefault::_parse_input_event_impl(Ref<InputEvent> const&, bool) (in Godot) + 3260
[37] InputDefault::flush_accumulated_events() (in Godot) + 41
[38] OS_OSX::run() (in Godot) + 374
[39] main (in Godot) + 529
[40] 40  libdyld.dylib                       0x00007fff6a590cc9 start + 1
-- END OF BACKTRACE --

Steps to reproduce:
Click on "Bake Lightmaps"

@Calinou
Copy link
Member

Calinou commented Dec 28, 2020

This will likely be fixed by #44628.

@akien-mga akien-mga added this to the 3.2 milestone Dec 28, 2020
@Calinou Calinou changed the title BakeLightmap Crash BakedLightmap Crash Dec 29, 2020
@JFonS
Copy link
Contributor

JFonS commented Jan 17, 2021

Looking at the stack trace, it seems like the crash is coming from the voxel light baker. So it probably crashes when using "capture" data even after merging #44628.

@zoomercamps Do you have a project that can easily reproduce the issue? The crash is likely caused by a corner-case in the triangle plotting code, so without the same geometry I can't reproduce it.

@akien-mga akien-mga modified the milestones: 3.2, 3.3 Mar 17, 2021
@Calinou
Copy link
Member

Calinou commented Jul 6, 2021

@zoomercamps Bump 🙂 See the above comment.

@akien-mga
Copy link
Member

No answer, so closing.

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

4 participants