{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-js/issues/314","repository_url":"https://api.github.com/repos/realm/realm-js","labels_url":"https://api.github.com/repos/realm/realm-js/issues/314/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-js/issues/314/comments","events_url":"https://api.github.com/repos/realm/realm-js/issues/314/events","html_url":"https://github.com/realm/realm-js/issues/314","id":139395938,"number":314,"title":"Android crashes with realm 0.10.0 and react-native","user":{"login":"jrichardlai","id":159813,"avatar_url":"https://avatars.githubusercontent.com/u/159813?v=3","gravatar_id":"","url":"https://api.github.com/users/jrichardlai","html_url":"https://github.com/jrichardlai","followers_url":"https://api.github.com/users/jrichardlai/followers","following_url":"https://api.github.com/users/jrichardlai/following{/other_user}","gists_url":"https://api.github.com/users/jrichardlai/gists{/gist_id}","starred_url":"https://api.github.com/users/jrichardlai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrichardlai/subscriptions","organizations_url":"https://api.github.com/users/jrichardlai/orgs","repos_url":"https://api.github.com/users/jrichardlai/repos","events_url":"https://api.github.com/users/jrichardlai/events{/privacy}","received_events_url":"https://api.github.com/users/jrichardlai/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-js/labels/S:In%20Progress","name":"S:In Progress","color":"ededed"},{"url":"https://api.github.com/repos/realm/realm-js/labels/T:Bug-Crash","name":"T:Bug-Crash","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-03-08T21:16:09Z","updated_at":"2016-03-19T21:46:00Z","closed_at":null,"body":"Hello,\r\n\r\nI am testing on multiple android phone an app using Realm. I noticed that it crashes on some Android phones. Old one and recent ones.\r\n\r\nWhat is the minimum version supported for Android ? Is there any code try catch to put on?\r\n\r\nNot sure how to debug this, here is some stacktraces:\r\n\r\nGalaxy S6 Edge 5.0.2\r\n\r\n```\r\nI/DEBUG   (30122): Revision: '10'\r\nI/DEBUG   (30122): ABI: 'arm'\r\nI/DEBUG   (30122): pid: 7917, tid: 7975, name: mqt_js  >>> xxx.package.app <<<\r\nI/DEBUG   (30122): signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x4604b088\r\nI/System.out(13346): KnoxVpnUidStorageknoxVpnSupported API value returned is false\r\nI/qtaguid (13346): Tagging socket 53 with tag 3000120100000000{805310977,0} uid -1, pid: 13346, getuid(): 10016\r\nI/DEBUG   (30122):     r0 00000000  r1 00000000  r2 e8d296d2  r3 e8d296d2\r\nI/DEBUG   (30122):     r4 dfcf3d10  r5 f3fa3d34  r6 0000000b  r7 4604b089\r\nI/DEBUG   (30122):     r8 f3fa3850  r9 dc519140  sl dc517070  fp daa01744\r\nI/DEBUG   (30122):     ip dfcf3e34  sp daa01720  lr df9ecf54  pc 4604b088  cpsr 600b0030\r\nI/DEBUG   (30122): \r\nI/DEBUG   (30122): backtrace:\r\nI/DEBUG   (30122):     #00 pc 1344a088  /dev/ashmem/dalvik-main space (deleted)\r\nI/DEBUG   (30122):     #01 pc 0017df50  /data/app/xxx.package.app-1/lib/arm/librealmreact.so\r\nI/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)\r\nI/DEBUG   (30122):     #03 pc 00016d59  /data/app/xxx.package.app-1/lib/arm/libreactnativejni.so (facebook::react::JSCExecutorFactory::createJSExecutor(facebook::react::Bridge*)+20)\r\nI/DEBUG   (30122):     #04 pc 0001369d  /data/app/xxx.package.app-1/lib/arm/libreactnativejni.so\r\nI/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)\r\nI/DEBUG   (30122):     #06 pc 0001079f  /data/app/xxx.package.app-1/lib/arm/libreactnativejni.so\r\nI/DEBUG   (30122):     #07 pc 0033bf79  /data/dalvik-cache/arm/data@app@xxx.package.app-1@base.apk@classes.dex\r\nI/qtaguid (13346): Tagging socket 76 with tag 3000120100000000{805310977,0} uid -1, pid: 13346, getuid(): 10016\r\nD/LocationManagerService( 3510): getLastLocation: Request[POWER_NONE passive fastest=0 num=1]\r\nI/System.out(13346): (HTTPLog)-Static: isSBSettingEnabled false\r\nI/qtaguid (13346): Tagging socket 53 with tag 3000120100000000{805310977,0} uid -1, pid: 13346, getuid(): 10016\r\nD/CustomFrequencyManagerService( 3510): releaseDVFSLockLocked : Getting Lock type frm List : DVFS_MIN_LIMIT  frequency : 1800000  uid : 1000  pid : 3510  tag : ACTIVITY_RESUME_BOOSTER@10\r\nW/ActivityManager( 3510):   Force finishing activity xxx.package.app/xxx.package.app\r\nD/FocusedStackFrame( 3510): Set to : 0\r\nV/ApplicationPolicy( 3510): isApplicationStateBlocked userId 0 pkgname xxx.package.app\r\nV/ApplicationPolicy( 3510): isApplicationStateBlocked userId 0 pkgname com.sec.android.app.launcher\r\nD/MultiWindowConverter( 3510): dismissGuide() : Before attaching the guide view, mForceDismissGuide : false\r\n```\r\n\r\nSGH-T599 4.1.2\r\n\r\n```\r\nW/SignalStrength( 2629): getLevel=4 (SignalStrength: 17 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 gsm|lte 4)\r\nI/blue    (20454): BluePreferences load took 1786ms on thread preferences_loader\r\nI/DEBUG   ( 1660):     r0 00000000  r1 00000000  r2 d1cf3db2  r3 d1cf3db2\r\nI/DEBUG   ( 1660):     r4 54b05d10  r5 4d939d34  r6 0000000b  r7 4604b089\r\nI/DEBUG   ( 1660):     r8 4d939850  r9 4d903d58  sl 4c631560  fp 551fbb3c\r\nI/DEBUG   ( 1660):     ip 54b05e34  sp 551fbb18  lr 547fef54  pc 4604b088  cpsr 60000030\r\nI/DEBUG   ( 1660):     d0  0000000000000000  d1  0000000000000000\r\nI/DEBUG   ( 1660):     d2  6567617373654d2f  d3  7268546575657551\r\nI/DEBUG   ( 1660):     d4  67617373654d2f65  d5  4026000000000000\r\nI/DEBUG   ( 1660):     d6  4026000000000000  d7  0000000b00000000\r\nI/DEBUG   ( 1660):     d8  0000000000000000  d9  0000000000000000\r\nI/DEBUG   ( 1660):     d10 0000000000000000  d11 0000000000000000\r\nI/DEBUG   ( 1660):     d12 0000000000000000  d13 0000000000000000\r\nI/DEBUG   ( 1660):     d14 0000000000000000  d15 0000000000000000\r\nI/DEBUG   ( 1660):     d16 4026000000000000  d17 7fffffffffffffff\r\nI/DEBUG   ( 1660):     d18 0000000000000000  d19 0000000000000000\r\nI/DEBUG   ( 1660):     d20 4008000000000000  d21 3fbc71c71c71c71c\r\nI/DEBUG   ( 1660):     d22 3fcc7288e957b53b  d23 3fd24998d6307188\r\nI/DEBUG   ( 1660):     d24 3fd99a27ad32ddf5  d25 3fe555b0aaeac752\r\nI/DEBUG   ( 1660):     d26 0000000000000000  d27 0000000000000000\r\nI/DEBUG   ( 1660):     d28 0000000000000005  d29 0000000000000000\r\nI/DEBUG   ( 1660):     d30 0000000000000000  d31 0000000000000000\r\nI/DEBUG   ( 1660):     scr 20000010\r\nI/DEBUG   ( 1660):\r\nI/DEBUG   ( 1660): backtrace:\r\nI/DEBUG   ( 1660):     #00  pc 03dbd088  /dev/ashmem/dalvik-heap (deleted)\r\nI/DEBUG   ( 1660):     #01  pc 0017df50  /data/data/xxx.package.app/lib/librealmreact.so\r\nI/DEBUG   ( 1660):\r\nI/DEBUG   ( 1660): stack:\r\nI/DEBUG   ( 1660):          551fbad8  547fef00  /data/data/xxx.package.app/lib/librealmreact.so\r\nI/DEBUG   ( 1660):          551fbadc  547fee34  /data/data/xxx.package.app/lib/librealmreact.so\r\nI/DEBUG   ( 1660):          551fbae0  54b05d10  /data/data/xxx.package.app/lib/librealmreact.so\r\nI/DEBUG   ( 1660):          551fbae4  547fef00  /data/data/xxx.package.app/lib/librealmreact.so\r\nI/DEBUG   ( 1660):          551fbae8  551fbb04\r\nI/DEBUG   ( 1660):          551fbaec  017feeb8\r\nI/DEBUG   ( 1660):          551fbaf0  547fef00  /data/data/xxx.package.app/lib/librealmreact.so\r\nI/DEBUG   ( 1660):          551fbaf4  541db9e4  /data/data/xxx.package.app/lib/libjsc.so\r\nI/DEBUG   ( 1660):          551fbaf8  00001000\r\nI/DEBUG   ( 1660):          551fbafc  541db000  /data/data/xxx.package.app/lib/libjsc.so\r\nI/DEBUG   ( 1660):          551fbb00  541db9ec  /data/data/xxx.package.app/lib/libjsc.so\r\nI/DEBUG   ( 1660):          551fbb04  d1cf3db2\r\nI/DEBUG   ( 1660):          551fbb08  54b062ec  /data/data/xxx.package.app/lib/librealmreact.so\r\nI/DEBUG   ( 1660):          551fbb0c  54b05d10  /data/data/xxx.package.app/lib/librealmreact.so\r\nI/DEBUG   ( 1660):          551fbb10  df0027ad\r\nI/DEBUG   ( 1660):          551fbb14  00000000\r\nI/DEBUG   ( 1660):     #00  551fbb18  00000000\r\nI/DEBUG   ( 1660):          ........  ........\r\nI/DEBUG   ( 1660):     #01  551fbb18  00000000\r\nI/DEBUG   ( 1660):          551fbb1c  00000000\r\nI/DEBUG   ( 1660):          551fbb20  4d903d5c\r\nI/DEBUG   ( 1660):          551fbb24  54b062ec  /data/data/xxx.package.app/lib/librealmreact.so\r\nI/DEBUG   ( 1660):          551fbb28  4d903d5c\r\nI/DEBUG   ( 1660):          551fbb2c  d1cf3db2\r\nI/DEBUG   ( 1660):          551fbb30  4d903d18\r\nI/DEBUG   ( 1660):          551fbb34  4d939d34  /data/data/xxx.package.app/lib/libreactnativejni.so\r\nI/DEBUG   ( 1660):          551fbb38  3f800000\r\nI/DEBUG   ( 1660):          551fbb3c  4d92bbfb  /data/data/xxx.package.app/lib/libreactnativejni.so (facebook::react::JSCExecutor::JSCExecutor(facebook::react::Bridge*, std::string const&)+202)\r\nI/DEBUG   ( 1660):          551fbb40  4d903d18\r\nI/DEBUG   ( 1660):          551fbb44  00000000\r\nI/DEBUG   ( 1660):          551fbb48  551fbba4\r\nI/DEBUG   ( 1660):          551fbb4c  551fbbd0\r\nI/DEBUG   ( 1660):          551fbb50  4d903d18\r\nI/DEBUG   ( 1660):          551fbb54  551fbba0\r\nI/DEBUG   ( 1660):\r\nI/DEBUG   ( 1660): memory near r4:\r\nI/DEBUG   ( 1660):     54b05cf0 54ae2180 54a69621 54ab3fd4 54b04458  .!.T!..T.?.TXD.T\r\nI/DEBUG   ( 1660):     54b05d00 5494f3b0 54b01f4c 54b04708 54b01f60  ...TL..T.G.T`..T\r\nI/DEBUG   ( 1660):     54b05d10 00000000 00000000 00000000 40157f9d  ...............@\r\nI/DEBUG   ( 1660):     54b05d20 401580b5 40150008 40163765 541ded31  ...@...@e7.@1..T\r\nI/DEBUG   ( 1660):     54b05d30 541df351 541df1b1 541df127 40155539  Q..T...T'..T9U.@\r\nI/DEBUG   ( 1660):\r\nI/DEBUG   ( 1660): memory near r5:\r\nI/DEBUG   ( 1660):     4d939d14 4d92dec1 4d92fa10 4d92fa18 4d92fa20  ...M...M...M ..M\r\nI/DEBUG   ( 1660):     4d939d24 4014c555 4d934d60 4d933c58 4e1a8d1d  U..@`M.MX<.M...N\r\nI/DEBUG   ( 1660):     4d939d34 00000000 00000000 00000000 40157f9d  ...............@\r\nI/DEBUG   ( 1660):     4d939d44 401580b5 4e1a8729 4c65eacd 4e1a92a9  ...@)..N..eL...N\r\nD/dalvikvm(20454): GC_CONCURRENT freed 505K, 12% free 11783K/13319K, paused 14ms+21ms, total 156ms\r\nD/dalvikvm(20454): WAIT_FOR_CONCURRENT_GC blocked 123ms\r\nI/DEBUG   ( 1660):     4d939d54 4c66069d 4e1a88d1 4e1a9b09 4e1a8add  ..fL...N...N...N\r\nI/DEBUG   ( 1660):\r\nI/DEBUG   ( 1660): memory near r7:\r\nI/DEBUG   ( 1660):     4604b068 00000000 00000000 00000000 00000000  ................\r\nI/DEBUG   ( 1660):     4604b078 00000000 00000000 00000000 00000000  ................\r\nI/DEBUG   ( 1660):     4604b088 00000000 00000000 00000000 00000000  ................\r\nI/DEBUG   ( 1660):     4604b098 00000000 00000000 00000000 00000000  ................\r\nI/DEBUG   ( 1660):     4604b0a8 00000000 00000000 00000000 00000000  ................\r\nI/DEBUG   ( 1660):\r\nI/DEBUG   ( 1660): memory near r8:\r\nI/DEBUG   ( 1660):     4d939830 4d939688 00000002 4d939608 00000002  ...M.......M....\r\nI/DEBUG   ( 1660):     4d939840 4d9397c8 00000002 4e1fb088 4d93740d  ...M.......N.t.M\r\nI/DEBUG   ( 1660):     4d939850 00000000 4d939848 4e1aa14d 4e1aa14d  ....H..MM..NM..N\r\nI/DEBUG   ( 1660):     4d939860 4e1aa14d 4e1aa14d 4e1aa14d 4d929fb5  M..NM..NM..N...M\r\nI/DEBUG   ( 1660):     4d939870 4d929fb9 4d929fbb 4d929fbd 4d929fbf  ...M...M...M...M\r\nI/DEBUG   ( 1660):\r\nI/DEBUG   ( 1660): memory near r9:\r\nI/DEBUG   ( 1660):     4d903d38 0000000b 4c631560 0000000b 00000000  ....`.cL........\r\nI/DEBUG   ( 1660):     4d903d48 00000000 3f800000 0000000b 4c6d9368  .......?....h.mL\r\nI/DEBUG   ( 1660):     4d903d58 412e1c14 4d9048e8 4d904930 00000000  ...A.H.M0I.M....\r\nI/DEBUG   ( 1660):     4d903d68 00000058 00000043 4d9028c8 4d903e18  X...C....(.M.>.M\r\nI/DEBUG   ( 1660):     4d903d78 4d903cb0 000001e0 00000320 0000001e  .<.M.... .......\r\nI/DEBUG   ( 1660):\r\nI/DEBUG   ( 1660): memory near sl:\r\nI/DEBUG   ( 1660):     4c631540 00000000 00000000 00000000 00000000  ................\r\nI/DEBUG   ( 1660):     4c631550 00000000 00000000 00000068 00000033  ........h...3...\r\nI/DEBUG   ( 1660):     4c631560 00000000 00000000 00000000 00000000  ................\r\nI/DEBUG   ( 1660):     4c631570 00000000 00000000 00000000 00000000  ................\r\nI/DEBUG   ( 1660):     4c631580 00000000 00000000 00000000 00000033  ............3...\r\nI/DEBUG   ( 1660):\r\nI/DEBUG   ( 1660): memory near fp:\r\nI/DEBUG   ( 1660):     551fbb1c 00000000 4d903d5c 54b062ec 4d903d5c  ....\\=.M.b.T\\=.M\r\nI/DEBUG   ( 1660):     551fbb2c d1cf3db2 4d903d18 4d939d34 3f800000  .=...=.M4..M...?\r\nI/DEBUG   ( 1660):     551fbb3c 4d92bbfb 4d903d18 00000000 551fbba4  ...M.=.M.......U\r\nI/DEBUG   ( 1660):     551fbb4c 551fbbd0 4d903d18 551fbba0 4c6d9368  ...U.=.M...Uh.mL\r\nI/DEBUG   ( 1660):     551fbb5c 4c6d9368 551fbb90 551fbb94 4c86d7e8  h.mL...U...U...L\r\nI/DEBUG   ( 1660):\r\nI/DEBUG   ( 1660): memory near ip:\r\nI/DEBUG   ( 1660):     54b05e14 40119b99 541dec9f 541dd8b1 401536c5  ...@...T...T.6.@\r\nI/DEBUG   ( 1660):     54b05e24 4006d639 4015af79 4014b230 4014b630  9..@y..@0..@0..@\r\nI/DEBUG   ( 1660):     54b05e34 541db9e5 4014c771 40145adc 4014ae54  ...Tq..@.Z.@T..@\r\nI/DEBUG   ( 1660):     54b05e44 4014ab20 4014b9b0 4014b01c 40146be0   ..@...@...@.k.@\r\nI/DEBUG   ( 1660):     54b05e54 401473d4 4014fe8d 4014fe65 401476d0  .s.@...@e..@.v.@\r\nI/DEBUG   ( 1660):\r\nI/DEBUG   ( 1660): memory near sp:\r\nI/DEBUG   ( 1660):     551fbaf8 00001000 541db000 541db9ec d1cf3db2  .......T...T.=..\r\nI/DEBUG   ( 1660):     551fbb08 54b062ec 54b05d10 df0027ad 00000000  .b.T.].T.'......\r\nI/DEBUG   ( 1660):     551fbb18 00000000 00000000 4d903d5c 54b062ec  ........\\=.M.b.T\r\nI/DEBUG   ( 1660):     551fbb28 4d903d5c d1cf3db2 4d903d18 4d939d34  \\=.M.=...=.M4..M\r\nI/DEBUG   ( 1660):     551fbb38 3f800000 4d92bbfb 4d903d18 00000000  ...?...M.=.M....\r\nI/DEBUG   ( 1660):\r\nI/DEBUG   ( 1660): code around pc:\r\nI/DEBUG   ( 1660):     4604b068 00000000 00000000 00000000 00000000  ................\r\nI/DEBUG   ( 1660):     4604b078 00000000 00000000 00000000 00000000  ................\r\nI/DEBUG   ( 1660):     4604b088 00000000 00000000 00000000 00000000  ................\r\nI/DEBUG   ( 1660):     4604b098 00000000 00000000 00000000 00000000  ................\r\nI/DEBUG   ( 1660):     4604b0a8 00000000 00000000 00000000 00000000  ................\r\nI/DEBUG   ( 1660):\r\nI/DEBUG   ( 1660): code around lr:\r\nD/dalvikvm(20454): WAIT_FOR_CONCURRENT_GC blocked 16ms\r\nI/DEBUG   ( 1660):     547fef34 e59f30a4 e08f3003 e1a01003 eb0000ac  .0...0..........\r\nI/DEBUG   ( 1660):     547fef44 eb000028 e51b0020 e51b1024 ebfea0ad  (... ...$.......\r\nI/DEBUG   ( 1660):     547fef54 e1a03000 e50b3014 eb000022 e59f307c  .0...0..\"...|0..\r\nI/DEBUG   ( 1660):     547fef64 e7943003 e1a00003 eb008fc2 e51b0014  .0..............\r\nI/DEBUG   ( 1660):     547fef74 ebff0d53 e59f3068 e7943003 e3a02001  S...h0...0... ..\r\nI/DEBUG   ( 1660):\r\nI/DEBUG   ( 1660): memory map around fault addr 4604b088:\r\nI/DEBUG   ( 1660):     41dfe000-4228e000 /dev/ashmem/dalvik-heap (deleted)\r\nI/DEBUG   ( 1660):     4228e000-493ac000 /dev/ashmem/dalvik-heap (deleted)\r\nI/DEBUG   ( 1660):     493ac000-49475000 /system/framework/sec_edm.odex\r\nI/dalvikvm(20454): Could not find method android.webkit.WebSettings.getDefaultUserAgent, referenced from method epd.F\r\nW/dalvikvm(20454): VFY: unable to resolve static method 7485: Landroid/webkit/WebSettings;.getDefaultUserAgent (Landroid/content/Context;)Ljava/lang/String;\r\nD/dalvikvm(20454): VFY: replacing opcode 0x71 at 0x0256\r\n```\r\n\r\nThanks for the help!"},"comment":{"url":"https://api.github.com/repos/realm/realm-js/issues/comments/198789152","html_url":"https://github.com/realm/realm-js/issues/314#issuecomment-198789152","issue_url":"https://api.github.com/repos/realm/realm-js/issues/314","id":198789152,"user":{"login":"alazier","id":250144,"avatar_url":"https://avatars.githubusercontent.com/u/250144?v=3","gravatar_id":"","url":"https://api.github.com/users/alazier","html_url":"https://github.com/alazier","followers_url":"https://api.github.com/users/alazier/followers","following_url":"https://api.github.com/users/alazier/following{/other_user}","gists_url":"https://api.github.com/users/alazier/gists{/gist_id}","starred_url":"https://api.github.com/users/alazier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alazier/subscriptions","organizations_url":"https://api.github.com/users/alazier/orgs","repos_url":"https://api.github.com/users/alazier/repos","events_url":"https://api.github.com/users/alazier/events{/privacy}","received_events_url":"https://api.github.com/users/alazier/received_events","type":"User","site_admin":false},"created_at":"2016-03-19T21:46:00Z","updated_at":"2016-03-19T21:46:00Z","body":"@agenthunt can you try 0.11.0-rc ?"}}