Comment 9 for bug 1818494

Revision history for this message
GunChleoc (gunchleoc) wrote :

I think I understand the problem now - Widelands doesn't have enough memory allocated to grow the vector to the required size. So, I have added a safeguard there in the attached branch, which will log to console when there isn't enough memory and then simply not update the additional fields. You will see fields not properly drawn/updated at the bottom of the screen then.

It's actually a vital hint that this happens only after a long time -> I found that the editor's "Undo" stack is unlimited, so I am putting a cap on that. I think 500 undo actions should be sufficient for anybody.

For in-game memory, I guess we'll need to do some profiling, because I don't know what is constantly growing at this point. LeakSanitizer is reporting some memory leaks in the scripting component, but we have not been able to resolve those yet.