Skip to content

Conversation

@rwrx
Copy link
Contributor

@rwrx rwrx commented Feb 1, 2020

While I was testing tile fallbacking feature I discovered that when tile fallback (there is a pull request for tile fallback here: #2120) is from zoom 16 to zoom 0 there just occurred an int 32 overflow in allocation https://github.com/tangrams/isect2d/blob/2e1a75cee09d9949900e926c61c86505b09205b2/include/isect2d.h#L60 . So while trying it and profiling memory usage on Android device I came out with a solution to not process labels when tile scale difference is larger or equal to 6 so it won't much consume RAM and also it won't crash on bad alloc exception. I am not sure if this proposed solution is a right one.

@tallytalwar
Copy link
Member

@hjanetzek or @karimnaaji would remember the code here the most. But I can give it a try. Thanks @rwrx

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