realm / realm-java

Realm is a mobile database: a replacement for SQLite & ORMs
http://realm.io
Apache License 2.0
11.45k stars 1.75k forks source link

Crash Java_io_realm_log_RealmLog_nativeLogToCoreLoggerBridge #7889

Open fanwgwg opened 1 month ago

fanwgwg commented 1 month ago

How frequently does the bug occur?

Sometimes

Description

According to Crashlytics and some user reports, we're seeing a very rare Realm crash a few seconds after app at Java_io_realm_log_RealmLog_nativeLogToCoreLoggerBridge

screenshot-20240520-132625

Stacktrace & log output

Crashed: Thread: SIGABRT  0x0000000000000000
#00 pc 0x59b38 libc.so (BuildId: 7841d31efc11481579e4cb75ccbcdb4f)
#01 pc 0x59b08 libc.so (BuildId: 7841d31efc11481579e4cb75ccbcdb4f)
#02 pc 0x76fde0 libart.so (BuildId: 7ece79c15d80914c83e60c9e93ac1684)
#03 pc 0x357d0 libbase.so (BuildId: 6f67f69ff36b970d0b831cfdab3b578d)
#04 pc 0x34d58 libbase.so (BuildId: 6f67f69ff36b970d0b831cfdab3b578d)
#05 pc 0x25aa50 libart.so (BuildId: 7ece79c15d80914c83e60c9e93ac1684)
#06 pc 0x552edc libart.so (BuildId: 7ece79c15d80914c83e60c9e93ac1684)
#07 pc 0x526e48 librealm-jni.so (Java_io_realm_log_RealmLog_nativeLogToCoreLoggerBridge) (BuildId: 245289f163c2e6fafc8c1f226d710b4fc1b8bedd)
#08 pc 0x5173f4 librealm-jni.so (Java_io_realm_internal_UncheckedRow_nativeGetByteArray) (BuildId: 245289f163c2e6fafc8c1f226d710b4fc1b8bedd)
#09 pc 0x351e30 libart.so (BuildId: 7ece79c15d80914c83e60c9e93ac1684)
#10 pc 0x5afefc libart.so (BuildId: 7ece79c15d80914c83e60c9e93ac1684)
#11 pc 0x5ba6f4 libart.so (BuildId: 7ece79c15d80914c83e60c9e93ac1684)
#12 pc 0x2372d4 libart.so (BuildId: 7ece79c15d80914c83e60c9e93ac1684)
#13 pc 0xc15ffc libart.so (BuildId: 7ece79c15d80914c83e60c9e93ac1684)
#14 pc 0x5beaa0 libart.so (BuildId: 7ece79c15d80914c83e60c9e93ac1684)
#15 pc 0x5afefc libart.so (BuildId: 7ece79c15d80914c83e60c9e93ac1684)
#16 pc 0x5ba6f4 libart.so (BuildId: 7ece79c15d80914c83e60c9e93ac1684)
#17 pc 0x5afefc libart.so (BuildId: 7ece79c15d80914c83e60c9e93ac1684)
#18 pc 0x5b9930 libart.so (BuildId: 7ece79c15d80914c83e60c9e93ac1684)
#19 pc 0x714cb67c
#20 pc 0xc15ffc libart.so (BuildId: 7ece79c15d80914c83e60c9e93ac1684)
#21 pc 0x714c8b78
#22 pc 0x71389b90
#23 pc 0x49dd8 libc.so (BuildId: 7841d31efc11481579e4cb75ccbcdb4f)
#24 pc 0x33b3a4 libart.so (BuildId: 7ece79c15d80914c83e60c9e93ac1684)
#25 pc 0x23a5d0 libart.so (BuildId: 7ece79c15d80914c83e60c9e93ac1684)
#26 pc 0x539a9c libart.so (BuildId: 7ece79c15d80914c83e60c9e93ac1684)
#27 pc 0x539b2c libart.so (BuildId: 7ece79c15d80914c83e60c9e93ac1684)
#28 pc 0x9a052 libc.so (BuildId: 7841d31efc11481579e4cb75ccbcdb4f)
#29 pc 0x5394dc libart.so (BuildId: 7ece79c15d80914c83e60c9e93ac1684)
#30 pc 0x527ffc libc.so (BuildId: 7841d31efc11481579e4cb75ccbcdb4f)
#31 pc 0xbe888 libc.so (BuildId: 7841d31efc11481579e4cb75ccbcdb4f)
#32 pc 0x5b370 libc.so (BuildId: 7841d31efc11481579e4cb75ccbcdb4f)
#33 pc 0xbe7b4 libc.so (BuildId: 7841d31efc11481579e4cb75ccbcdb4f)
#34 pc 0x1554fc ld-android.so (BuildId: 88077f28ac4d03f6d8dc781b876b8fd3)
#35 pc 0x1557fc ld-android.so (BuildId: 88077f28ac4d03f6d8dc781b876b8fd3)
#36 pc 0x5394d0 libart.so (BuildId: 7ece79c15d80914c83e60c9e93ac1684)

Can you reproduce the bug?

No

Reproduction Steps

No response

Version

10.18.0

What Atlas App Services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

Android 14

Build environment

Android Studio version: Android Studio Jellyfish | 2023.3.1 Gradle version: com.android.tools.build:gradle:8.4.0

sync-by-unito[bot] commented 1 month ago

➤ PM Bot commented:

Jira ticket: RJAVA-1260