codecat / godot-tbloader

TrenchBroom Loader for Godot 4. (Alternative to Qodot)
MIT License
240 stars 30 forks source link

Crash when building with empty layer #32

Closed makepanic closed 1 year ago

makepanic commented 1 year ago

Hi, I've upgraded to 0.3.0 with godot 4 beta 2 and now building the map crashes godot.

I was able to reproduce it by adding a new layer to my trenchbroom map and not adding any objects to it:

20221001-094356

backtrace:

[1] /usr/lib/libc.so.6(+0x38a00) [0x7fe804002a00] (??:0)
[2] godot::CollisionShape3D::set_shape(godot::Ref<godot::Shape3D> const&) (??:0)
[3] Builder::add_collider_from_mesh(godot::Node3D*, godot::Ref<godot::ArrayMesh>&, ColliderShape) (??:0)
[4] Builder::build_entity_mesh(int, LMEntity&, godot::Node3D*, ColliderType, ColliderShape) (??:0)
[5] Builder::build_worldspawn(int, LMEntity&) (??:0)
[6] Builder::build_map() (??:0)
[7] TBLoader::build_meshes() (??:0)
[8] godot::MethodBindT<>::call(void*, void* const*, long, GDNativeCallError&) const (??:0)
[9] godot::MethodBind::bind_call(void*, void*, void* const*, long, void*, GDNativeCallError*) (??:0)

I'm not sure if this is something that tbloader causes or a change in godot.

codecat commented 1 year ago

Thanks for the report!