{"action":"created","issue":{"url":"https://api.github.com/repos/Mapsui/Mapsui/issues/503","repository_url":"https://api.github.com/repos/Mapsui/Mapsui","labels_url":"https://api.github.com/repos/Mapsui/Mapsui/issues/503/labels{/name}","comments_url":"https://api.github.com/repos/Mapsui/Mapsui/issues/503/comments","events_url":"https://api.github.com/repos/Mapsui/Mapsui/issues/503/events","html_url":"https://github.com/Mapsui/Mapsui/issues/503","id":355332652,"node_id":"MDU6SXNzdWUzNTUzMzI2NTI=","number":503,"title":"release of unused memory (memory leaking? bug?)","user":{"login":"lukaszpitulski","id":15933140,"node_id":"MDQ6VXNlcjE1OTMzMTQw","avatar_url":"https://avatars3.githubusercontent.com/u/15933140?v=4","gravatar_id":"","url":"https://api.github.com/users/lukaszpitulski","html_url":"https://github.com/lukaszpitulski","followers_url":"https://api.github.com/users/lukaszpitulski/followers","following_url":"https://api.github.com/users/lukaszpitulski/following{/other_user}","gists_url":"https://api.github.com/users/lukaszpitulski/gists{/gist_id}","starred_url":"https://api.github.com/users/lukaszpitulski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukaszpitulski/subscriptions","organizations_url":"https://api.github.com/users/lukaszpitulski/orgs","repos_url":"https://api.github.com/users/lukaszpitulski/repos","events_url":"https://api.github.com/users/lukaszpitulski/events{/privacy}","received_events_url":"https://api.github.com/users/lukaszpitulski/received_events","type":"User","site_admin":false},"labels":[{"id":599186938,"node_id":"MDU6TGFiZWw1OTkxODY5Mzg=","url":"https://api.github.com/repos/Mapsui/Mapsui/labels/possible%20bug","name":"possible bug","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-29T21:04:19Z","updated_at":"2018-08-30T07:07:06Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nLet me introduce you in the issue what we have here.\r\n\r\nRender mode - Skia\r\nTiles sources: local WMTS or tile.openstreetmap.org\r\nMapControl {Mapsui.UI.Wpf.MapControl} \r\nMapsui 1.4.4\r\n.NET Framework 4.6.2\r\n\r\nso...\r\nOn the beginning we have the map with the base layer (one of the tiles sources). \r\nWith a zoom for example Viewport.Resolution = 6 .\r\nWithout any features.\r\nThe map consumes 20MB memory.\r\n\r\nNext, we navigate (by mouse) on the map, and do zoom in and do zoom out many times by a long time.\r\nMemory increases even into 1GB (usually it’s about 600MB).\r\n\r\nEven after stopping any moving/zooming on the map the memory is not released.\r\n\r\nWe think that situation is because map process allocates the memory to increase performance of the app and the OS (Garbage Collector) cares about any reducing of RAM usage but is too slow (sometimes after closing the app the memory is still allocated (by long time)).\r\nWe suppose that it is some tiles caching or similar thing.\r\n\r\nIt’s big issue for us because we use the map in the app which already need a lot of memory and with that situation we have sometimes OutOfMemory error.\r\nWe’ve excluded any memory leaking from the app.\r\n\r\n\r\nThe query and questions are: \r\n- Have we missed any param(s)/settings in the Mapsui where we can manage the memory consuming by the map, are any? (ex. CacheMode)\r\n- Is it any way to speed up memory release by the map process? Maybe some way to force the GC to clear the allocated memory?\r\n- Can we disable tiles caching?\r\n\r\nIf you need any more details please let me know.\r\n\r\nBest Regards,\r\nŁukasz\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Mapsui/Mapsui/issues/comments/417212723","html_url":"https://github.com/Mapsui/Mapsui/issues/503#issuecomment-417212723","issue_url":"https://api.github.com/repos/Mapsui/Mapsui/issues/503","id":417212723,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzIxMjcyMw==","user":{"login":"pauldendulk","id":963462,"node_id":"MDQ6VXNlcjk2MzQ2Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/963462?v=4","gravatar_id":"","url":"https://api.github.com/users/pauldendulk","html_url":"https://github.com/pauldendulk","followers_url":"https://api.github.com/users/pauldendulk/followers","following_url":"https://api.github.com/users/pauldendulk/following{/other_user}","gists_url":"https://api.github.com/users/pauldendulk/gists{/gist_id}","starred_url":"https://api.github.com/users/pauldendulk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pauldendulk/subscriptions","organizations_url":"https://api.github.com/users/pauldendulk/orgs","repos_url":"https://api.github.com/users/pauldendulk/repos","events_url":"https://api.github.com/users/pauldendulk/events{/privacy}","received_events_url":"https://api.github.com/users/pauldendulk/received_events","type":"User","site_admin":false},"created_at":"2018-08-30T07:07:06Z","updated_at":"2018-08-30T07:07:06Z","author_association":"COLLABORATOR","body":"If I zoom in an out in the default Mapsui sample I can not get the memory above 100 MB so I need to know what is different in your application."}}
{"actor":{"display_login":"pauldendulk"}}