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 crash in the ControllerManager::updateAllControllers when mControllers is changed while iterating over it #3216

Merged
merged 1 commit into from
Sep 8, 2024

Conversation

Altren
Copy link
Contributor

@Altren Altren commented Sep 7, 2024

@Altren Altren force-pushed the fix_controller_manager_crash branch from 6ce52b4 to d9c40c0 Compare September 7, 2024 15:22
@paroj
Copy link
Member

paroj commented Sep 8, 2024

can you elaborate on the use-case where you need this?

Also, we typically use this pattern to allow remove/ add during iteration:

ListenerList listenersCopy = mListeners;
for (auto *l : listenersCopy)

@Altren Altren force-pushed the fix_controller_manager_crash branch from d9c40c0 to 348ac74 Compare September 8, 2024 11:53
@Altren
Copy link
Contributor Author

Altren commented Sep 8, 2024

I do not know why this crash started happening and how to reproduce it on a minimal example

@paroj
Copy link
Member

paroj commented Sep 8, 2024

crashing was likely introduced by f7cd9dd hence this is fixing a regression

@paroj paroj merged commit 68fd612 into OGRECave:master Sep 8, 2024
6 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.

2 participants