Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MapView out of memory #35

Closed
HelloGalaxy opened this issue Jun 2, 2014 · 4 comments
Closed

MapView out of memory #35

HelloGalaxy opened this issue Jun 2, 2014 · 4 comments
Labels

Comments

@HelloGalaxy
Copy link

Hello, I created a MapView object in an activity. But I found out a terrible issue. After I have rotated the tablet many times, the MapView object always throws Out Of Memory exception. As the result, the activity is blocked or reflect slowly....

@neilboyd neilboyd changed the title Bug: MapView out of memory MapView out of memory Jun 2, 2014
@neilboyd neilboyd added the bug label Jun 2, 2014
@devemux86
Copy link

See also #28.

Emux
Cruiser - Atlas

@HelloGalaxy
Copy link
Author

I have found out a solution. When the activity will be destroyed, we should call the function: mapView.getTileProvider().clearTileCache(); to clean resouces. With this method, the out of memory execption do not be throwed again.

@spyhunter99
Copy link
Collaborator

if you programmatically construct the map view, then add it to the activity and don't clean it up on destroy, you may end up with a map view that doesn't get GC'd. @HelloGalaxy can you post the creation code?

@spyhunter99
Copy link
Collaborator

ping time out. reopen the ticket if you still have the issue. it sounds like you're not removing the created view on destory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants