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

JoltPhysics3D: Debug visible collisions crash #101212

Open
hilloftheking opened this issue Jan 7, 2025 · 2 comments · May be fixed by #101231
Open

JoltPhysics3D: Debug visible collisions crash #101212

hilloftheking opened this issue Jan 7, 2025 · 2 comments · May be fixed by #101231
Assignees
Milestone

Comments

@hilloftheking
Copy link

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

@mihe

This comment has been minimized.

@mihe
Copy link
Contributor

mihe commented Jan 7, 2025

I was able to reproduce it on Linux, with the built-in version of Jolt. I am however still not able to reproduce the crash on Windows for some reason.

I'll take a closer look.

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

Successfully merging a pull request may close this issue.

3 participants