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

Fix animation tree editor crash #102376

Conversation

Nazarwadim
Copy link
Contributor

Fixes: #102374

It crashes because the map referenced memory that was reallocated.

input_activity_map_get[String(p_base_path).substr(0, String(p_base_path).length() - 1)] = &input_activity_map[p_base_path];

@AThousandShips
Copy link
Member

AThousandShips commented Feb 3, 2025

I think the fact that this is because of an incompatibility of the container behavior I would suggest reverting the previous change and investigating it again

The change is one of a iterator-stable container to one that isn't, which I think warrants some further testing (same with any other changes involving this kind of change)

@Nazarwadim
Copy link
Contributor Author

Sure. I'll do that in 4.5.

@Nazarwadim Nazarwadim closed this Feb 3, 2025
@AThousandShips AThousandShips removed this from the 4.4 milestone Feb 3, 2025
@eddieataberk
Copy link

Just tested it. This commit does fixes the crash.

@AThousandShips
Copy link
Member

Good, worth reimplementing the changes in 4.5

@a-johnston
Copy link
Contributor

a-johnston commented Feb 5, 2025

FYI there's a different crash caused by the original PR in AnimationNodeBlendTree::rename_node from adding a new node to an existing tree and renaming it. There may be another factor however as I can consistently get the crash with a more involved tree but not on a simpler one. I think the speedups offered by the PR would be good but it seems like there are some things to work out.

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

Successfully merging this pull request may close these issues.

Animation Tree Editor Crashes.
4 participants