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

RangeError: number is not integral, js engine: hermes

      How frequently does the bug occur?

      Sometimes

      Description

      There is a crash when I'm doing a creation in the db. Seems like it doesn't happen everytime, maybe around 80%, or maybe has something to do with specific data, i haven't yet concluded where the error begins.
      This is happening now as I updated realm and react native, didn't use hermes before.

      The creation is happening inside a transaction as i have called beginTransaction and then i call:

      this._realm.beginTransaction();
      this._realm.create(schema, obj, Realm.UpdateMode.All)
      this._realm.commitTransaction();
      

      I get the following error:
      RangeError: number is not integral, js engine: hermes

      This is happening on android (I haven't yet tested iOS)
      with: Realm 12.2.0, hermes and RN 0.72.5

      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
      numToInt 
        bundle.react-native.js:649:18
      anonymous
        bundle.react-native.js:4334:42
      anonymous
        bundle.react-native.js:3749:40
      set
        bundle.react-native.js:4127:24
      create
        bundle.react-native.js:4717:41
      create
        bundle.react-native.js:9653:45
      

      Can you reproduce the bug?

      Sometimes

      Reproduction Steps

      Will update further while i follow more the crash, as the schema is huge and cant provide as is for now.
      Any ideas/hints for now on how to proceed debugging?

      Version

      12.2.0

      What services are you using?

      Local Database only

      Are you using encryption?

      No

      Platform OS and version(s)

      android (tested on 13 & 10, happens on both)

      Build environment

      No response

      Cocoapods version

      No response

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: