Skip to content

Fix segfault in FuseStatic when body contains cameras or lights#3080

Open
kevinzakka wants to merge 1 commit intogoogle-deepmind:mainfrom
kevinzakka:fix-fusestatic-camera-light-crash
Open

Fix segfault in FuseStatic when body contains cameras or lights#3080
kevinzakka wants to merge 1 commit intogoogle-deepmind:mainfrom
kevinzakka:fix-fusestatic-camera-light-crash

Conversation

@kevinzakka
Copy link
Collaborator

FuseStatic deletes static (joint-less) bodies and reassigns their children to the parent body. Geoms and sites were reassigned, but cameras and lights were not, leaving dangling body pointers that crash in mjCCamera::Compile() / mjCLight::Compile().

Add camera and light reassignment in FuseStatic and FuseReindex.

FuseStatic deletes static (joint-less) bodies and reassigns their
children to the parent body. Geoms and sites were reassigned, but
cameras and lights were not, leaving dangling body pointers that
crash in mjCCamera::Compile() / mjCLight::Compile().

Add camera and light reassignment in FuseStatic and FuseReindex.
@kevinzakka kevinzakka requested a review from quagla February 9, 2026 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants