My app crashes, and it seems I get an NDK based error message relating to realm.io


#1

Could someone help debug this error message?
i have obscured the name of the app due to privacy concerns :slight_smile:

I am debugging an app that was originally outsourced, and I am trying to understand why it breaks.
I hope someone can give me advice or point me towards a direction to find out what this means and what the realm file in the backtrace means.

Thank you very much :slight_smile:

09-13 14:30:08.933 5153-5153/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    Build fingerprint: 'samsung/dreamltexx/dreamlte:8.0.0/R16NW/G950FXXU3CRGH:user/release-keys'
    Revision: '10'
    ABI: 'arm64'
    pid: 4043, tid: 4043, name: orlobet.testing  >>> com.example.app.testing <<<
    signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x78
    Cause: null pointer dereference
        x0   0000000000000070  x1   0000007ff81fa048  x2   0000000000000000  x3   0000000000000008
        x4   0000000000000000  x5   0000007ff81f9f68  x6   0000000070c01fe8  x7   0000000000000000
        x8   b9cff98c1c9e7bbf  x9   b9cff98c1c9e7bbf  x10  0000000000000003  x11  000000721d00d5e8
        x12  00000000000000c3  x13  0000000000000af0  x14  000000721f5f1000  x15  000000721d005c30
        x16  000000721f5e6cc0  x17  000000721f583660  x18  0000000000000007  x19  0000007ff81fa048
        x20  00000071fe527b00  x21  00000071fe11f0a0  x22  0000007ff81fa040  x23  00000071fe527b00
        x24  000000721d0de528  x25  000000721d0de540  x26  0000000000000000  x27  0000000000000002
        x28  0000000000000003  x29  0000007ff81fa050  x30  00000071ffab8980
        sp   0000007ff81f9f90  pc   00000071ffab74ac  pstate 0000000060000000
09-13 14:30:08.936 5153-5153/? A/DEBUG: backtrace:
        #00 pc 00000000001af4ac  /data/app/com.example.app.testing-8rBZKb4sSvbKx99zAhVE2g==/lib/arm64/librealm-jni.so
        #01 pc 00000000001b097c  /data/app/com.example.app.testing-8rBZKb4sSvbKx99zAhVE2g==/lib/arm64/librealm-jni.so
        #02 pc 00000000001b4628  /data/app/com.example.app.testing-8rBZKb4sSvbKx99zAhVE2g==/lib/arm64/librealm-jni.so
        #03 pc 0000000000088864  /data/app/com.example.app.testing-8rBZKb4sSvbKx99zAhVE2g==/lib/arm64/librealm-jni.so (Java_io_realm_internal_TableQuery_nativeOr+180)
        #04 pc 0000000000034cd4  /data/app/com.example.app.testing-8rBZKb4sSvbKx99zAhVE2g==/oat/arm64/base.odex (offset 0x21000)
    
    
    --------- beginning of main

09-13 14:58:50.471 11120-11120/? A/DEBUG: ABI: 'arm64'
    pid: 9117, tid: 9117, name: orlobet.testing  >>> com.example.app.testing <<<
    signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x78
    Cause: null pointer dereference
        x0   0000000000000070  x1   0000007ff81f8698  x2   0000000000000000  x3   0000000000000008
        x4   0000000000000000  x5   0000007ff81f85b8  x6   000000000000000c  x7   0000000000001f40
        x8   b9cff98c1c9e7bbf  x9   b9cff98c1c9e7bbf  x10  0000000000000003  x11  000000721d00d5e8
        x12  00000000000000ab  x13  0000000000000b14  x14  0000000000000000  x15  00000071fe00b1b0
        x16  000000721f5e6cc0  x17  000000721f583660  x18  0000000000000020  x19  0000007ff81f8698
        x20  00000071f99fd080  x21  00000071fe5e8120  x22  0000007ff81f8690  x23  00000071f99fd080
        x24  00000071fe1bcb08  x25  00000071fe1bcb20  x26  0000000000000000  x27  0000000000000002
        x28  0000000000000003  x29  0000007ff81f86a0  x30  00000071ff9c5980
        sp   0000007ff81f85e0  pc   00000071ff9c44ac  pstate 0000000060000000
09-13 14:58:50.483 11120-11120/? A/DEBUG: backtrace:
        #00 pc 00000000001af4ac  /data/app/com.example.app.testing-ZBq9_by9iYZ2vvXqLPK15A==/lib/arm64/librealm-jni.so
        #01 pc 00000000001b097c  /data/app/com.example.app.testing-ZBq9_by9iYZ2vvXqLPK15A==/lib/arm64/librealm-jni.so
        #02 pc 00000000001b4628  /data/app/com.example.app.testing-ZBq9_by9iYZ2vvXqLPK15A==/lib/arm64/librealm-jni.so
        #03 pc 0000000000088864  /data/app/com.example.app.testing-ZBq9_by9iYZ2vvXqLPK15A==/lib/arm64/librealm-jni.so (Java_io_realm_internal_TableQuery_nativeOr+180)
        #04 pc 0000000000034cd4  /data/app/com.example.app.testing-ZBq9_by9iYZ2vvXqLPK15A==/oat/arm64/base.odex (offset 0x21000)

#2

For future reference, and to anyone this might help, I have resolved the issue here: