You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TileView causes a crash for me when i suspend my app and call the pause() method.
The TileView is being presented by a fragment and the sequence of events is:
User presses device home button
Activity.onPause()
Fragment.onPause()
TileView.pause()
Crash
The crash doesn't happen if I don't call TileView.pause(), but i imagine that will lead to other problems.
Is there something i am forgetting to do? The trace is:
FATAL EXCEPTION: AsyncTask #2
java.lang.RuntimeException: An error occured while executing doInBackground()
at com.qozix.os.AsyncTask$3.done(AsyncTask.java:276)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:352)
at java.util.concurrent.FutureTask.setException(FutureTask.java:219)
at java.util.concurrent.FutureTask.run(FutureTask.java:239)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.IllegalStateException: cache is closed
at com.jakewharton.DiskLruCache.checkNotClosed(DiskLruCache.java:583)
at com.jakewharton.DiskLruCache.get(DiskLruCache.java:376)
at com.qozix.tileview.tiles.TileCache.getBitmapFromDiskCache(TileCache.java:172)
at com.qozix.tileview.tiles.TileCache.getBitmap(TileCache.java:79)
at com.qozix.tileview.tiles.Tile.decode(Tile.java:66)
at com.qozix.tileview.tiles.TileManager.decodeIndividualTile(TileManager.java:308)
at com.qozix.tileview.tiles.TileRenderTask.doInBackground(TileRenderTask.java:51)
at com.qozix.tileview.tiles.TileRenderTask.doInBackground(TileRenderTask.java:1)
at com.qozix.os.AsyncTask$2.call(AsyncTask.java:262)
at java.util.concurrent.FutureTask.run(FutureTask.java:234)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
at java.lang.Thread.run(Thread.java:841)
I'm using
tileviewlib-1.0.12
disklrucache-1.3.1
The text was updated successfully, but these errors were encountered:
glennschmidt
changed the title
Crash after suspending app
Crash when calling pause(): IllegalStateException: cache is closed
Oct 25, 2014
This is corrected in the latest commit (really just needed be less strict on what exceptions were caught). Note that I have not released a new .jar, you'll need to grab the source, nor have I updated the docs (just moved to AS from Eclipse, which had those tasks pretty well baked-in, still getting used to AS).
TileView causes a crash for me when i suspend my app and call the pause() method.
The TileView is being presented by a fragment and the sequence of events is:
Activity.onPause()
Fragment.onPause()
TileView.pause()
The crash doesn't happen if I don't call
TileView.pause()
, but i imagine that will lead to other problems.Is there something i am forgetting to do? The trace is:
I'm using
tileviewlib-1.0.12
disklrucache-1.3.1
The text was updated successfully, but these errors were encountered: