Skip to content

JoltPhysics3D: Debug visible collisions crash #101212

Closed
@hilloftheking

Description

@hilloftheking

Tested versions

  • Reproducible in: v4.4.dev.mono.gh [4cf0231], v4.4.dev.mono.gh [44dfa7e], v4.4.dev.custom_build [cee5f8e31]

System information

Godot v4.4.dev (cee5f8e31) - Fedora Linux 41 (Workstation Edition) on Wayland - X11 display driver, Multi-window, 1 monitor - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 Ti (nvidia; 565.77) - Intel(R) Core(TM) i7-10700F CPU @ 2.90GHz (16 threads)

Issue description

Running a project with debug collisions enabled causes a crash. Number of physics bodies does not seem to matter, it will crash even when there are none. Crash does not occur with GodotPhysics3D.

Thread 1 "godot.linuxbsd." received signal SIGILL, Illegal instruction.
0x0000000002ec03ef in CowData<Vector3>::get (this=<optimized out>, p_index=<optimized out>) at ./core/templates/cowdata.h:219
219			CRASH_BAD_INDEX(p_index, size());

 0 in CowData<Vector3>::get of ./core/templates/cowdata.h:219
 1 in Vector<Vector3>::operator[] of ./core/templates/vector.h:101
 2 in Viewport::_notification of scene/main/viewport.cpp:641
 3 in Viewport::_notificationv of ./scene/main/viewport.h:96
 4 in Window::_notificationv of scene/main/window.h:45
 5 in Object::notification of core/object/object.cpp:874
 6 in SceneTree::_process_group of scene/main/scene_tree.cpp:1049
 7 in SceneTree::_process of scene/main/scene_tree.cpp:1136
 8 in SceneTree::physics_process of scene/main/scene_tree.cpp:533
 9 in Main::iteration of main/main.cpp:4449
10 in OS_LinuxBSD::run of platform/linuxbsd/os_linuxbsd.cpp:962
11 in main of platform/linuxbsd/godot_linuxbsd.cpp:85

Steps to reproduce

  1. Make a main scene; crash occurs regardless of scene root type
  2. Switch to JoltPhysics3D
  3. Enable Debug > Visible Collision Shapes
  4. Run project

Minimal reproduction project (MRP)

N/A

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Bad

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions