-
Type: Bug
-
Resolution: Cannot Reproduce
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
Steps & Code to Reproduce
On my application, I am seeing the following native crash.
I was not able to reproduce it, and it was reported on play store console.
I don't know why this is happening. I don't use any type of encryption also for the database.
It's is started after an update of the app. In the previous version of the app, I'm using the same version of the realm but only difference while initializing in the previous version I'm using migration for database update while for a newer version I'm deleteRealmIfMigrationNeeded().
Realm.init(mContext); RealmConfiguration config = new RealmConfiguration.Builder() .name("myrealm.realm") .schemaVersion(7) .deleteRealmIfMigrationNeeded() .build(); mRealm = Realm.getInstance(config);
Also, this crash only happened on a handful of devices.
The only error backtrace I'm receiving on play console :
#00 pc 000000000009738a /data/app/com.xyz.app-2/lib/arm/librealm-jni.so
#00 pc 000000000009738a /data/app/com.xyz.app-2/lib/arm/librealm-jni.so
Another backtrace :
#00 pc 000000000011206c /data/app/com.xyz.app-TCgqDGGD4PRx-U3kX8HJwQ==/lib/arm64/librealm-jni.so
#01 pc 00000000001120e4 /data/app/com.xyz.app-TCgqDGGD4PRx-U3kX8HJwQ==/lib/arm64/librealm-jni.so
#02 pc 0000000000112130 /data/app/com.xyz.app-TCgqDGGD4PRx-U3kX8HJwQ==/lib/arm64/librealm-jni.so
#03 pc 00000000001e95c0 /data/app/com.xyz.app-TCgqDGGD4PRx-U3kX8HJwQ==/lib/arm64/librealm-jni.so
#04 pc 00000000001ec188 /data/app/com.xyz.app-TCgqDGGD4PRx-U3kX8HJwQ==/lib/arm64/librealm-jni.so
#05 pc 00000000001edee8 /data/app/com.xyz.app-TCgqDGGD4PRx-U3kX8HJwQ==/lib/arm64/librealm-jni.so
#06 pc 00000000001db85c /data/app/com.xyz.app-TCgqDGGD4PRx-U3kX8HJwQ==/lib/arm64/librealm-jni.so
#07 pc 00000000001df750 /data/app/com.xyz.app-TCgqDGGD4PRx-U3kX8HJwQ==/lib/arm64/librealm-jni.so
#08 pc 00000000001e4384 /data/app/com.xyz.app-TCgqDGGD4PRx-U3kX8HJwQ==/lib/arm64/librealm-jni.so
#09 pc 00000000000c8d48 /data/app/com.xyz.app-TCgqDGGD4PRx-U3kX8HJwQ==/lib/arm64/librealm-jni.so
#10 pc 00000000000486c0 /data/app/com.xyz.app-TCgqDGGD4PRx-U3kX8HJwQ==/lib/arm64/librealm-jni.so (Java_io_realm_internal_Collection_nativeClear+48)
#11 pc 000000000051cd00 /system/lib64/libart.so (art_quick_generic_jni_trampoline+144)
#12 pc 0000000000513c38 /system/lib64/libart.so (art_quick_invoke_static_stub+600)
#13 pc 00000000000d9e4c /system/lib64/libart.so (_ZN3art9ArtMethod6InvokeEPNS_6ThreadEPjjPNS_6JValueEPKc+260)
#14 pc 0000000000287bcc /system/lib64/libart.so (_ZN3art11interpreter34ArtInterpreterToCompiledCodeBridgeEPNS_6ThreadEPNS_9ArtMethodEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+352)
#15 pc 0000000000282204 /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+672)
#16 pc 00000000004fc79c /system/lib64/libart.so (MterpInvokeStatic+468)
#17 pc 0000000000505594 /system/lib64/libart.so (ExecuteMterpImpl+14612)
#18 pc 00000000002639f0 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+444)
#19 pc 0000000000269fd8 /system/lib64/libart.so (_ZN3art11interpreter33ArtInterpreterToInterpreterBridgeEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+212)
#20 pc 00000000002821e4 /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+640)
#21 pc 00000000004fb130 /system/lib64/libart.so (MterpInvokeVirtual+612)
#22 pc 0000000000505414 /system/lib64/libart.so (ExecuteMterpImpl+14228)
#23 pc 00000000002639f0 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+444)
#24 pc 0000000000269fd8 /system/lib64/libart.so (_ZN3art11interpreter33ArtInterpreterToInterpreterBridgeEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+212)
#25 pc 00000000002821e4 /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+640)
#26 pc 00000000004fb7b4 /system/lib64/libart.so (MterpInvokeSuper+1440)
#27 pc 0000000000505494 /system/lib64/libart.so (ExecuteMterpImpl+14356)
#28 pc 00000000002639f0 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+444)
#29 pc 0000000000269fd8 /system/lib64/libart.so (_ZN3art11interpreter33ArtInterpreterToInterpreterBridgeEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+212)
#30 pc 00000000002821e4 /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+640)
#31 pc 00000000004fb130 /system/lib64/libart.so (MterpInvokeVirtual+612)
#32 pc 0000000000505414 /system/lib64/libart.so (ExecuteMterpImpl+14228)
#33 pc 00000000002639f0 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+444)
#34 pc 0000000000269fd8 /system/lib64/libart.so (_ZN3art11interpreter33ArtInterpreterToInterpreterBridgeEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+212)
#35 pc 00000000002821e4 /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+640)
#36 pc 00000000004fc1c4 /system/lib64/libart.so (MterpInvokeInterface+1732)
#37 pc 0000000000505614 /system/lib64/libart.so (ExecuteMterpImpl+14740)
#38 pc 00000000002639f0 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+444)
#39 pc 0000000000269fd8 /system/lib64/libart.so (_ZN3art11interpreter33ArtInterpreterToInterpreterBridgeEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+212)
#40 pc 00000000002821e4 /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+640)
#41 pc 00000000004fc1c4 /system/lib64/libart.so (MterpInvokeInterface+1732)
#42 pc 0000000000505614 /system/lib64/libart.so (ExecuteMterpImpl+14740)
#43 pc 00000000002639f0 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+444)
#44 pc 00000000004ee384 /system/lib64/libart.so (artQuickToInterpreterBridge+1492)
#45 pc 000000000051ce1c /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
#46 pc 00000000005c9e28 /system/framework/arm64/boot-core-oj.oat (java.util.concurrent.Executors$RunnableAdapter.call+72)
#47 pc 00000000005c8560 /system/framework/arm64/boot-core-oj.oat (java.util.concurrent.FutureTask.run+240)
#48 pc 00000000005eaf3c /system/framework/arm64/boot-core-oj.oat (java.util.concurrent.ThreadPoolExecutor.runWorker+1084)
#49 pc 00000000005f9a54 /system/framework/arm64/boot-core-oj.oat (java.util.concurrent.ThreadPoolExecutor$Worker.run+68)
#50 pc 00000000001fbc0c /system/framework/arm64/boot-core-oj.oat (java.lang.Thread.run+76)
#51 pc 0000000000513984 /system/lib64/libart.so (art_quick_invoke_stub+580)
#52 pc 00000000000d9e10 /system/lib64/libart.so (_ZN3art9ArtMethod6InvokeEPNS_6ThreadEPjjPNS_6JValueEPKc+200)
#53 pc 0000000000439064 /system/lib64/libart.so (_ZN3artL18InvokeWithArgArrayERKNS_33ScopedObjectAccessAlreadyRunnableEPNS_9ArtMethodEPNS_8ArgArrayEPNS_6JValueEPKc+104)
#54 pc 000000000043a1f0 /system/lib64/libart.so (_ZN3art35InvokeVirtualOrInterfaceWithJValuesERKNS_33ScopedObjectAccessAlreadyRunnableEP8_jobjectP10_jmethodIDP6jvalue+432)
#55 pc 0000000000462ac8 /system/lib64/libart.so (_ZN3art6Thread14CreateCallbackEPv+1140)
#56 pc 0000000000066660 /system/lib64/libc.so (_ZL15__pthread_startPv+36)
#57 pc 000000000001f164 /system/lib64/libc.so (__start_thread+68)
I'm not able to decide anything from here.
After clearing data from the device or reinstalling the app the crash is gone.
Version of Realm and tooling
Realm version(s): 3.7.2
Realm sync feature enabled: no
Android Studio version: 3.0
Which Android version and device: Android 7.0 - Motorola Moto G(4) Plus (athene_f)