I am getting InvocationTargetException
possibly when the database is being created. Stacktrace at chrome://inspect/apps#apps
. Is it happening during NDK
translation ? I believe O_CLOEXEC
is not supported during NDK
translation. My app
works on ARC
when replacing sqlcipher api
with android sqlite api
. Here is the console log:
----------------------------------------
ARC Window Popup: 43.508ms
ARC appWindow Init: 1.936ms
ARC onInstalled HTML5 FS init: 356.065ms
Received a crash
prod: ARC
arc_app_name: *******
ptime: 3090.26100000483
crash_time: Mon Aug 03 2015 10:35:48 GMT+0530 (India Standard Time)
ver: 44.4410.376.13
arc_build_tag: arc-runtime-44.4410.376.13
message: Android unhandled exception
chrome_version: 44.0.2403.125
app_id: lpenmipoimkolgnmcncipajdpdglcneh
app_version: 0.9
app_package_name: com.*******
runtime_name: App Runtime for Chrome (Beta)
runtime_update_url: http://ift.tt/Lk3ZUG
width: 960
height: 632
is_minimized: false
is_maximized: false
is_fullscreen: false
runtime_updated_while_running: null
log_message: net.sqlcipher.database.SQLiteException
stack_trace: java.lang.RuntimeException
at android.os.Process$1.run(Process.java:425)
Caused by java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at android.os.Process$1.run(Process.java:418)
Caused by java.lang.RuntimeException
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4439)
at android.app.ActivityThread.access$1400(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1508)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:5291)
...3 more
Caused by net.sqlcipher.database.SQLiteException
at net.sqlcipher.database.SQLiteDatabase.dbopen(Native Method)
at net.sqlcipher.database.SQLiteDatabase.<init>(SQLiteDatabase.java:1922)
at *******.android.importfromasset.ImportUnencryptedDatabase.execute(ImportUnencryptedDatabase.java:59)
at com.*******.android.*******DatabaseLibrary.copyDataBase(*******DatabaseLibrary.java:204)
at com.*******.android.*******DatabaseLibrary.initialize(*******DatabaseLibrary.java:100)
at com.*******.android.*******DatabaseLibrary.<init>(*******DatabaseLibrary.java:74)
at com.*******.android.*******DatabaseLibrary.getInstance(*******DatabaseLibrary.java:159)
at com.*******.android.*******AndroidApplicationContext.setDaoSession(*******AndroidApplicationContext.java:238)
at com.*******.android.*******AndroidApplicationContext.setApplicationContext(*******AndroidApplicationContext.java:222)
at com.*******.android.*******AndroidApplicationContext.onCreate(*******AndroidApplicationContext.java:211)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4436)
...8 more
sig: net.sqlcipher.database.SQLiteException-d2d0ebd8
arch: x86-32
nacl_arch: x86-64
os: win
Crash reporting not enabled in Chrome. Please enable it.
FINISHED REPORTING CRASH
------------------------------
Aucun commentaire:
Enregistrer un commentaire