T_T…
- The farm agent cannot be installed.
The rest of the Apps including farm queue install just fine.
I checked the launcher.log During installation in Launcher,
the corresponding log is recorded and the launcher itself is shut down.
[[18060:0309/115520.076:ERROR:node_bindings.cc(146)] Fatal error in V8: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory]
I am using windows 11.
My system RAM 128GB
GPU A6000 48GB
I tested it on four of my workstations and they all got the same results…
plz help…
Hello @mangooo! What version of Farm Agent are you installing. I just tested Release 104.0.0 and it worked fine for me. If you could, please share your full logs with us, it might shed more light onto why you are receiving this error.
For the particular error you mentioned, it is a JavaScript Node.js issue where the default memory allocated by your system to Node.js is not enough to run a large project. When I see this error (on a Windows machine) this is how I usually fix it:
- Open the Start menu, search for Advanced System Settings, and select the Best match.
- From the dialog box, click on Environment Variables, then click on New from either System variables (applies to all users) or User variables (applies to current user).
- In the Variable name field enter
NODE_OPTIONS
. In the Variable value field enter --max-old-space-size=4096
. This value will allocate 4GB of virtual memory to Node.js. To set a different value, multiply the amount you require in GB by 1024 (the variable value needs to be in MB).
- Click on OK to save your changes, then click Apply and finally click OK once more. Restart Omniverse for the changes to take effect and you should hopefully avoid the “JavaScript heap out of memory” error.
I believe you can also make this change in a PowerShell terminal by opening one up and typing this command then pressing Enter:
$env:NODE_OPTIONS="--max-old-space-size=4096"
If you want to increase the heap memory temporarily, you can run this command in the PowerShell:
set NODE_OPTIONS=--max-old-space-size=4096
Let me know if this helps, if not, please share your logs with me so that we can help troubleshoot the issue!
thx @WendyGram
I installed both 104 and 103 versions.
I did as you said and the problem went away. However, the following log appears and the launcher is terminated without installation as before.
I am attaching the log that occurred when I hit the install command.
[2023-03-17 16:58:14.422] [info] Running /install command…
[2023-03-17 16:58:14.423] [debug] Enqueue [b8eb8855-a546-406c-9a41-792697bb81fd] .
[2023-03-17 16:58:14.423] [debug] Set current installer [b8eb8855-a546-406c-9a41-792697bb81fd] .
[2023-03-17 16:58:14.438] [debug] [b8eb8855-a546-406c-9a41-792697bb81fd] Extracting C:\Users\sales\Downloads\agent.zip to C:\Omniverse\library\OycNZ8…
[2023-03-17 16:58:14.459] [error] (node:2020) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use NVIDIA Omniverse Launcher --trace-deprecation ...
to show where the warning was created)
[2023-03-17 16:58:33.116] [debug] [b8eb8855-a546-406c-9a41-792697bb81fd] Read description.toml file from C:\Omniverse\library\OycNZ8
[2023-03-17 16:58:33.120] [debug] [b8eb8855-a546-406c-9a41-792697bb81fd] Extracting C:\Omniverse\library\OycNZ8\windows-x86_64\package.zip to C:\Omniverse\library\OycNZ8\windows-x86_64…