iink SDK on Device

Answered

Android:Can the initialization of the engine be placed in a thread or child process

As the title says。I got the following error report in android



ABI: 'arm64'

Timestamp: 2021-10-28 10:27:05+0800

pid: 4355, tid: 4529, name: Thread-2 >>> com.xxxx.xxxx <<<

uid: 10104

signal 7 (SIGBUS), code 2 (BUS_ADRERR), fault addr 0x74da8d570b

    x0 00000074e3340034 x1 00000074da8d570b x2 0000000000000001 x3 0000000000000001

    x4 00000074da8d570c x5 00000074e3340035 x6 0000007735072ae0 x7 0000007735072ae0

    x8 000000000007d70b x9 0000000000000000 x10 000000000007d70c x11 0000000000000030

    x12 0000000000000000 x13 b400007735079d88 x14 000000000000007f x15 0000000000000010

    x16 00000074e8f35678 x17 0000007849c51400 x18 00000074df000000 x19 00000074e3340208

    x20 0000000000000001 x21 00000074e3340034 x22 b40000760501c910 x23 00000074e3341000

    x24 00000074e3341000 x25 00000074e3341000 x26 00000074e3341000 x27 00000074e33401d8

    x28 b40000756501d250 x29 00000074e3340000

    lr 00000074e8ddb614 sp 00000074e333ffe0 pc 0000007849c51320 pst 0000000080001000


backtrace:

      #00 pc 000000000004a320 /apex/com.android.runtime/lib64/bionic/libc.so (__memcpy+144) (BuildId: f4881cdb04823cc0d8c0fa3f95c4db2e)

      #01 pc 000000000004b610 /system/priv-app/xxxx/xxxxx.apk!libMyScriptEngine.so (offset 0x5e0000) (BuildId: 87f0006dc9cf6498ee01fd6064ececc44709186b)

      #02 pc 0000000000049ba0 /system/priv-app/xxxx/xxxx.apk!libMyScriptEngine.so (offset 0x5e0000) (BuildId: 87f0006dc9cf6498ee01fd6064ececc44709186b)

      #03 pc 00000000001ea118 /system/priv-app/xxxx/xxxx.apk!libMyScriptText.so (offset 0x9e9000) (BuildId: b6e3146078e069254ff3f5d84eb892cccb091f3c)

      #04 pc 00000000001eab88 /system/priv-app/xxxx/xxxx.apk!libMyScriptText.so (offset 0x9e9000) (BuildId: b6e3146078e069254ff3f5d84eb892cccb091f3c)

      #05 pc 000000000004a96c /system/priv-app/xxxx/xxxx.apk!libMyScriptEngine.so (offset 0x5e0000) (BuildId: 87f0006dc9cf6498ee01fd6064ececc44709186b)

      #06 pc 00000000000b4bb0 /system/priv-app/xxxx/xxxx.apk!libMyScriptEngine.so (offset 0x5e0000) (BuildId: 87f0006dc9cf6498ee01fd6064ececc44709186b)

      #07 pc 00000000000b0758 /system/priv-app/xxxx/xxxx.apk!libMyScriptEngine.so (offset 0x5e0000) (BuildId: 87f0006dc9cf6498ee01fd6064ececc44709186b)

      #08 pc 000000000012e758 /system/priv-app/xxxx/xxxx.apk!libMyScriptEngine.so (offset 0x5e0000) (BuildId: 87f0006dc9cf6498ee01fd6064ececc44709186b)

      #09 pc 00000000001321a8 /system/priv-app/xxxx/xxxx.apk!libMyScriptEngine.so (offset 0x5e0000) (BuildId: 87f0006dc9cf6498ee01fd6064ececc44709186b)

      #10 pc 0000000000132410 /system/priv-app/xxxx/xxxx.apk!libMyScriptEngine.so (offset 0x5e0000) (BuildId: 87f0006dc9cf6498ee01fd6064ececc44709186b)

      #11 pc 00000000000c95e0 /system/priv-app/xxxx/xxxx.apk!libMyScriptDocument.so (offset 0x49e000) (BuildId: c474434451b72b4fa1eb027da3cce03a9de44f13)

      #12 pc 00000000000c827c /system/priv-app/xxxx/xxxx.apk!libMyScriptDocument.so (offset 0x49e000) (BuildId: c474434451b72b4fa1eb027da3cce03a9de44f13)

      #13 pc 0000000000059e2c /system/priv-app/xxxx/xxxx.apk!libMyScriptEngine.so (offset 0x5e0000) (BuildId: 87f0006dc9cf6498ee01fd6064ececc44709186b)

      #14 pc 00000000000b008c /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: f4881cdb04823cc0d8c0fa3f95c4db2e)

      #15 pc 00000000000503c8 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: f4881cdb04823cc0d8c0fa3f95c4db2e)


Best Answer

Dear User,


just a quick update ; can you please provide us a project, so that we better understand what you are doing?


Best regards,


Olivier


Dear User,


Thank you for contacting us.


Currently, I am facing difficulties understanding what you are doing. Indeed, the MyScript technology is multi-threaded, so as long as you have a reference to the engine, you can run several processes in parallel.


Can you please provide us with a project that allows to reproduce? This will help understand what is happening.


Best regards,


Olivier

Answer

Dear User,


just a quick update ; can you please provide us a project, so that we better understand what you are doing?


Best regards,


Olivier