Android Question SQLCipher library 2.30 issue Android 6.0

tucano2000

Active Member
Licensed User
Longtime User
My application was running smoothly in previous versions of Android , but after receiving messages from users who have upgraded to Android 6 and I take the test in the emulator that android version of the log returned in B4A is shown below :


B4X:
main_activity_create (B4A line: 517)
SQL1.Initialize(File.DirInternal, "config_geral
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "EVP_CipherFinal" referenced by "/data/app/com.infranote-1/lib/arm/libsqlcipher_android.so"...
    at java.lang.Runtime.loadLibrary(Runtime.java:372)
    at java.lang.System.loadLibrary(System.java:1076)
    at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:143)
    at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:137)
    at anyhwheresoftware.b4a.objects.sqlcipher.SQLCipher.Initialize(SQLCipher.java:50)
    at com.infranote.main._activity_create(main.java:906)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:187)
    at com.infranote.main.afterFirstLayout(main.java:102)
    at com.infranote.main.access$000(main.java:17)
    at com.infranote.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:148)
    at android.app.ActivityThread.main(ActivityThread.java:5417)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

My B4A IDE is v5.20 and SQLCipher library is v 1.20.

Related issues:

https://discuss.zetetic.net/t/sqlcipher-at-android-marshmallow/796
https://discuss.zetetic.net/t/sqlcipher-for-android-3-3-1-1-release/806

https://www.zetetic.net/sqlcipher/open-source/

I think that this library 1.20 in B4A needs update. (https://www.b4x.com/android/forum/threads/android-database-encryption-with-sqlcipher-library.14965/)
 
Last edited:

tucano2000

Active Member
Licensed User
Longtime User
This library 1.30 here in Android device and emulator does my test app close when initialize SQL in Android 4, 5 or 6.

i do all the steps:

- Unzip the file.
- Copy all files from the InternalLibrariesFolder to the internal libraries folder.
- Add icudt46l.zip from the NativeResources folder to your project as described above.
- You should reference both SQL and SQLCipher in your project.
- Starting from B4A v3.50 you need to disable the virtual assets folder (a new debugging feature). This is done by adding the following line to the main activity:
Code:
#DebuggerForceStandardAssets: true



What am I doing wrong? The library is ok ?

my source code.

B4X:
#Region  Project Attributes
    #ApplicationLabel: B4A Example
    #VersionCode: 1
    #VersionName:
    'SupportedOrientations possible values: unspecified, landscape or portrait.
    #SupportedOrientations: unspecified
    #CanInstallToExternalStorage: False
#End Region

#Region  Activity Attributes
    #FullScreen: False
    #IncludeTitle: True
    #DebuggerForceStandardAssets: true
#End Region

Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.
    Dim SQL1 As SQL
    Dim SQL2 As SQLCipher
End Sub

Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.

End Sub

Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    'Activity.LoadLayout("Layout1")
    SQL2.Initialize(File.DirInternal,"Test.db",True,"1234","")   '**** HERE APPLICATION CLOSE *****
    SQL2.ExecNonQuery("CREATE TABLE IF NOT EXISTS test (test123 TEXT null)")
    SQL2.Close
End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub
 
Last edited:
Upvote 0

tucano2000

Active Member
Licensed User
Longtime User
Don't test it on the emulator. It will not work.

Which error do you get on the real device?

App close but no log error on real device Android 5. if i go back old libraries this application works. it occurs when initialize sql in debug mode is possible to see.
 
Last edited:
Upvote 0

tucano2000

Active Member
Licensed User
Longtime User
Is possible to see application close in debug mode in this line

SQL2.Initialize(File.DirInternal,"Test.db",True,"1234","")

and not continue to the next line.
 
Upvote 0

tucano2000

Active Member
Licensed User
Longtime User
My log:

LogCat connected to: xxxxxxxxxx
--------- beginning of crash
--------- beginning of system
--------- beginning of main
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **


Only this
 
Upvote 0

tucano2000

Active Member
Licensed User
Longtime User
i change the code:

Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
Log("First Line OK")
SQL2.Initialize(File.DirInternal,"Test.db",True,"1234","")
Log("Second line OK")
SQL2.ExecNonQuery("CREATE TABLE IF NOT EXISTS test (test123 TEXT null)")
Log("Create database OK")
SQL2.Close
Log("Works!!!")
End Sub


Log (b4A IDE don't show error message in log):

** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
First Line OK

I forgot to comment this warning message:

file icudt46l.zip is not used. (warning #15)
 
Last edited:
Upvote 0

tucano2000

Active Member
Licensed User
Longtime User
unchecking filter log


...

26: boolean net.sqlcipher.database.SQLiteDatabase.mTransactionIsSuccessful
Failed to register native method net.sqlcipher.database.SQLiteDatabase.native_rekey([C)V in /data/app/b4a.example-2/base.apk
art/runtime/jni_internal.cc:771] JNI FatalError called: RegisterNatives failed for 'net/sqlcipher/database/SQLiteDatabase'; aborting...
Start proc com.google.android.apps.docs for broadcast com.google.android.apps.docs/.receivers.AppPackageAddRemoveReceiver: pid=19573 uid=10063 gids={50063, 9997, 1028, 3003, 1015} abi=armeabi-v7a
Explicit concurrent mark sweep GC freed 709(30KB) AllocSpace objects, 0(0B) LOS objects, 40% free, 6MB/11MB, paused 276us total 23.515ms
Explicit concurrent mark sweep GC freed 5(160B) AllocSpace objects, 0(0B) LOS objects, 40% free, 6MB/11MB, paused 267us total 19.603ms
Killing 19353:com.antutu.powersaver/u0a133 (adj 15): empty #7
triggers: (rate: 0:5) (7761 sw vsyncs) (0 skipped) (40:114365 vsyncs) (42:134207)
Explicit concurrent mark sweep GC freed 5(160B) AllocSpace objects, 0(0B) LOS objects, 40% free, 6MB/11MB, paused 269us total 23.899ms
setDelay, handle: 1598182229 delay: 200000000
<BST> set delay: 200000000ns
<BST> set delay of <BOSCH BMC150 Acceleration Sensor> to 200ms
art/runtime/runtime.cc:284] Runtime aborting...
art/runtime/runtime.cc:284] Aborting thread:
art/runtime/runtime.cc:284] "main" prio=5 tid=1 Native
art/runtime/runtime.cc:284] | group="" sCount=0 dsCount=0 obj=0x73f6e4c0 self=0xb8716568
art/runtime/runtime.cc:284] | sysTid=19533 nice=0 cgrp=apps sched=0/0 handle=0xb6f8dec8
art/runtime/runtime.cc:284] | state=R schedstat=( 0 0 0 ) utm=7 stm=6 core=2 HZ=100
art/runtime/runtime.cc:284] | stack=0xbe6fd000-0xbe6ff000 stackSize=8MB
art/runtime/runtime.cc:284] | held mutexes= "abort lock" "mutator lock"(shared held)
art/runtime/runtime.cc:284] native: #00 pc 00004d50 /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
art/runtime/runtime.cc:284] native: #01 pc 000034c1 /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
art/runtime/runtime.cc:284] native: #02 pc 0025bf55 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::mirror::ArtMethod*)+84)
art/runtime/runtime.cc:284] native: #03 pc 0023fbd3 /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+162)
art/runtime/runtime.cc:284] native: #04 pc 0022ef41 /system/lib/libart.so (art::AbortState::DumpThread(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, art::Thread*)+32)
art/runtime/runtime.cc:284] native: #05 pc 0022f1e3 /system/lib/libart.so (art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)+410)
art/runtime/runtime.cc:284] native: #06 pc 0022f3a3 /system/lib/libart.so (art::Runtime::Abort()+82)
art/runtime/runtime.cc:284] native: #07 pc 000a7111 /system/lib/libart.so (art::LogMessage::~LogMessage()+1360)
art/runtime/runtime.cc:284] native: #08 pc 001cdd5b /system/lib/libart.so (art::JNI::FatalError(_JNIEnv*, char const*)+66)
art/runtime/runtime.cc:284] native: #09 pc 00001f77 /system/lib/libnativehelper.so (jniRegisterNativeMethods+98)
art/runtime/runtime.cc:284] native: #10 pc 00006c27 /data/app/b4a.example-2/lib/arm/libdatabase_sqlcipher.so (???)
art/runtime/runtime.cc:284] native: #11 pc 00006c95 /data/app/b4a.example-2/lib/arm/libdatabase_sqlcipher.so (???)
art/runtime/runtime.cc:284] native: #12 pc 001e66cf /system/lib/libart.so (art::JavaVMExt::LoadNativeLibrary(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, art::Handle<art::mirror::ClassLoader>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*)+1610)
art/runtime/runtime.cc:284] native: #13 pc 0020e0d7 /system/lib/libart.so (art::Runtime_nativeLoad(_JNIEnv*, _jclass*, _jstring*, _jobject*, _jstring*)+534)
art/runtime/runtime.cc:284] native: #14 pc 00077c99 /system/framework/arm/boot.oat (Java_java_lang_Runtime_nativeLoad__Ljava_lang_String_2Ljava_lang_ClassLoader_2Ljava_lang_String_2+152)
art/runtime/runtime.cc:284] at java.lang.Runtime.nativeLoad(Native method)
art/runtime/runtime.cc:284] at java.lang.Runtime.doLoad(Runtime.java:428)
art/runtime/runtime.cc:284] - locked <0x3ef46358> (a java.lang.Runtime)
art/runtime/runtime.cc:284] at java.lang.Runtime.loadLibrary(Runtime.java:369)
art/runtime/runtime.cc:284] at java.lang.System.loadLibrary(System.java:989)
art/runtime/runtime.cc:284] at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:114)
art/runtime/runtime.cc:284] at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:107)
art/runtime/runtime.cc:284] at anyhwheresoftware.b4a.objects.sqlcipher.SQLCipher.Initialize(SQLCipher.java:50)
art/runtime/runtime.cc:284] at b4a.example.main._activity_create(main.java:324)
art/runtime/runtime.cc:284] at java.lang.reflect.Method.invoke!(Native method)
art/runtime/runtime.cc:284] at java.lang.reflect.Method.invoke(Method.java:372)
art/runtime/runtime.cc:284] at anywheresoftware.b4a.BA.raiseEvent2(BA.java:187)
art/runtime/runtime.cc:284] at b4a.example.main.afterFirstLayout(main.java:102)
art/runtime/runtime.cc:284] at b4a.example.main.access$000(main.java:17)
art/runtime/runtime.cc:284] at b4a.example.main$WaitForLayout.run(main.java:80)
art/runtime/runtime.cc:284] at android.os.Handler.handleCallback(Handler.java:739)
art/runtime/runtime.cc:284] at android.os.Handler.dispatchMessage(Handler.java:95)
art/runtime/runtime.cc:284] at android.os.Looper.loop(Looper.java:135)
art/runtime/runtime.cc:284] at android.app.ActivityThread.main(ActivityThread.java:5310)
art/runtime/runtime.cc:284] at java.lang.reflect.Method.invoke!(Native method)
art/runtime/runtime.cc:284] at java.lang.reflect.Method.invoke(Method.java:372)
art/runtime/runtime.cc:284] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
art/runtime/runtime.cc:284] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)
art/runtime/runtime.cc:284] Dumping all threads without appropriate locks held: thread list lock mutator lock
art/runtime/runtime.cc:284] All threads:
art/runtime/runtime.cc:284] DALVIK THREADS (13):
art/runtime/runtime.cc:284] "main" prio=5 tid=1 Native
art/runtime/runtime.cc:284] | group="" sCount=0 dsCount=0 obj=0x73f6e4c0 self=0xb8716568
art/runtime/runtime.cc:284] | sysTid=19533 nice=0 cgrp=apps sched=0/0 handle=0xb6f8dec8
art/runtime/runtime.cc:284] | state=R schedstat=( 0 0 0 ) utm=8 stm=8 core=0 HZ=100
art/runtime/runtime.cc:284] | stack=0xbe6fd000-0xbe6ff000 stackSize=8MB
art/runtime/runtime.cc:284] | held mutexes= "abort lock"
art/runtime/runtime.cc:284] native: #00 pc 00004d50 /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
art/runtime/runtime.cc:284] native: #01 pc 000034c1 /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
art/runtime/runtime.cc:284] native: #02 pc 0025bf55 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::mirror::ArtMethod*)+84)
art/runtime/runtime.cc:284] native: #03 pc 0023fbd3 /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+162)
art/runtime/runtime.cc:284] native: #04 pc 00248b35 /system/lib/libart.so (art::ThreadList::DumpLocked(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)+120)
art/runtime/runtime.cc:284] native: #05 pc 0022f159 /system/lib/libart.so (art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)+272)
art/runtime/runtime.cc:284] native: #06 pc 0022f3a3 /system/lib/libart.so (art::Runtime::Abort()+82)
art/runtime/runtime.cc:284] native: #07 pc 000a7111 /system/lib/libart.so (art::LogMessage::~LogMessage()+1360)
art/runtime/runtime.cc:284] native: #08 pc 001cdd5b /system/lib/libart.so (art::JNI::FatalError(_JNIEnv*, char const*)+66)
art/runtime/runtime.cc:284] native: #09 pc 00001f77 /system/lib/libnativehelper.so (jniRegisterNativeMethods+98)
art/runtime/runtime.cc:284] native: #10 pc 00006c27 /data/app/b4a.example-2/lib/arm/libdatabase_sqlcipher.so (???)
art/runtime/runtime.cc:284] native: #11 pc 00006c95 /data/app/b4a.example-2/lib/arm/libdatabase_sqlcipher.so (???)
art/runtime/runtime.cc:284] native: #12 pc 001e66cf /system/lib/libart.so (art::JavaVMExt::LoadNativeLibrary(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, art::Handle<art::mirror::ClassLoader>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*)+1610)
art/runtime/runtime.cc:284] native: #13 pc 0020e0d7 /system/lib/libart.so (art::Runtime_nativeLoad(_JNIEnv*, _jclass*, _jstring*, _jobject*, _jstring*)+534)
art/runtime/runtime.cc:284] native: #14 pc 00077c99 /system/framework/arm/boot.oat (Java_java_lang_Runtime_nativeLoad__Ljava_lang_String_2Ljava_lang_ClassLoader_2Ljava_lang_String_2+152)
art/runtime/runtime.cc:284] at java.lang.Runtime.nativeLoad(Native method)
art/runtime/runtime.cc:284] at java.lang.Runtime.doLoad(Runtime.java:428)
art/runtime/runtime.cc:284] - locked <0x3ef46358> (a java.lang.Runtime)
art/runtime/runtime.cc:284] at java.lang.Runtime.loadLibrary(Runtime.java:369)
art/runtime/runtime.cc:284] at java.lang.System.loadLibrary(System.java:989)
art/runtime/runtime.cc:284] at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:114)
art/runtime/runtime.cc:284] at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:107)
art/runtime/runtime.cc:284] at anyhwheresoftware.b4a.objects.sqlcipher.SQLCipher.Initialize(SQLCipher.java:50)
art/runtime/runtime.cc:284] at b4a.example.main._activity_create(main.java:324)
art/runtime/runtime.cc:284] at java.lang.reflect.Method.invoke!(Native method)
art/runtime/runtime.cc:284] at java.lang.reflect.Method.invoke(Method.java:372)
art/runtime/runtime.cc:284] at anywheresoftware.b4a.BA.raiseEvent2(BA.java:187)
art/runtime/runtime.cc:284] at b4a.example.main.afterFirstLayout(main.java:102)
art/runtime/runtime.cc:284] at b4a.example.main.access$000(main.java:17)
art/runtime/runtime.cc:284] at b4a.example.main$WaitForLayout.run(main.java:80)
art/runtime/runtime.cc:284] at android.os.Handler.handleCallback(Handler.java:739)
art/runtime/runtime.cc:284] at android.os.Handler.dispatchMessage(Handler.java:95)
art/runtime/runtime.cc:284] at android.os.Looper.loop(Looper.java:135)
art/runtime/runtime.cc:284] at android.app.ActivityThread.main(ActivityThread.java:5310)
art/runtime/runtime.cc:284] at java.lang.reflect.Method.invoke!(Native method)
art/runtime/runtime.cc:284] at java.lang.reflect.Method.invoke(Method.java:372)
art/runtime/runtime.cc:284] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
art/runtime/runtime.cc:284] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)
art/runtime/runtime.cc:284]
art/runtime/runtime.cc:284] "Heap thread pool worker thread 2" prio=5 tid=2 Native (still starting up)
art/runtime/runtime.cc:284] | group="" sCount=0 dsCount=0 obj=0x0 self=0xb89147e8
art/runtime/runtime.cc:284] | sysTid=19541 nice=0 cgrp=apps sched=0/0 handle=0xb871ac68
art/runtime/runtime.cc:284] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=2 HZ=100
art/runtime/runtime.cc:284] | stack=0xb4762000-0xb4764000 stackSize=1020KB
art/runtime/runtime.cc:284] | held mutexes=
art/runtime/runtime.cc:284] kernel: (couldn't read /proc/self/task/19541/stack)
art/runtime/runtime.cc:284] native: #00 pc 000126b8 /system/lib/libc.so (syscall+28)
art/runtime/runtime.cc:284] native: #01 pc 000a9e4b /system/lib/libart.so (art::ConditionVariable::Wait(art::Thread*)+98)
art/runtime/runtime.cc:284] native: #02 pc 00249ddd /system/lib/libart.so (art::ThreadPool::GetTask(art::Thread*)+64)
art/runtime/runtime.cc:284] native: #03 pc 00249d77 /system/lib/libart.so (art::ThreadPoolWorker::Run()+62)
art/runtime/runtime.cc:284] native: #04 pc 0024a665 /system/lib/libart.so (art::ThreadPoolWorker::Callback(void*)+60)
art/runtime/runtime.cc:284] native: #05 pc 00015e7b /system/lib/libc.so (__pthread_start(void*)+30)
art/runtime/runtime.cc:284] native: #06 pc 00013e37 /system/lib/libc.so (__start_thread+6)
art/runtime/runtime.cc:284] (no managed stack frames)
art/runtime/runtime.cc:284]
art/runtime/runtime.cc:284] "Heap thread pool worker thread 1" prio=5 tid=3 Native (still starting up)
art/runtime/runtime.cc:284] | group="" sCount=0 dsCount=0 obj=0x0 self=0xb8911fd8
art/runtime/runtime.cc:284] | sysTid=19540 nice=0 cgrp=apps sched=0/0 handle=0xb89156f8
art/runtime/runtime.cc:284] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=2 HZ=100
art/runtime/runtime.cc:284] | stack=0xb4862000-0xb4864000 stackSize=1020KB
art/runtime/runtime.cc:284] | held mutexes=
art/runtime/runtime.cc:284] kernel: (couldn't read /proc/self/task/19540/stack)
art/runtime/runtime.cc:284] native: #00 pc 000126b8 /system/lib/libc.so (syscall+28)
art/runtime/runtime.cc:284] native: #01 pc 000a9e4b /system/lib/libart.so (art::ConditionVariable::Wait(art::Thread*)+98)
art/runtime/runtime.cc:284] native: #02 pc 00249ddd /system/lib/libart.so (art::ThreadPool::GetTask(art::Thread*)+64)
art/runtime/runtime.cc:284] native: #03 pc 00249d77 /system/lib/libart.so (art::ThreadPoolWorker::Run()+62)
art/runtime/runtime.cc:284] native: #04 pc 0024a665 /system/lib/libart.so (art::ThreadPoolWorker::Callback(void*)+60)
art/runtime/runtime.cc:284] native: #05 pc 00015e7b /system/lib/libc.so (__pthread_start(void*)+30)
art/runtime/runtime.cc:284] native: #06 pc 00013e37 /system/lib/libc.so (__start_thread+6)
art/runtime/runtime.cc:284] (no managed stack frames)
art/runtime/runtime.cc:284]
art/runtime/runtime.cc:284] "Heap thread pool worker thread 0" prio=5 tid=4 Native (still starting up)
art/runtime/runtime.cc:284] | group="" sCount=0 dsCount=0 obj=0x0 self=0xb890c270
art/runtime/runtime.cc:284] | sysTid=19539 nice=0 cgrp=apps sched=0/0 handle=0xb8915a78
art/runtime/runtime.cc:284] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=2 HZ=100
art/runtime/runtime.cc:284] | stack=0xb4962000-0xb4964000 stackSize=1020KB
art/runtime/runtime.cc:284] | held mutexes=
art/runtime/runtime.cc:284] kernel: (couldn't read /proc/self/task/19539/stack)
art/runtime/runtime.cc:284] native: #00 pc 000126b8 /system/lib/libc.so (syscall+28)
art/runtime/runtime.cc:284] native: #01 pc 000a9e4b /system/lib/libart.so (art::ConditionVariable::Wait(art::Thread*)+98)
art/runtime/runtime.cc:284] native: #02 pc 00249ddd /system/lib/libart.so (art::ThreadPool::GetTask(art::Thread*)+64)
art/runtime/runtime.cc:284] native: #03 pc 00249d77 /system/lib/libart.so (art::ThreadPoolWorker::Run()+62)
art/runtime/runtime.cc:284] native: #04 pc 0024a665 /system/lib/libart.so (art::ThreadPoolWorker::Callback(void*)+60)
art/runtime/runtime.cc:284] native: #05 pc 00015e7b /system/lib/libc.so (__pthread_start(void*)+30)
art/runtime/runtime.cc:284] native: #06 pc 00013e37 /system/lib/libc.so (__start_thread+6)
art/runtime/runtime.cc:284] (no managed stack frames)
art/runtime/runtime.cc:284]
art/runtime/runtime.cc:284] "Signal Catcher" prio=5 tid=5 WaitingInMainSignalCatcherLoop
art/runtime/runtime.cc:284] | group="" sCount=0 dsCount=0 obj=0x12c00080 self=0xb890b040
art/runtime/runtime.cc:284] | sysTid=19542 nice=0 cgrp=apps sched=0/0 handle=0xb89123b0
art/runtime/runtime.cc:284] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=0 HZ=100
art/runtime/runtime.cc:284] | stack=0xb4658000-0xb465a000 stackSize=1012KB
art/runtime/runtime.cc:284] | held mutexes=
art/runtime/runtime.cc:284] kernel: (couldn't read /proc/self/task/19542/stack)
art/runtime/runtime.cc:284] native: #00 pc 0003cf34 /system/lib/libc.so (__rt_sigtimedwait+12)
art/runtime/runtime.cc:284] native: #01 pc 000175bd /system/lib/libc.so (sigwait+24)
art/runtime/runtime.cc:284] native: #02 pc 00232fa7 /system/lib/libart.so (art::SignalCatcher::WaitForSignal(art::Thread*, art::SignalSet&)+86)
art/runtime/runtime.cc:284] native: #03 pc 00234b31 /system/lib/libart.so (art::SignalCatcher::Run(void*)+212)
art/runtime/runtime.cc:284] native: #04 pc 00015e7b /system/lib/libc.so (__pthread_start(void*)+30)
art/runtime/runtime.cc:284] native: #05 pc 00013e37 /system/lib/libc.so (__start_thread+6)
art/runtime/runtime.cc:284] (no managed stack frames)
art/runtime/runtime.cc:284]
art/runtime/runtime.cc:284] "ReferenceQueueDaemon" prio=5 tid=6 Waiting
art/runtime/runtime.cc:284] | group="" sCount=0 dsCount=0 obj=0x12c06080 self=0xb8914c88
art/runtime/runtime.cc:284] | sysTid=19543 nice=0 cgrp=apps sched=0/0 handle=0xb890b418
art/runtime/runtime.cc:284] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=1 HZ=100
art/runtime/runtime.cc:284] | stack=0xb4550000-0xb4552000 stackSize=1036KB
art/runtime/runtime.cc:284] | held mutexes=
art/runtime/runtime.cc:284] kernel: (couldn't read /proc/self/task/19543/stack)
art/runtime/runtime.cc:284] native: #00 pc 000126b8 /system/lib/libc.so (syscall+28)
art/runtime/runtime.cc:284] native: #01 pc 000a9e4b /system/lib/libart.so (art::ConditionVariable::Wait(art::Thread*)+98)
art/runtime/runtime.cc:284] native: #02 pc 001fea81 /system/lib/libart.so (art::Monitor::Wait(art::Thread*, long long, int, bool, art::ThreadState)+1068)
art/runtime/runtime.cc:284] native: #03 pc 0020017d /system/lib/libart.so (art::Monitor::Wait(art::Thread*, art::mirror::Object*, long long, int, bool, art::ThreadState)+136)
art/runtime/runtime.cc:284] native: #04 pc 0020dc59 /system/lib/libart.so (art::Object_wait(_JNIEnv*, _jobject*)+40)
art/runtime/runtime.cc:284] native: #05 pc 000003db /system/framework/arm/boot.oat (Java_java_lang_Object_wait__+82)
art/runtime/runtime.cc:284] at java.lang.Object.wait!(Native method)
art/runtime/runtime.cc:284] - waiting on <0x32634cb1> (a java.lang.Class<java.lang.ref.ReferenceQueue>)
art/runtime/runtime.cc:284] at java.lang.Daemons$ReferenceQueueDaemon.run(Daemons.java:133)
art/runtime/runtime.cc:284] - locked <0x32634cb1> (a java.lang.Class<java.lang.ref.ReferenceQueue>)
art/runtime/runtime.cc:284] at java.lang.Thread.run(Thread.java:818)
art/runtime/runtime.cc:284]
art/runtime/runtime.cc:284] "FinalizerDaemon" prio=5 tid=7 Waiting
art/runtime/runtime.cc:284] | group="" sCount=0 dsCount=0 obj=0x12c060e0 self=0xb8873078
art/runtime/runtime.cc:284] | sysTid=19544 nice=0 cgrp=apps sched=0/0 handle=0xb8873450
art/runtime/runtime.cc:284] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=1 HZ=100
art/runtime/runtime.cc:284] | stack=0xb4448000-0xb444a000 stackSize=1036KB
art/runtime/runtime.cc:284] | held mutexes=
art/runtime/runtime.cc:284] kernel: (couldn't read /proc/self/task/19544/stack)
art/runtime/runtime.cc:284] native: #00 pc 000126b8 /system/lib/libc.so (syscall+28)
art/runtime/runtime.cc:284] native: #01 pc 000a9e4b /system/lib/libart.so (art::ConditionVariable::Wait(art::Thread*)+98)
art/runtime/runtime.cc:284] native: #02 pc 001fea81 /system/lib/libart.so (art::Monitor::Wait(art::Thread*, long long, int, bool, art::ThreadState)+1068)
art/runtime/runtime.cc:284] native: #03 pc 0020017d /system/lib/libart.so (art::Monitor::Wait(art::Thread*, art::mirror::Object*, long long, int, bool, art::ThreadState)+136)
art/runtime/runtime.cc:284] native: #04 pc 0020dc21 /system/lib/libart.so (art::Object_waitJI(_JNIEnv*, _jobject*, long long, int)+44)
art/runtime/runtime.cc:284] native: #05 pc 00000607 /system/framework/arm/boot.oat (Java_java_lang_Object_wait__JI+102)
art/runtime/runtime.cc:284] at java.lang.Object.wait!(Native method)
art/runtime/runtime.cc:284] - waiting on <0x378bc596> (a java.lang.ref.ReferenceQueue)
art/runtime/runtime.cc:284] at java.lang.Object.wait(Object.java:422)
art/runtime/runtime.cc:284] at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:101)
art/runtime/runtime.cc:284] - locked <0x378bc596> (a java.lang.ref.ReferenceQueue)
art/runtime/runtime.cc:284] at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:72)
art/runtime/runtime.cc:284] at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:173)
art/runtime/runtime.cc:284] at java.lang.Thread.run(Thread.java:818)
art/runtime/runtime.cc:284]
art/runtime/runtime.cc:284] "FinalizerWatchdogDaemon" prio=5 tid=8 Waiting
art/runtime/runtime.cc:284] | group="" sCount=0 dsCount=0 obj=0x12c06140 self=0xb8873698
art/runtime/runtime.cc:284] | sysTid=19545 nice=0 cgrp=apps sched=0/0 handle=0xb8873b78
art/runtime/runtime.cc:284] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=0 HZ=100
art/runtime/runtime.cc:284] | stack=0xb0da8000-0xb0daa000 stackSize=1036KB
art/runtime/runtime.cc:284] | held mutexes=
art/runtime/runtime.cc:284] kernel: (couldn't read /proc/self/task/19545/stack)
art/runtime/runtime.cc:284] native: #00 pc 000126b8 /system/lib/libc.so (syscall+28)
art/runtime/runtime.cc:284] native: #01 pc 000a9e4b /system/lib/libart.so (art::ConditionVariable::Wait(art::Thread*)+98)
art/runtime/runtime.cc:284] native: #02 pc 001fea81 /system/lib/libart.so (art::Monitor::Wait(art::Thread*, long long, int, bool, art::ThreadState)+1068)
art/runtime/runtime.cc:284] native: #03 pc 0020017d /system/lib/libart.so (art::Monitor::Wait(art::Thread*, art::mirror::Object*, long long, int, bool, art::ThreadState)+136)
art/runtime/runtime.cc:284] native: #04 pc 0020dc59 /system/lib/libart.so (art::Object_wait(_JNIEnv*, _jobject*)+40)
art/runtime/runtime.cc:284] native: #05 pc 000003db /system/framework/arm/boot.oat (Java_java_lang_Object_wait__+82)
art/runtime/runtime.cc:284] at java.lang.Object.wait!(Native method)
art/runtime/runtime.cc:284] - waiting on <0x24bb0517> (a java.lang.Daemons$FinalizerWatchdogDaemon)
art/runtime/runtime.cc:284] at java.lang.Daemons$FinalizerWatchdogDaemon.waitForObject(Daemons.java:239)
art/runtime/runtime.cc:284] - locked <0x24bb0517> (a java.lang.Daemons$FinalizerWatchdogDaemon)
art/runtime/runtime.cc:284] at java.lang.Daemons$FinalizerWatchdogDaemon.run(Daemons.java:211)
art/runtime/runtime.cc:284] at java.lang.Thread.run(Thread.java:818)
art/runtime/runtime.cc:284]
art/runtime/runtime.cc:284] "HeapTrimmerDaemon" prio=5 tid=9 Waiting
art/runtime/runtime.cc:284] | group="" sCount=0 dsCount=0 obj=0x12c061a0 self=0xb8917490
art/runtime/runtime.cc:284] | sysTid=19546 nice=0 cgrp=apps sched=0/0 handle=0xb8917868
art/runtime/runtime.cc:284] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=1 HZ=100
art/runtime/runtime.cc:284] | stack=0xa765e000-0xa7660000 stackSize=1036KB
art/runtime/runtime.cc:284] | held mutexes=
art/runtime/runtime.cc:284] kernel: (couldn't read /proc/self/task/19546/stack)
art/runtime/runtime.cc:284] native: #00 pc 000126b8 /system/lib/libc.so (syscall+28)
art/runtime/runtime.cc:284] native: #01 pc 000a9e4b /system/lib/libart.so (art::ConditionVariable::Wait(art::Thread*)+98)
art/runtime/runtime.cc:284] native: #02 pc 001fea81 /system/lib/libart.so (art::Monitor::Wait(art::Thread*, long long, int, bool, art::ThreadState)+1068)
art/runtime/runtime.cc:284] native: #03 pc 0020017d /system/lib/libart.so (art::Monitor::Wait(art::Thread*, art::mirror::Object*, long long, int, bool, art::ThreadState)+136)
art/runtime/runtime.cc:284] native: #04 pc 0020dc59 /system/lib/libart.so (art::Object_wait(_JNIEnv*, _jobject*)+40)
art/runtime/runtime.cc:284] native: #05 pc 000003db /system/framework/arm/boot.oat (Java_java_lang_Object_wait__+82)
art/runtime/runtime.cc:284] at java.lang.Object.wait!(Native method)
art/runtime/runtime.cc:284] - waiting on <0x25f85d04> (a java.lang.Daemons$HeapTrimmerDaemon)
art/runtime/runtime.cc:284] at java.lang.Daemons$HeapTrimmerDaemon.run(Daemons.java:310)
art/runtime/runtime.cc:284] - locked <0x25f85d04> (a java.lang.Daemons$HeapTrimmerDaemon)
art/runtime/runtime.cc:284] at java.lang.Thread.run(Thread.java:818)
art/runtime/runtime.cc:284]
art/runtime/runtime.cc:284] "GCDaemon" prio=5 tid=10 Waiting
art/runtime/runtime.cc:284] | group="" sCount=0 dsCount=0 obj=0x12c06200 self=0xb8917ba8
art/runtime/runtime.cc:284] | sysTid=19547 nice=0 cgrp=apps sched=0/0 handle=0xb89181c0
art/runtime/runtime.cc:284] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=0 HZ=100
art/runtime/runtime.cc:284] | stack=0xa7556000-0xa7558000 stackSize=1036KB
art/runtime/runtime.cc:284] | held mutexes=
art/runtime/runtime.cc:284] kernel: (couldn't read /proc/self/task/19547/stack)
art/runtime/runtime.cc:284] native: #00 pc 000126b8 /system/lib/libc.so (syscall+28)
art/runtime/runtime.cc:284] native: #01 pc 000a9e4b /system/lib/libart.so (art::ConditionVariable::Wait(art::Thread*)+98)
art/runtime/runtime.cc:284] native: #02 pc 001fea81 /system/lib/libart.so (art::Monitor::Wait(art::Thread*, long long, int, bool, art::ThreadState)+1068)
art/runtime/runtime.cc:284] native: #03 pc 0020017d /system/lib/libart.so (art::Monitor::Wait(art::Thread*, art::mirror::Object*, long long, int, bool, art::ThreadState)+136)
art/runtime/runtime.cc:284] native: #04 pc 0020dc59 /system/lib/libart.so (art::Object_wait(_JNIEnv*, _jobject*)+40)
art/runtime/runtime.cc:284] native: #05 pc 000003db /system/framework/arm/boot.oat (Java_java_lang_Object_wait__+82)
art/runtime/runtime.cc:284] at java.lang.Object.wait!(Native method)
art/runtime/runtime.cc:284] - waiting on <0x0c2f02ed> (a java.lang.Daemons$GCDaemon)
art/runtime/runtime.cc:284] at java.lang.Daemons$GCDaemon.run(Daemons.java:341)
art/runtime/runtime.cc:284] - locked <0x0c2f02ed> (a java.lang.Daemons$GCDaemon)
art/runtime/runtime.cc:284] at java.lang.Thread.run(Thread.java:818)
art/runtime/runtime.cc:284]
art/runtime/runtime.cc:284] "Binder_1" prio=5 tid=11 Native
art/runtime/runtime.cc:284] | group="" sCount=0 dsCount=0 obj=0x12c73080 self=0xb8918978
art/runtime/runtime.cc:284] | sysTid=19548 nice=0 cgrp=apps sched=0/0 handle=0xb8918730
art/runtime/runtime.cc:284] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=1 HZ=100
art/runtime/runtime.cc:284] | stack=0xa7356000-0xa7358000 stackSize=1012KB
art/runtime/runtime.cc:284] | held mutexes=
art/runtime/runtime.cc:284] kernel: (couldn't read /proc/self/task/19548/stack)
art/runtime/runtime.cc:284] native: #00 pc 0003c9b8 /system/lib/libc.so (__ioctl+8)
art/runtime/runtime.cc:284] native: #01 pc 0004208d /system/lib/libc.so (ioctl+14)
art/runtime/runtime.cc:284] native: #02 pc 0001f39b /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+138)
art/runtime/runtime.cc:284] native: #03 pc 0001f88b /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+6)
art/runtime/runtime.cc:284] native: #04 pc 0001f8ed /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+48)
art/runtime/runtime.cc:284] native: #05 pc 00023a5f /system/lib/libbinder.so (???)
art/runtime/runtime.cc:284] native: #06 pc 000104fd /system/lib/libutils.so (android::Thread::_threadLoop(void*)+112)
art/runtime/runtime.cc:284] native: #07 pc 0005e3f5 /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+72)
art/runtime/runtime.cc:284] native: #08 pc 000100d3 /system/lib/libutils.so (???)
art/runtime/runtime.cc:284] native: #09 pc 00015e7b /system/lib/libc.so (__pthread_start(void*)+30)
art/runtime/runtime.cc:284] native: #10 pc 00013e37 /system/lib/libc.so (__start_thread+6)
art/runtime/runtime.cc:284] (no managed stack frames)
art/runtime/runtime.cc:284]
art/runtime/runtime.cc:284] "Binder_2" prio=5 tid=12 Native
art/runtime/runtime.cc:284] | group="" sCount=0 dsCount=0 obj=0x12c79080 self=0xb891a5c8
art/runtime/runtime.cc:284] | sysTid=19549 nice=0 cgrp=apps sched=0/0 handle=0xb891a380
art/runtime/runtime.cc:284] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=0 HZ=100
art/runtime/runtime.cc:284] | stack=0xa7254000-0xa7256000 stackSize=1012KB
art/runtime/runtime.cc:284] | held mutexes=
art/runtime/runtime.cc:284] kernel: (couldn't read /proc/self/task/19549/stack)
art/runtime/runtime.cc:284] native: #00 pc 0003c9b8 /system/lib/libc.so (__ioctl+8)
art/runtime/runtime.cc:284] native: #01 pc 0004208d /system/lib/libc.so (ioctl+14)
art/runtime/runtime.cc:284] native: #02 pc 0001f39b /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+138)
art/runtime/runtime.cc:284] native: #03 pc 0001f88b /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+6)
art/runtime/runtime.cc:284] native: #04 pc 0001f8ed /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+48)
art/runtime/runtime.cc:284] native: #05 pc 00023a5f /system/lib/libbinder.so (???)
art/runtime/runtime.cc:284] native: #06 pc 000104fd /system/lib/libutils.so (android::Thread::_threadLoop(void*)+112)
art/runtime/runtime.cc:284] native: #07 pc 0005e3f5 /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+72)
art/runtime/runtime.cc:284] native: #08 pc 000100d3 /system/lib/libutils.so (???)
art/runtime/runtime.cc:284] native: #09 pc 00015e7b /system/lib/libc.so (__pthread_start(void*)+30)
art/runtime/runtime.cc:284] native: #10 pc 00013e37 /system/lib/libc.so (__start_thread+6)
art/runtime/runtime.cc:284] (no managed stack frames)
art/runtime/runtime.cc:284]
art/runtime/runtime.cc:284] "RenderThread" prio=5 tid=13 Native
art/runtime/runtime.cc:284] | group="" sCount=0 dsCount=0 obj=0x12d1e080 self=0xb8938010
Fatal signal 6 (SIGABRT), code -6 in tid 19533 (b4a.example)
Suppressing debuggerd output because prctl(PR_GET_DUMPABLE)==0
WIN DEATH: Window{33cb93d3 u0 b4a.example/b4a.example.main}
failed to open /acct/uid_10133/pid_19353/cgroup.procs: No such file or directory
write error (Broken pipe)

...
 
Last edited:
Upvote 0

tucano2000

Active Member
Licensed User
Longtime User
Thank Erel, my little code works now in Android 5.

I will be testing Android 6 and later will bring the results.
 
Upvote 0

tucano2000

Active Member
Licensed User
Longtime User
Confirmed the library's operation in Android 5. I still can not get my android 6.0 emulator working again. I'm having trouble with this emulator 6.0 on my pc.

I have other questions:

1) The database V3 SQLCipher 130 is slower than 1.20 using SELECT or others commands. About 3 times or more. it was the tests I ran here with another application. Is there any way to speed this up using in memory: memory: or other resource?

2) The version v2 or SQLCipher 1.20 will never be done support for Android 6.0? Why it was abandoned?
 
Upvote 0

tucano2000

Active Member
Licensed User
Longtime User
Ok Erel. I solved the problem of performance creating indexes in database tables and avoiding excessive opening and closing of the database because I realized that this process is also slower in version 3. Basic, but to me it was not necessary before. Stay there as a tip for those interested.
 
Last edited:
Upvote 0
Top