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

Realm and React-Native-Threads startup error: ENOENT: no such file or directory

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None

      Description

      I just updated realm to the latest beta version to test hermes support on Android. It bundles successfully but after running, I get this error:

      Error: ENOENT: no such file or directory, open 'C:\Users\SMhd\project\http:\10.0.2.2:8081\index.thread.bundle?platform=android&dev=true&hot=false&minify=false'
          at Object.openSync (fs.js:498:3)
          at Object.readFileSync (fs.js:394:35)
          at getCodeFrame (C:\Users\SMhd\project\node_modules\metro\src\Server.js:919:18)
          at Server._symbolicate (C:\Users\SMhd\project\node_modules\metro\src\Server.js:992:22)
          at processTicksAndRejections (internal/process/task_queues.js:95:5)
          at async Server._processRequest (C:\Users\SMhd\project\node_modules\metro\src\Server.js:403:7) {
        errno: -4058,
        syscall: 'open',
        code: 'ENOENT',
        path: 'C:\\Users\\SMhd\\project\\http:\\10.0.2.2:8081\\index.thread.bundle?platform=android&dev=true&hot=false&minify=false'
      }
      

      My app stucks on splash screen with no crashes, but nothing happens.
      Seems like there is a problem with index.thread file which will be in another bundle file. It works on realm without hermes though.

      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
      Error: ENOENT: no such file or directory, open 'C:\Users\SMhd\project\http:\10.0.2.2:8081\index.thread.bundle?platform=android&dev=true&hot=false&minify=false'
          at Object.openSync (fs.js:498:3)
          at Object.readFileSync (fs.js:394:35)
          at getCodeFrame (C:\Users\SMhd\project\node_modules\metro\src\Server.js:919:18)
          at Server._symbolicate (C:\Users\SMhd\project\node_modules\metro\src\Server.js:992:22)
          at processTicksAndRejections (internal/process/task_queues.js:95:5)
          at async Server._processRequest (C:\Users\SMhd\project\node_modules\metro\src\Server.js:403:7) {
        errno: -4058,
        syscall: 'open',
        code: 'ENOENT',
        path: 'C:\\Users\\SMhd\\project\\http:\\10.0.2.2:8081\\index.thread.bundle?platform=android&dev=true&hot=false&minify=false'
      }
      Error: ENOENT: no such file or directory, open 'C:\Users\SMhd\project\http:\10.0.2.2:8081\index.thread.bundle?platform=android&dev=true&hot=false&minify=false'
          at Object.openSync (fs.js:498:3)
          at Object.readFileSync (fs.js:394:35)
          at getCodeFrame (C:\Users\SMhd\project\node_modules\metro\src\Server.js:919:18)
          at Server._symbolicate (C:\Users\SMhd\project\node_modules\metro\src\Server.js:992:22)
          at processTicksAndRejections (internal/process/task_queues.js:95:5)
          at async Server._processRequest (C:\Users\SMhd\project\node_modules\metro\src\Server.js:403:7) {
        errno: -4058,
        syscall: 'open',
        code: 'ENOENT',
        path: 'C:\\Users\\SMhd\\project\\http:\\10.0.2.2:8081\\index.thread.bundle?platform=android&dev=true&hot=false&minify=false'
      }
      

      Can you reproduce a bug?

      Not yet

      Reproduction Steps

      No response

      Version

      10.20.0-alpha.2

      What SDK flavour are you using?

      Local Database only

      Are you using encryption?

      No response

      Platform OS and version(s)

      Android 10 emulator

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

              Created:
              Updated:
              Resolved: