tursodatabase / turso-android-example

5 stars 0 forks source link

App crash android ARM64 #1

Open ignacioinda opened 1 month ago

ignacioinda commented 1 month ago

I tested the test application on 2 different devices, both with ARM64 processors

First device:

failed to connect to tombstoned: Permission denied
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'qti/apollo/msm8953_64:9/V1.8.9/lly02220940:user/release-keys'
Revision: '0'
ABI: 'arm64'
pid: 10753, tid: 10864, name: tech.turso.test  >>> tech.turso.test <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
    x0  0000000000000000  x1  0000000000002a70  x2  0000000000000006  x3  0000000000000008
    x4  0000000000000000  x5  0000000000000000  x6  0000000000000000  x7  0000000000000000
    x8  0000000000000083  x9  ed4e28918297a408  x10 0000000000000000  x11 fffffffc7ffffbdf
    x12 0000000000000001  x13 0000000000000000  x14 ffffffffffffffff  x15 0000000000000000
    x16 00000078b3ede2b8  x17 00000078b3dffa50  x18 0000000000000000  x19 0000000000002a01
    x20 0000000000002a70  x21 0000007815ef7b60  x22 000000781537abd8  x23 0000007815cf73a0
    x24 0000000000000000  x25 0000007815ef7c30  x26 0000007813a3d0c0  x27 0000007815ef7dd0
    x28 8000000000000018  x29 0000007815ef7a20
    sp  0000007815ef79e0  lr  00000078b3df1084  pc  00000078b3df10ac

backtrace:
    #00 pc 00000000000220ac  /system/lib64/libc.so (abort+116)
    #01 pc 0000000000b9ea18  /data/app/tech.turso.test-Gogcrb9Vspp_rHYJL3V8ug==/lib/arm64/liblibsql_android.so (offset 0x469000) (std::sys::pal::unix::thread::Thread::new::h27fa6a429b0b558a+184)
    #02 pc 0000000000103584  <anonymous:0000007815df7000>
channel '158439 tech.turso.test/tech.turso.test.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
Failed to open APK '/data/app/tech.turso.test-KVxZI_VRnzKZZVBSjAS2aQ==/base.apk' I/O error
failed to add asset path /data/app/tech.turso.test-KVxZI_VRnzKZZVBSjAS2aQ==/base.apk

Second device:

Fatal signal 6 (SIGABRT), code -6 in tid 2751 (AsyncTask #1)
---------------------------- PROCESS ENDED (2657) for package tech.turso.test ----------------------------
channel '19c55cd tech.turso.test/tech.turso.test.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

I also used the gradle library:

dependencies {
    implementation("tech.turso.libsql:libsql:0.1.0")
}

with similar results, could it be that it is failing because the device is 64-bit?

ignacioinda commented 1 month ago

I tested with an armeabi-v7a device and had a similar problem:

Fatal signal 6 (SIGABRT), code -6 in tid 7321 (AsyncTask #1)
pid: 7255, tid: 7321, name: AsyncTask #1  >>> tech.turso.test <<<
    #05 pc 005c9b85  /data/app/tech.turso.test-1/lib/arm/liblibsql_android.so (offset 0x281000)