opensciencemap / vtm

a vector-tile map library written in java - running on android, desktop and within the browser
GNU Lesser General Public License v3.0
238 stars 176 forks source link

Random crash when scrolling around in map #91

Closed stleusc closed 9 years ago

stleusc commented 10 years ago

Not 100% sure how to reproduce it but maybe you still can look at it. It mainly happened when scrolling around the map with a BitmapLayer. Does not happen often.... will update when I know more.

Line: node.parent.item.refs--;

java.lang.NullPointerException
        at org.oscim.layers.tile.MapTile.unlock(MapTile.java:199)
        at org.oscim.layers.tile.TileSet.releaseTiles(TileSet.java:64)
        at org.oscim.layers.tile.TileSet.setTiles(TileSet.java:80)
        at org.oscim.layers.tile.TileManager.getActiveTiles(TileManager.java:337)
        at org.oscim.layers.tile.TileRenderer.update(TileRenderer.java:97)
        at org.oscim.layers.tile.VectorTileRenderer.update(VectorTileRenderer.java:37)
        at org.oscim.renderer.MapRenderer.draw(MapRenderer.java:217)
        at org.oscim.renderer.MapRenderer.onDrawFrame(MapRenderer.java:172)
        at org.oscim.android.gl.GLView$GLRenderer.onDrawFrame(GLView.java:48)
        at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1531)
        at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1248)
hjanetzek commented 9 years ago

If this happend when scaling back and forth quickly at the lowest zoom-levels I might have found the cause

stleusc commented 9 years ago

No, I never use the lowest zoomlevel. Glad you found an issue but I'm sure it's not the one I'm seeing.

hjanetzek commented 9 years ago

I've fixed a few issues with MapTile state handling in current master. Reopen as needed!