Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-2907

Expo app crashes on reload

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintableJSON

      How frequently does the bug occur?

      Always

      Description

      I've created a demo app. Initialized with expo-create-stack and only added realm and @realm/react libraries.

      I expect it to app behave normally after the refresh in development or production. Instead, it crashes on app reload.

      Stacktrace & log output

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      null pointer dereference: SIGSEGV  0x0000000000000028
      #00 pc 0x532424 librealm.so (BuildId: 3062b2018d1411aaf7adf1e1b1bd215288355875)
      #01 pc 0x4ed478 librealm.so (BuildId: 3062b2018d1411aaf7adf1e1b1bd215288355875)
      #02 pc 0x4fd204 librealm.so (BuildId: 3062b2018d1411aaf7adf1e1b1bd215288355875)
      #03 pc 0x27410 libhermes_executor.so (BuildId: b58ea9fa364ca130)
      #04 pc 0x95560 libhermes.so (BuildId: 43d09a69d2534947de4730f86a46b2843530f8f9)
      #05 pc 0x951c0 libhermes.so (BuildId: 43d09a69d2534947de4730f86a46b2843530f8f9)
      #06 pc 0x9bc50 libhermes.so (BuildId: 43d09a69d2534947de4730f86a46b2843530f8f9)
      #07 pc 0xabf0c libhermes.so (BuildId: 43d09a69d2534947de4730f86a46b2843530f8f9)
      #08 pc 0xad8c0 libhermes.so (BuildId: 43d09a69d2534947de4730f86a46b2843530f8f9)
      #09 pc 0xacf78 libhermes.so (BuildId: 43d09a69d2534947de4730f86a46b2843530f8f9)
      #10 pc 0x9bd60 libhermes.so (BuildId: 43d09a69d2534947de4730f86a46b2843530f8f9)
      #11 pc 0x8de54 libhermes.so (BuildId: 43d09a69d2534947de4730f86a46b2843530f8f9)
      #12 pc 0xb97a0 libreactnativejni.so (BuildId: 18aa28824c388ff9)
      #13 pc 0xb4d48 libreactnativejni.so (BuildId: 18aa28824c388ff9)
      #14 pc 0xb542c libreactnativejni.so (BuildId: 18aa28824c388ff9)
      #15 pc 0xc1140 libreactnativejni.so (BuildId: 18aa28824c388ff9)
      #16 pc 0xcb0a0 libreactnativejni.so (BuildId: 18aa28824c388ff9)
      #17 pc 0x92e74 libreactnativejni.so (BuildId: 18aa28824c388ff9)
      #18 pc 0x19804 libfbjni.so (BuildId: a22242831a7971267de570e06121acb588ce64cd)
      #19 pc 0x19744 libfbjni.so (BuildId: a22242831a7971267de570e06121acb588ce64cd)
      

      Can you reproduce the bug?

      Always

      Reproduction Steps

      In development, the app crashes on every app refresh or reload.

      In production, I have the next flow: if the app is opened, and the user changes (in my case) notification permission and gets back to running the app, on most Android devices, it produces an app reload. Once reload happens, the app crashes.

      In this demo app, I only added a button that reload the app using reloadAsync function from expo.
      Demo app: https://github.com/RobertPetricevic/rn-realm

      Version

      "expo": "^51.0.36", "realm": "^12.13.1", "@realm/react": "^0.11.0"

      What services are you using?

      Local Database only

      Are you using encryption?

      No

      Platform OS and version(s)

      Android, v14

      Build environment

      Which debugger for React Native: ..

      Cocoapods version

      No response

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Archiver:
            marc.greenfield@mongodb.com Marc Greenfield

              Created:
              Updated:
              Resolved:
              Archived: