haidonghuang / osmdroid

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

Database error in bicycle mode #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
View the map in bicycle mode 

01-24 15:44:03.063: ERROR/Database(1602): Error updating
timestamp=2010-01-24T15:44:01.877 countused=countused + 1 using UPDATE
t_fscache SET timestamp=?, countused=? WHERE rendererID=? AND zoomLevel=?
AND tileX=? AND tileY=?
01-24 15:44:03.094: WARN/dalvikvm(1602): threadid=97: thread exiting with
uncaught exception (group=0x4001b170)
01-24 15:44:03.094: ERROR/AndroidRuntime(1602): Uncaught handler: thread
pool-10-thread-4 exiting due to uncaught exception
01-24 15:44:03.094: ERROR/AndroidRuntime(1602):
android.database.sqlite.SQLiteException: error code 5: database is locked
01-24 15:44:03.094: ERROR/AndroidRuntime(1602):     at
android.database.sqlite.SQLiteStatement.native_execute(Native Method)
01-24 15:44:03.094: ERROR/AndroidRuntime(1602):     at
android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:66)
01-24 15:44:03.094: ERROR/AndroidRuntime(1602):     at
android.database.sqlite.SQLiteDatabase.updateWithOnConflict(SQLiteDatabase.java:
1576)
01-24 15:44:03.094: ERROR/AndroidRuntime(1602):     at
android.database.sqlite.SQLiteDatabase.update(SQLiteDatabase.java:1499)
01-24 15:44:03.094: ERROR/AndroidRuntime(1602):     at
org.andnav.osm.services.util.OpenStreetMapTileProviderDataBase.incrementUse(Open
StreetMapTileProviderDataBase.java:110)
01-24 15:44:03.094: ERROR/AndroidRuntime(1602):     at
org.andnav.osm.services.util.OpenStreetMapTileProviderDataBase.addTileOrIncremen
t(OpenStreetMapTileProviderDataBase.java:114)
01-24 15:44:03.094: ERROR/AndroidRuntime(1602):     at
org.andnav.osm.services.util.OpenStreetMapTileFilesystemProvider.saveFile(OpenSt
reetMapTileFilesystemProvider.java:89)
01-24 15:44:03.094: ERROR/AndroidRuntime(1602):     at
org.andnav.osm.services.util.OpenStreetMapTileDownloader$TileLoader.run(OpenStre
etMapTileDownloader.java:104)
01-24 15:44:03.094: ERROR/AndroidRuntime(1602):     at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
01-24 15:44:03.094: ERROR/AndroidRuntime(1602):     at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
01-24 15:44:03.094: ERROR/AndroidRuntime(1602):     at
java.lang.Thread.run(Thread.java:1096)
01-24 15:44:03.102: INFO/Process(1170): Sending signal. PID: 1602 SIG: 3
01-24 15:44:03.102: WARN/ActivityManager(1170): Process org.andnav.osm has
crashed too many times: killing!

(on Milestone)

Original issue reported on code.google.com by petersch...@googlemail.com on 24 Jan 2010 at 2:46

GoogleCodeExporter commented 9 years ago
See also http://opensatnav.org/issues/show/108

I think the synchronisation in OpenStreetMapTileFilesystemProvider.saveFile is
supposed to be preventing this error, but obviously it's not.

Original comment by neilboyd on 10 Mar 2010 at 1:26

GoogleCodeExporter commented 9 years ago
There's no database any more

Original comment by neilboyd on 8 Jul 2010 at 2:35