backtrace:
#00 pc 000000000004b80c /system/lib/libc.so (tgkill+12)
#01 pc 000000000001a4d3 /system/lib/libc.so (abort+54)
#02 pc 0000000000006683 /system/lib/liblog.so (__android_log_assert+154)
#03 pc 000000000003a3a5 /system/lib/libhwui.so (_ZN7android10uirenderer12renderthread10EglManager11damageFrameERKNS1_5FrameERK6SkRect+204)
#04 pc 000000000003842d /system/lib/libhwui.so (_ZN7android10uirenderer12renderthread14OpenGLPipeline4drawERKNS1_5FrameERK6SkRectS8_RKNS0_12FrameBuilder13LightGeometryEPNS0_16LayerUpdateQueueERKNS0_4RectEbRKNS0_15BakedOpRenderer9LightInfoERKNSt3__16vectorINS_2spINS0_10RenderNodeEEENSM_9allocatorISQ_EEEEPNS0_19FrameInfoVisualizerE+32)
#05 pc 0000000000036dfd /system/lib/libhwui.so (_ZN7android10uirenderer12renderthread13CanvasContext4drawEv+144)
#06 pc 000000000003947f /system/lib/libhwui.so (_ZN7android10uirenderer12renderthread13DrawFrameTask3runEv+138)
#07 pc 000000000003e0cb /system/lib/libhwui.so (_ZN7android10uirenderer12renderthread12RenderThread10threadLoopEv+166)
#08 pc 000000000000d479 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+144)
#09 pc 00000000000a1629 /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+80)
#10 pc 0000000000048a89 /system/lib/libc.so (_ZL15__pthread_startPv+24)
#11 pc 000000000001b34f /system/lib/libc.so (__start_thread+32)
Hello @rohit
That native stack trace does not reference SQLCipher for Android at all. Is there a reason you believe SQLCipher for Android is the cause? Are you able to run the SQLCipher for Android test suite on the device of issue?
“main” prio=5 tid=1 Native
| group=“main” sCount=1 dsCount=0 obj=0x75b55598 self=0xf4fb6500
| sysTid=10763 nice=0 cgrp=bg_non_interactive sched=0/0 handle=0xf7748d54
| state=R schedstat=( 0 0 0 ) utm=934 stm=31 core=2 HZ=100
| stack=0xff113000-0xff115000 stackSize=8MB
| held mutexes=
#00 pc 000000000010dbc8 /data/app/com.mobicule.client-2/lib/arm/libsqlcipher.so (???)
at net.sqlcipher.database.SQLiteCompiledSql.native_compile (Native method)
at net.sqlcipher.database.SQLiteCompiledSql.compile (SourceFile:91)
at net.sqlcipher.database.SQLiteCompiledSql. (SourceFile:64)
at net.sqlcipher.database.SQLiteProgram. (SourceFile:89)
at net.sqlcipher.database.SQLiteQuery. (SourceFile:48)
at net.sqlcipher.database.SQLiteDirectCursorDriver.query (SourceFile:60)
at net.sqlcipher.database.SQLiteDatabase.rawQueryWithFactory (SourceFile:2012)
at net.sqlcipher.database.SQLiteDatabase.rawQuery (SourceFile:1898)
at net.sqlcipher.database.SQLiteDatabase.keyDatabase (SourceFile:2647)
at net.sqlcipher.database.SQLiteDatabase.openDatabaseInternal (SourceFile:2577)
at net.sqlcipher.database.SQLiteDatabase.openDatabase (SourceFile:1243)
at net.sqlcipher.database.SQLiteDatabase.openOrCreateDatabase (SourceFile:1318)
at net.sqlcipher.database.SQLiteOpenHelper.getWritableDatabase (SourceFile:166)
- locked <0x0123579b> (a com.mobicule.device.a.a.b)
at net.sqlcipher.database.SQLiteOpenHelper.getWritableDatabase (SourceFile:135) - locked <0x0123579b> (a com.mobicule.device.a.a.b)
at net.sqlcipher.database.SQLiteOpenHelper.getWritableDatabase (SourceFile:131) - locked <0x0123579b> (a com.mobicule.device.a.a.b)
@developernotes
PFB ANR Stack Trace
“main” prio=5 tid=1 Native
| group=“main” sCount=1 dsCount=0 obj=0x75b55598 self=0xf4fb6500
| sysTid=10763 nice=0 cgrp=bg_non_interactive sched=0/0 handle=0xf7748d54
| state=R schedstat=( 0 0 0 ) utm=934 stm=31 core=2 HZ=100
| stack=0xff113000-0xff115000 stackSize=8MB
| held mutexes=
#00 pc 000000000010dbc8 /data/app/com.mobicule.client-2/lib/arm/libsqlcipher.so (???)
at net.sqlcipher.database.SQLiteCompiledSql.native_compile (Native method)
at net.sqlcipher.database.SQLiteCompiledSql.compile (SourceFile:91)
at net.sqlcipher.database.SQLiteCompiledSql. (SourceFile:64)
at net.sqlcipher.database.SQLiteProgram. (SourceFile:89)
at net.sqlcipher.database.SQLiteQuery. (SourceFile:48)
at net.sqlcipher.database.SQLiteDirectCursorDriver.query (SourceFile:60)
at net.sqlcipher.database.SQLiteDatabase.rawQueryWithFactory (SourceFile:2012)
at net.sqlcipher.database.SQLiteDatabase.rawQuery (SourceFile:1898)
at net.sqlcipher.database.SQLiteDatabase.keyDatabase (SourceFile:2647)
at net.sqlcipher.database.SQLiteDatabase.openDatabaseInternal (SourceFile:2577)
at net.sqlcipher.database.SQLiteDatabase.openDatabase (SourceFile:1243)
at net.sqlcipher.database.SQLiteDatabase.openOrCreateDatabase (SourceFile:1318)
at net.sqlcipher.database.SQLiteOpenHelper.getWritableDatabase (SourceFile:166)
- locked <0x0123579b> (a com.mobicule.device.a.a.b)
at net.sqlcipher.database.SQLiteOpenHelper.getWritableDatabase (SourceFile:135) - locked <0x0123579b> (a com.mobicule.device.a.a.b)
at net.sqlcipher.database.SQLiteOpenHelper.getWritableDatabase (SourceFile:131) - locked <0x0123579b> (a com.mobicule.device.a.a.b)
Hello @rohit. There is not enough information to speculate about what is happening here. Can you provide additional information about:
- Exactly what the application is doing when the crash occurs
- What the state of the database is (e.g. does it exist already, is this an upgrade scenario)
- Whether this is reproducible across all devices and operating systems (or only a subset)
- Whether you are able to reproduce any crashes using the SQLCipher for Android Test Suite