osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.6k stars 1.01k forks source link

OsmAnd's map manager fails to update free disk space (force-close required) #3108

Open Norbert80 opened 8 years ago

Norbert80 commented 8 years ago

OsmAnd's map manager rejects to update/download maps if there is not enough disk space. That' fine.

But if I put OsmAnd to background to free up disk space and go back to OsmAnd it still rejects to download/update the maps.

Workaround: Force-close and restart OsmAnd.

Solution: Fix OsmAnd to update disk usage each time trying to update/downlod maps.

Found with OsmAnd+ 2.4.7.

Unnamed-1 commented 7 years ago

I think I have observed this very long ago. The problem seemed to be a Java resource leak (file handles) so deleted files were still locked by the OS (i.e. the space was not released to the filesystem).

It might be solvable with something like https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html but that's just a wild guess.

aceman444 commented 7 years ago

Yes, this does happen.

pimlie commented 3 months ago

This is still happening in v4.7.17. Workaround also still works :)