Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-6897

mongosh is stuck in infinite load state when trying to handle big documents

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 1.38.0
    • Affects Version/s: None
    • Component/s: Electron
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Not Needed
    • Iteration Citipati, Iteration Dreadnoughtus

      Trying to serialize big-ish documents before they can be passed to the main process from shell worker process fails. To reproduce it's enough to run the following command in the embedded shell:

      require("v8").serialize({a: "a".repeat(6000)})
      

      An isolated reproduction:

      ELECTRON_RUN_AS_NODE=1 ./usr/bin/mongodb-compass -e 'require("v8").serialize({a: "a".repeat(6000)})'
      

      The issue is traced inside v8 and was introduced with the latest electron update. The issue is not happening in electron 23, but this major update will break support for Windows 7/8/8.1 systems, so we should consider how feasible it is for us to drop support for these.

            Assignee:
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Reporter:
            sergey.petushkov@mongodb.com Sergey Petushkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: