question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android crashes with realm 0.10.0 and react-native

See original GitHub issue

Hello,

I am testing on multiple android phone an app using Realm. I noticed that it crashes on some Android phones. Old one and recent ones.

What is the minimum version supported for Android ? Is there any code try catch to put on?

Not sure how to debug this, here is some stacktraces:

Galaxy S6 Edge 5.0.2

I/DEBUG   (30122): Revision: '10'
I/DEBUG   (30122): ABI: 'arm'
I/DEBUG   (30122): pid: 7917, tid: 7975, name: mqt_js  >>> xxx.package.app <<<
I/DEBUG   (30122): signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x4604b088
I/System.out(13346): KnoxVpnUidStorageknoxVpnSupported API value returned is false
I/qtaguid (13346): Tagging socket 53 with tag 3000120100000000{805310977,0} uid -1, pid: 13346, getuid(): 10016
I/DEBUG   (30122):     r0 00000000  r1 00000000  r2 e8d296d2  r3 e8d296d2
I/DEBUG   (30122):     r4 dfcf3d10  r5 f3fa3d34  r6 0000000b  r7 4604b089
I/DEBUG   (30122):     r8 f3fa3850  r9 dc519140  sl dc517070  fp daa01744
I/DEBUG   (30122):     ip dfcf3e34  sp daa01720  lr df9ecf54  pc 4604b088  cpsr 600b0030
I/DEBUG   (30122): 
I/DEBUG   (30122): backtrace:
I/DEBUG   (30122):     #00 pc 1344a088  /dev/ashmem/dalvik-main space (deleted)
I/DEBUG   (30122):     #01 pc 0017df50  /data/app/xxx.package.app-1/lib/arm/librealmreact.so
I/DEBUG   (30122):     #02 pc 00016bf7  /data/app/xxx.package.app-1/lib/arm/libreactnativejni.so (facebook::react::JSCExecutor::JSCExecutor(facebook::react::Bridge*, std::string const&)+198)
I/DEBUG   (30122):     #03 pc 00016d59  /data/app/xxx.package.app-1/lib/arm/libreactnativejni.so (facebook::react::JSCExecutorFactory::createJSExecutor(facebook::react::Bridge*)+20)
I/DEBUG   (30122):     #04 pc 0001369d  /data/app/xxx.package.app-1/lib/arm/libreactnativejni.so
I/DEBUG   (30122):     #05 pc 00015b49  /data/app/xxx.package.app-1/lib/arm/libreactnativejni.so (facebook::react::Bridge::Bridge(facebook::react::JSExecutorFactory*, std::function<void (std::vector<facebook::react::MethodCall, std::allocator<facebook::react::MethodCall> >, bool)>)+144)
I/DEBUG   (30122):     #06 pc 0001079f  /data/app/xxx.package.app-1/lib/arm/libreactnativejni.so
I/DEBUG   (30122):     #07 pc 0033bf79  /data/dalvik-cache/arm/data@app@xxx.package.app-1@base.apk@classes.dex
I/qtaguid (13346): Tagging socket 76 with tag 3000120100000000{805310977,0} uid -1, pid: 13346, getuid(): 10016
D/LocationManagerService( 3510): getLastLocation: Request[POWER_NONE passive fastest=0 num=1]
I/System.out(13346): (HTTPLog)-Static: isSBSettingEnabled false
I/qtaguid (13346): Tagging socket 53 with tag 3000120100000000{805310977,0} uid -1, pid: 13346, getuid(): 10016
D/CustomFrequencyManagerService( 3510): releaseDVFSLockLocked : Getting Lock type frm List : DVFS_MIN_LIMIT  frequency : 1800000  uid : 1000  pid : 3510  tag : ACTIVITY_RESUME_BOOSTER@10
W/ActivityManager( 3510):   Force finishing activity xxx.package.app/xxx.package.app
D/FocusedStackFrame( 3510): Set to : 0
V/ApplicationPolicy( 3510): isApplicationStateBlocked userId 0 pkgname xxx.package.app
V/ApplicationPolicy( 3510): isApplicationStateBlocked userId 0 pkgname com.sec.android.app.launcher
D/MultiWindowConverter( 3510): dismissGuide() : Before attaching the guide view, mForceDismissGuide : false

SGH-T599 4.1.2

W/SignalStrength( 2629): getLevel=4 (SignalStrength: 17 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 gsm|lte 4)
I/blue    (20454): BluePreferences load took 1786ms on thread preferences_loader
I/DEBUG   ( 1660):     r0 00000000  r1 00000000  r2 d1cf3db2  r3 d1cf3db2
I/DEBUG   ( 1660):     r4 54b05d10  r5 4d939d34  r6 0000000b  r7 4604b089
I/DEBUG   ( 1660):     r8 4d939850  r9 4d903d58  sl 4c631560  fp 551fbb3c
I/DEBUG   ( 1660):     ip 54b05e34  sp 551fbb18  lr 547fef54  pc 4604b088  cpsr 60000030
I/DEBUG   ( 1660):     d0  0000000000000000  d1  0000000000000000
I/DEBUG   ( 1660):     d2  6567617373654d2f  d3  7268546575657551
I/DEBUG   ( 1660):     d4  67617373654d2f65  d5  4026000000000000
I/DEBUG   ( 1660):     d6  4026000000000000  d7  0000000b00000000
I/DEBUG   ( 1660):     d8  0000000000000000  d9  0000000000000000
I/DEBUG   ( 1660):     d10 0000000000000000  d11 0000000000000000
I/DEBUG   ( 1660):     d12 0000000000000000  d13 0000000000000000
I/DEBUG   ( 1660):     d14 0000000000000000  d15 0000000000000000
I/DEBUG   ( 1660):     d16 4026000000000000  d17 7fffffffffffffff
I/DEBUG   ( 1660):     d18 0000000000000000  d19 0000000000000000
I/DEBUG   ( 1660):     d20 4008000000000000  d21 3fbc71c71c71c71c
I/DEBUG   ( 1660):     d22 3fcc7288e957b53b  d23 3fd24998d6307188
I/DEBUG   ( 1660):     d24 3fd99a27ad32ddf5  d25 3fe555b0aaeac752
I/DEBUG   ( 1660):     d26 0000000000000000  d27 0000000000000000
I/DEBUG   ( 1660):     d28 0000000000000005  d29 0000000000000000
I/DEBUG   ( 1660):     d30 0000000000000000  d31 0000000000000000
I/DEBUG   ( 1660):     scr 20000010
I/DEBUG   ( 1660):
I/DEBUG   ( 1660): backtrace:
I/DEBUG   ( 1660):     #00  pc 03dbd088  /dev/ashmem/dalvik-heap (deleted)
I/DEBUG   ( 1660):     #01  pc 0017df50  /data/data/xxx.package.app/lib/librealmreact.so
I/DEBUG   ( 1660):
I/DEBUG   ( 1660): stack:
I/DEBUG   ( 1660):          551fbad8  547fef00  /data/data/xxx.package.app/lib/librealmreact.so
I/DEBUG   ( 1660):          551fbadc  547fee34  /data/data/xxx.package.app/lib/librealmreact.so
I/DEBUG   ( 1660):          551fbae0  54b05d10  /data/data/xxx.package.app/lib/librealmreact.so
I/DEBUG   ( 1660):          551fbae4  547fef00  /data/data/xxx.package.app/lib/librealmreact.so
I/DEBUG   ( 1660):          551fbae8  551fbb04
I/DEBUG   ( 1660):          551fbaec  017feeb8
I/DEBUG   ( 1660):          551fbaf0  547fef00  /data/data/xxx.package.app/lib/librealmreact.so
I/DEBUG   ( 1660):          551fbaf4  541db9e4  /data/data/xxx.package.app/lib/libjsc.so
I/DEBUG   ( 1660):          551fbaf8  00001000
I/DEBUG   ( 1660):          551fbafc  541db000  /data/data/xxx.package.app/lib/libjsc.so
I/DEBUG   ( 1660):          551fbb00  541db9ec  /data/data/xxx.package.app/lib/libjsc.so
I/DEBUG   ( 1660):          551fbb04  d1cf3db2
I/DEBUG   ( 1660):          551fbb08  54b062ec  /data/data/xxx.package.app/lib/librealmreact.so
I/DEBUG   ( 1660):          551fbb0c  54b05d10  /data/data/xxx.package.app/lib/librealmreact.so
I/DEBUG   ( 1660):          551fbb10  df0027ad
I/DEBUG   ( 1660):          551fbb14  00000000
I/DEBUG   ( 1660):     #00  551fbb18  00000000
I/DEBUG   ( 1660):          ........  ........
I/DEBUG   ( 1660):     #01  551fbb18  00000000
I/DEBUG   ( 1660):          551fbb1c  00000000
I/DEBUG   ( 1660):          551fbb20  4d903d5c
I/DEBUG   ( 1660):          551fbb24  54b062ec  /data/data/xxx.package.app/lib/librealmreact.so
I/DEBUG   ( 1660):          551fbb28  4d903d5c
I/DEBUG   ( 1660):          551fbb2c  d1cf3db2
I/DEBUG   ( 1660):          551fbb30  4d903d18
I/DEBUG   ( 1660):          551fbb34  4d939d34  /data/data/xxx.package.app/lib/libreactnativejni.so
I/DEBUG   ( 1660):          551fbb38  3f800000
I/DEBUG   ( 1660):          551fbb3c  4d92bbfb  /data/data/xxx.package.app/lib/libreactnativejni.so (facebook::react::JSCExecutor::JSCExecutor(facebook::react::Bridge*, std::string const&)+202)
I/DEBUG   ( 1660):          551fbb40  4d903d18
I/DEBUG   ( 1660):          551fbb44  00000000
I/DEBUG   ( 1660):          551fbb48  551fbba4
I/DEBUG   ( 1660):          551fbb4c  551fbbd0
I/DEBUG   ( 1660):          551fbb50  4d903d18
I/DEBUG   ( 1660):          551fbb54  551fbba0
I/DEBUG   ( 1660):
I/DEBUG   ( 1660): memory near r4:
I/DEBUG   ( 1660):     54b05cf0 54ae2180 54a69621 54ab3fd4 54b04458  .!.T!..T.?.TXD.T
I/DEBUG   ( 1660):     54b05d00 5494f3b0 54b01f4c 54b04708 54b01f60  ...TL..T.G.T`..T
I/DEBUG   ( 1660):     54b05d10 00000000 00000000 00000000 40157f9d  ...............@
I/DEBUG   ( 1660):     54b05d20 401580b5 40150008 40163765 541ded31  ...@...@e7.@1..T
I/DEBUG   ( 1660):     54b05d30 541df351 541df1b1 541df127 40155539  Q..T...T'..T9U.@
I/DEBUG   ( 1660):
I/DEBUG   ( 1660): memory near r5:
I/DEBUG   ( 1660):     4d939d14 4d92dec1 4d92fa10 4d92fa18 4d92fa20  ...M...M...M ..M
I/DEBUG   ( 1660):     4d939d24 4014c555 4d934d60 4d933c58 4e1a8d1d  U..@`M.MX<.M...N
I/DEBUG   ( 1660):     4d939d34 00000000 00000000 00000000 40157f9d  ...............@
I/DEBUG   ( 1660):     4d939d44 401580b5 4e1a8729 4c65eacd 4e1a92a9  ...@)..N..eL...N
D/dalvikvm(20454): GC_CONCURRENT freed 505K, 12% free 11783K/13319K, paused 14ms+21ms, total 156ms
D/dalvikvm(20454): WAIT_FOR_CONCURRENT_GC blocked 123ms
I/DEBUG   ( 1660):     4d939d54 4c66069d 4e1a88d1 4e1a9b09 4e1a8add  ..fL...N...N...N
I/DEBUG   ( 1660):
I/DEBUG   ( 1660): memory near r7:
I/DEBUG   ( 1660):     4604b068 00000000 00000000 00000000 00000000  ................
I/DEBUG   ( 1660):     4604b078 00000000 00000000 00000000 00000000  ................
I/DEBUG   ( 1660):     4604b088 00000000 00000000 00000000 00000000  ................
I/DEBUG   ( 1660):     4604b098 00000000 00000000 00000000 00000000  ................
I/DEBUG   ( 1660):     4604b0a8 00000000 00000000 00000000 00000000  ................
I/DEBUG   ( 1660):
I/DEBUG   ( 1660): memory near r8:
I/DEBUG   ( 1660):     4d939830 4d939688 00000002 4d939608 00000002  ...M.......M....
I/DEBUG   ( 1660):     4d939840 4d9397c8 00000002 4e1fb088 4d93740d  ...M.......N.t.M
I/DEBUG   ( 1660):     4d939850 00000000 4d939848 4e1aa14d 4e1aa14d  ....H..MM..NM..N
I/DEBUG   ( 1660):     4d939860 4e1aa14d 4e1aa14d 4e1aa14d 4d929fb5  M..NM..NM..N...M
I/DEBUG   ( 1660):     4d939870 4d929fb9 4d929fbb 4d929fbd 4d929fbf  ...M...M...M...M
I/DEBUG   ( 1660):
I/DEBUG   ( 1660): memory near r9:
I/DEBUG   ( 1660):     4d903d38 0000000b 4c631560 0000000b 00000000  ....`.cL........
I/DEBUG   ( 1660):     4d903d48 00000000 3f800000 0000000b 4c6d9368  .......?....h.mL
I/DEBUG   ( 1660):     4d903d58 412e1c14 4d9048e8 4d904930 00000000  ...A.H.M0I.M....
I/DEBUG   ( 1660):     4d903d68 00000058 00000043 4d9028c8 4d903e18  X...C....(.M.>.M
I/DEBUG   ( 1660):     4d903d78 4d903cb0 000001e0 00000320 0000001e  .<.M.... .......
I/DEBUG   ( 1660):
I/DEBUG   ( 1660): memory near sl:
I/DEBUG   ( 1660):     4c631540 00000000 00000000 00000000 00000000  ................
I/DEBUG   ( 1660):     4c631550 00000000 00000000 00000068 00000033  ........h...3...
I/DEBUG   ( 1660):     4c631560 00000000 00000000 00000000 00000000  ................
I/DEBUG   ( 1660):     4c631570 00000000 00000000 00000000 00000000  ................
I/DEBUG   ( 1660):     4c631580 00000000 00000000 00000000 00000033  ............3...
I/DEBUG   ( 1660):
I/DEBUG   ( 1660): memory near fp:
I/DEBUG   ( 1660):     551fbb1c 00000000 4d903d5c 54b062ec 4d903d5c  ....\=.M.b.T\=.M
I/DEBUG   ( 1660):     551fbb2c d1cf3db2 4d903d18 4d939d34 3f800000  .=...=.M4..M...?
I/DEBUG   ( 1660):     551fbb3c 4d92bbfb 4d903d18 00000000 551fbba4  ...M.=.M.......U
I/DEBUG   ( 1660):     551fbb4c 551fbbd0 4d903d18 551fbba0 4c6d9368  ...U.=.M...Uh.mL
I/DEBUG   ( 1660):     551fbb5c 4c6d9368 551fbb90 551fbb94 4c86d7e8  h.mL...U...U...L
I/DEBUG   ( 1660):
I/DEBUG   ( 1660): memory near ip:
I/DEBUG   ( 1660):     54b05e14 40119b99 541dec9f 541dd8b1 401536c5  ...@...T...T.6.@
I/DEBUG   ( 1660):     54b05e24 4006d639 4015af79 4014b230 4014b630  9..@y..@0..@0..@
I/DEBUG   ( 1660):     54b05e34 541db9e5 4014c771 40145adc 4014ae54  ...Tq..@.Z.@T..@
I/DEBUG   ( 1660):     54b05e44 4014ab20 4014b9b0 4014b01c 40146be0   ..@...@...@.k.@
I/DEBUG   ( 1660):     54b05e54 401473d4 4014fe8d 4014fe65 401476d0  .s.@...@e..@.v.@
I/DEBUG   ( 1660):
I/DEBUG   ( 1660): memory near sp:
I/DEBUG   ( 1660):     551fbaf8 00001000 541db000 541db9ec d1cf3db2  .......T...T.=..
I/DEBUG   ( 1660):     551fbb08 54b062ec 54b05d10 df0027ad 00000000  .b.T.].T.'......
I/DEBUG   ( 1660):     551fbb18 00000000 00000000 4d903d5c 54b062ec  ........\=.M.b.T
I/DEBUG   ( 1660):     551fbb28 4d903d5c d1cf3db2 4d903d18 4d939d34  \=.M.=...=.M4..M
I/DEBUG   ( 1660):     551fbb38 3f800000 4d92bbfb 4d903d18 00000000  ...?...M.=.M....
I/DEBUG   ( 1660):
I/DEBUG   ( 1660): code around pc:
I/DEBUG   ( 1660):     4604b068 00000000 00000000 00000000 00000000  ................
I/DEBUG   ( 1660):     4604b078 00000000 00000000 00000000 00000000  ................
I/DEBUG   ( 1660):     4604b088 00000000 00000000 00000000 00000000  ................
I/DEBUG   ( 1660):     4604b098 00000000 00000000 00000000 00000000  ................
I/DEBUG   ( 1660):     4604b0a8 00000000 00000000 00000000 00000000  ................
I/DEBUG   ( 1660):
I/DEBUG   ( 1660): code around lr:
D/dalvikvm(20454): WAIT_FOR_CONCURRENT_GC blocked 16ms
I/DEBUG   ( 1660):     547fef34 e59f30a4 e08f3003 e1a01003 eb0000ac  .0...0..........
I/DEBUG   ( 1660):     547fef44 eb000028 e51b0020 e51b1024 ebfea0ad  (... ...$.......
I/DEBUG   ( 1660):     547fef54 e1a03000 e50b3014 eb000022 e59f307c  .0...0.."...|0..
I/DEBUG   ( 1660):     547fef64 e7943003 e1a00003 eb008fc2 e51b0014  .0..............
I/DEBUG   ( 1660):     547fef74 ebff0d53 e59f3068 e7943003 e3a02001  S...h0...0... ..
I/DEBUG   ( 1660):
I/DEBUG   ( 1660): memory map around fault addr 4604b088:
I/DEBUG   ( 1660):     41dfe000-4228e000 /dev/ashmem/dalvik-heap (deleted)
I/DEBUG   ( 1660):     4228e000-493ac000 /dev/ashmem/dalvik-heap (deleted)
I/DEBUG   ( 1660):     493ac000-49475000 /system/framework/sec_edm.odex
I/dalvikvm(20454): Could not find method android.webkit.WebSettings.getDefaultUserAgent, referenced from method epd.F
W/dalvikvm(20454): VFY: unable to resolve static method 7485: Landroid/webkit/WebSettings;.getDefaultUserAgent (Landroid/content/Context;)Ljava/lang/String;
D/dalvikvm(20454): VFY: replacing opcode 0x71 at 0x0256

Thanks for the help!

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
appdencommented, Mar 16, 2016

Hey everyone, I published version 0.11.0-rc on npm, so if you switch your package.json to refer to that version and npm install realm to update it, this issue should be fixed. Please let us know how it goes for you, so we can be sure this is resolved for everyone before pushing out 0.11.0!

0reactions
alaziercommented, Mar 24, 2016

We just released 0.11.0 which should resolve this issue. Note when upgrading to the newest version that we now recommend using rnpm: https://realm.io/docs/react-native/latest/#getting-started

Read more comments on GitHub >

github_iconTop Results From Across the Web

Realm crashes in react-native for android 10? - Stack Overflow
We have recently updated our react-native project to 0.62.2. To perform the linking we need to update the realm version to 6.0.0.
Read more >
App crashes after using useQuery or Realm.objects()
Hello friends I come to ask for help because I'm developing an application using React Native, Expo and Realm and I got stuck...
Read more >
realm: Versions - Openbase
Fixed issue where React Native apps on Android would sometimes show stale Realm data until the user interacted with the app UI. (#4389,...
Read more >
Fixing React-Native android release build - wesionaryTEAM
Fixing React-Native android release build Android release build crashes on launch but works fine on a development mode. couldn't find DSO to load: ......
Read more >
Crash Fast: Square's Approach to Android Crashes
The Square Register Android app has few crashes. Getting there requires a ... There are two types crashes: Java, and native crashes.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found