dji-sdk / Mobile-SDK-Android

DJI Mobile SDK for Android: http://developer.dji.com/mobile-sdk/
Other
977 stars 580 forks source link

Database malformed causes application crash #209

Closed justintuchek closed 4 years ago

justintuchek commented 6 years ago

Second: SM-N950U

net.sqlcipher.database.SQLiteDatabaseCorruptException: error code 11: database disk image is malformed at net.sqlcipher.database.SQLiteStatement.native_execute(SQLiteStatement.java) at net.sqlcipher.database.SQLiteStatement.execute(SQLiteStatement.java:58) at net.sqlcipher.database.SQLiteDatabase.execSQL(SQLiteDatabase.java:2319) at dji.thirdparty.afinal.FinalDb.exeSqlInfo at dji.thirdparty.afinal.FinalDb.save at dji.midware.data.forbid.db.FlyfrbBaseDbManager.save at dji.pilot.flyforbid.c$1.a at dji.pilot.flyforbid.c$1.onSuccess at dji.thirdparty.afinal.http.HttpHandler.onProgressUpdate at dji.thirdparty.afinal.core.AsyncTask$InternalHandler.handleMessage at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6823) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1563) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1451)

Third: Pixel XL

net.sqlcipher.database.SQLiteDatabaseCorruptException: database disk image is malformed: DELETE FROM polygon_tfr_remote_data at net.sqlcipher.database.SQLiteDatabase.native_execSQL(SQLiteDatabase.java) at net.sqlcipher.database.SQLiteDatabase.execSQL(SQLiteDatabase.java:2265) at dji.thirdparty.afinal.FinalDb.deleteAll at dji.midware.data.forbid.db.FlyfrbBaseDbManager.deleteAll at dji.pilot.flyforbid.c$1.a at dji.pilot.flyforbid.c$1.onSuccess at dji.thirdparty.afinal.http.HttpHandler.onProgressUpdate at dji.thirdparty.afinal.core.AsyncTask$InternalHandler.handleMessage at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6494) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

justintuchek commented 6 years ago

Fourth occurrence. Device: LGMP260 Device Family: LGMP260 Android Version: 7.0 SDK Version: 4.3.2

java.lang.IllegalStateException: database not open at net.sqlcipher.database.SQLiteDatabase.execSQL(SQLiteDatabase.java:2262) at dji.thirdparty.afinal.FinalDb.deleteAll at dji.midware.data.forbid.db.FlyfrbBaseDbManager.deleteAll at dji.pilot.flyforbid.c$1.a at dji.pilot.flyforbid.c$1.onSuccess at dji.thirdparty.afinal.http.HttpHandler.onProgressUpdate at dji.thirdparty.afinal.core.AsyncTask$InternalHandler.handleMessage at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6316) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:872) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)

justintuchek commented 6 years ago

If it's of any relevance - the release that these are coming from was our 3.x -> 4.x SDK migration.

Michael-DJI commented 6 years ago

@jtuchek which version of DJI SDK? did you try 4.4.1?

justintuchek commented 6 years ago

@Michael-DJI 4.3.2 is the SDK Version being used in those crash reports.

No, I haven't tried 4.4.1. Unless if there's a way to force an NFZ sync event I can't really try and see if this works. Only wait a few weeks and see if there's an absence of reported crashes.

Michael-DJI commented 5 years ago

did you resolve your issue with new version? if not, pls report the issue to dev@dji.com it's the official channel to request DJI SDK support now.