What steps will reproduce the problem?
1. Call MapController.zoomToSpan in onCreateView of a fragment
What is the expected output? What do you see instead?
Sometimes (I can't tell exactly when), I get a "RuntimeException: Canvas:
trying to use a recycled bitmap"
What version of the product are you using? On what operating system?
OSMDroid 3.0.8
Please provide any additional information below.
Maybe in MapTileProviderBase line 274, we need a non-null check on oldBitmap ?
Full stacktrace :
java.lang.RuntimeException: Canvas: trying to use a recycled bitmap
android.graphics.Bitmap@41c59bf0
at android.graphics.Canvas.throwIfRecycled(Canvas.java:1026)
at android.graphics.Canvas.drawBitmap(Canvas.java:1127)
at org.osmdroid.tileprovider.MapTileProviderBase$ZoomInTileLooper.handleTile(MapTileProviderBase.java:280)
at org.osmdroid.tileprovider.MapTileProviderBase$ScaleTileLooper.handleTile(MapTileProviderBase.java:239)
at org.osmdroid.util.TileLooper.loop(TileLooper.java:36)
at org.osmdroid.tileprovider.MapTileProviderBase.rescaleCache(MapTileProviderBase.java:195)
at org.osmdroid.views.MapView.setZoomLevel(MapView.java:338)
at org.osmdroid.views.MapController.zoomToSpan(MapController.java:78)
at org.osmdroid.views.MapController.zoomToSpan(MapController.java:54)
Original issue reported on code.google.com by benjamin.gam on 6 Nov 2012 at 1:29
Original issue reported on code.google.com by
benjamin.gam
on 6 Nov 2012 at 1:29