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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical - P2 Critical - P2
    • 1.38.0
    • None
    • Electron
    • None
    • OS:
      node.js / npm versions:
      Additional info:
    • Not Needed
    • Iteration Citipati, Iteration Dreadnoughtus

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: