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.
- depends on
-
COMPASS-6795 mongodb-cloud-info not working with Ipv6
- Closed