konstructs / client

A voxel based game client.
http://www.konstructs.org
MIT License
48 stars 8 forks source link

Crash on OS X on chunk loading #154

Closed nsg closed 8 years ago

nsg commented 8 years ago

auto maxIter = chunks.begin() + max;

https://github.com/konstructs/client/blob/master/src/client.cpp#L165

This line causes a problem under OS X. This crashed the client when we received the first chunks. I assume we got less than 10 chunks and chunks.begin() + max pointed outside chunks allocated memory.

nsg commented 8 years ago

Thank you @nflx for the help testing and debugging this.

petterarvidsson commented 8 years ago

This bug is possibly fixed by #161, but I can not test it since I lack an OSX compatible device. Help with testing this would be highly appreciated!