openbmap / radiocells-nlp-android

radiocells.org Unified Network Location Provider
https://radiocells.org
Other
41 stars 13 forks source link

crash #45

Closed TjrGithub closed 5 years ago

TjrGithub commented 5 years ago

Enabled openbmap with offline database de.sqlite as of 2019-04-06 (size 1.048.301.568 Bytes). It promptly crashed.

System: LineageOS 15.1 (current updates) on whyred, with xposed&xprivacylua but no restrictions on openbmap.

java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:353) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383) at java.util.concurrent.FutureTask.setException(FutureTask.java:252) at java.util.concurrent.FutureTask.run(FutureTask.java:271) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764) Caused by: android.database.sqlite.SQLiteDatabaseCorruptException: database disk image is malformed (code 11): , while compiling: SELECT count(name) FROM sqlite_master WHERE type='table' AND name='wifi_zone' at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method) at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:890) at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:501) at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588) at android.database.sqlite.SQLiteProgram.(SQLiteProgram.java:58) at android.database.sqlite.SQLiteQuery.(SQLiteQuery.java:37) at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:46) at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1392) at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1331) at org.openbmap.unifiedNlp.geocoders.OfflineProvider$1.hasWifiTables(OfflineProvider.java:495) at org.openbmap.unifiedNlp.geocoders.OfflineProvider$1.doInBackground(OfflineProvider.java:208) at org.openbmap.unifiedNlp.geocoders.OfflineProvider$1.doInBackground(OfflineProvider.java:106) at android.os.AsyncTask$2.call(AsyncTask.java:333) at java.util.concurrent.FutureTask.run(FutureTask.java:266) ... 4 more

wish7code commented 5 years ago

Thanks for reporting! Sounds like database corruption, potentially server-side issue..

Have rebuilt server-side databases following your hint, so could you try to download offline database once again and report whether problem persists?

TjrGithub commented 5 years ago

The database de.sqlite as of 2019-04-18 03:25:52 CEST is working fine.

wish7code commented 5 years ago

Glad to hear! In case of problems, please reopen issue..