lib-open-swiss-maps-sdk icon indicating copy to clipboard operation
lib-open-swiss-maps-sdk copied to clipboard

setBaseLayerType causes outOfMemory error

Open MicheleIlluzzi opened this issue 2 years ago • 1 comments

https://github.com/geoadmin/lib-open-swiss-maps-sdk/blob/05847c4bb004783b79e83c0d690764029b9128ac/android/src/main/java/ch/admin/geo/openswissmaps/view/SwisstopoMapView.kt#L99

Every time the "setBaseLayerType" method is called, it does not release some resources correctly. Calling it repeatedly will cause the outOfMemory error

MicheleIlluzzi avatar Aug 29 '23 15:08 MicheleIlluzzi

Hi @MicheleIlluzzi,

Thank you very much for your report. In 466 we've fixed an issue with improper texture deallocations on layer removal. The update is currently available on develop. We're planning another release for this module during the next week, with which we will publish an updated prebuilt package on maven central.

maurhofer-ubique avatar Sep 01 '23 08:09 maurhofer-ubique