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

Random crash when computing goals #208

Closed
hwoarangmy opened this issue Sep 30, 2014 · 0 comments
Closed

Random crash when computing goals #208

hwoarangmy opened this issue Sep 30, 2014 · 0 comments
Assignees
Labels
Milestone

Comments

@hwoarangmy
Copy link
Contributor

I've had several times a crash within Seat::checkAllGoals.

After a bit of search, it seems a vector iterator can be invalidated when the vector is resized (which might happen when elements are inserted). That might crash.
This one was tricky for me as I'm not used to STL containers :)

If interested, I'm talking about :
https://github.com/OpenDungeons/OpenDungeons/blob/development/source/Seat.cpp#L124
then we do
https://github.com/OpenDungeons/OpenDungeons/blob/development/source/Seat.cpp#L126

@hwoarangmy hwoarangmy added the Bug label Sep 30, 2014
@hwoarangmy hwoarangmy self-assigned this Sep 30, 2014
@hwoarangmy hwoarangmy added this to the 0.4.9 milestone Sep 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant