Open bluevoidnl opened 10 months ago
@bluevoidnl Thank you for opening this issue. 🙏 Please check out these other resources that might help you get to a resolution in the meantime:
google-maps
tagThis is an automated message, feel free to ignore.
Hi @bluevoidnl . This seems like an issue that is being caused by the new Renderer, could you file a new issue here?
I can see some OutOfMemory errors, but at this point not enough to determine how this is happening. A temporary fix would be to opt out from the new renderer and stay on the legacy one, but if this is an issue should be fixed. I am bringing it up with the responsible team.
Hi @kikoso ,
I work together with @bluevoidnl . I created a new issue here.
I am also seeing this issue when I upgrade to the new rendered on my map that is rendering several hundred polylines.
I'm also facing this issue when I add lots of Polylines on a map. Crashes for out of memory on the new renderer, but not when switching back to the legacy one. However, according to the issue, running out of memory is the intended behaviour. Seems like the only way now is to reduce the number of shapes.
In our app we have out-of-memory errors since we updated to android compose maps 4.3.0.
This is related to the new map renderer which became default in maps sdk 18.2.0, see https://developers.google.com/maps/documentation/android-sdk/renderer
It is caused by drawing polylines on a compose map. When the lines are not drawn the memory-leak does not occur anymore. We work around this for now by enabling the legacy renderer in this way:
MapsInitializer.initialize(applicationContext, Renderer.LEGACY) { }
Environment details
Android, any version android-maps compose from version 4.1.0 and higher, (since the use of maps sdk 18.2.0 where the new map renderer became default, see https://developers.google.com/maps/documentation/android-sdk/renderer)
Steps to reproduce
Code example
This is how we create some of the polylines: