Jigglyfish / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

RejectedExecutionException on tile loading #465

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Opening map, centering to a specific point
2. Creating an overlay with some drawn paths and adding to the map
3. Moving around the map then causes tiles to not load/refresh anymore

What is the expected output? What do you see instead?
Refreshed tiles, instead i get some tiles blank, the DDMS says there was an 
RejectedExecutionException in the tileloader

What version of the product are you using? On what operating system?
3.0.10 - Windows OS, Eclipse IDE on Android 2.3.3

Please provide any additional information below.
Logcat says this:

08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411): 
RejectedExecutionException
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411): 
java.util.concurrent.RejectedExecutionException
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411):    at 
java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPool
Executor.java:1876)
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411):    at 
java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:774)
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411):    at 
java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1295)
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411):    at 
org.osmdroid.tileprovider.modules.MapTileModuleProviderBase.loadMapTileAsync(Map
TileModuleProviderBase.java:138)
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411):    at 
org.osmdroid.tileprovider.MapTileProviderArray.getMapTile(MapTileProviderArray.j
ava:121)
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411):    at 
org.osmdroid.tileprovider.MapTileProviderBase$ScaleTileLooper.handleTile(MapTile
ProviderBase.java:280)
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411):    at 
org.osmdroid.util.TileLooper.loop(TileLooper.java:36)
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411):    at 
org.osmdroid.tileprovider.MapTileProviderBase.rescaleCache(MapTileProviderBase.j
ava:239)
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411):    at 
org.osmdroid.views.MapView.setZoomLevel(MapView.java:375)
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411):    at 
org.osmdroid.views.MapController.setZoom(MapController.java:228)
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411):    at 
comws.trak8.winter.dialog.MapActionDialog$ProgressDisplayRoutePlan.onPostExecute
(MapActionDialog.java:377)
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411):    at 
comws.trak8.winter.dialog.MapActionDialog$ProgressDisplayRoutePlan.onPostExecute
(MapActionDialog.java:1)
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411):    at 
android.os.AsyncTask.finish(AsyncTask.java:417)
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411):    at 
android.os.AsyncTask.access$300(AsyncTask.java:127)
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411):    at 
android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411):    at 
android.os.Handler.dispatchMessage(Handler.java:99)
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411):    at 
android.os.Looper.loop(Looper.java:123)
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411):    at 
android.app.ActivityThread.main(ActivityThread.java:4627)
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411):    at 
java.lang.reflect.Method.invokeNative(Native Method)
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411):    at 
java.lang.reflect.Method.invoke(Method.java:521)
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
08-14 08:27:07.760: 
W/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(3411):    at 
dalvik.system.NativeStart.main(Native Method)

Original issue reported on code.google.com by DaMa...@gmail.com on 14 Aug 2013 at 6:14

GoogleCodeExporter commented 8 years ago
Ok, managed to resolve this... The press of the back button destroyed my dialog 
including the MapView. Disabling the back button / setting it's setCancelable 
to false made the thing stable.

YOu can scratch this :)

Original comment by DaMa...@gmail.com on 14 Aug 2013 at 7:21

GoogleCodeExporter commented 8 years ago

Original comment by kurtzm...@gmail.com on 14 Aug 2013 at 5:45