Skip to content

fix: Prevent crash on free when RBS is not last node#600

Merged
elementbound merged 5 commits into
mainfrom
fix/predelete-crash
May 17, 2026
Merged

fix: Prevent crash on free when RBS is not last node#600
elementbound merged 5 commits into
mainfrom
fix/predelete-crash

Conversation

@elementbound
Copy link
Copy Markdown
Contributor

NOTIFICATION_PREDELETE runs in reverse order, so if RBS is located in the scene tree before any rollback-managed node, RBS will try to deregister a node that has been already freed.

The solution was to deregister nodes in _exit_tree(), if the synchronizer's root node is queued for deletion.

Fixes #595

@elementbound elementbound merged commit cac71a5 into main May 17, 2026
4 checks passed
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.

_notification(PREDELETE) crashes when nodes are freed before RollbackSynchronizer

1 participant