Running Unity Hub 3.0.0-beta.5 on Ubuntu 20.04. If I have a separate /tmp partition mounted as noexec, it produces the following error on the terminal
A JavaScript error occurred in the main process
Uncaught Exception:
Error: /tmp/.org.chromium.Chromium.SuiCGP: failed to map segment from shared object
at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1846)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1138:18)
at Object.func [as .node] (electron/js2c/asar_bundle.js:5:2073)
at Module.load (internal/modules/cjs/loader.js:935:32)
at Module._load (internal/modules/cjs/loader.js:776:14)
at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
at Module.require (internal/modules/cjs/loader.js:959:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (/tmp/.mount_UnityHDe3GdT/resources/app.asar/node_modules/diskusage/index.js:1:14)
at Module._compile (internal/modules/cjs/loader.js:1078:30)
The fix to this is to not mount /tmp as noexec, but this is poor security practice. It’s mounted that way for a reason—being able to execute files in /tmp can open all kinds of security vulnerabilities. Unity Hub, should really put its temporary executables somewhere else.
