Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript heap out of memory #285

Open
kaigalmane opened this issue Feb 2, 2023 · 3 comments
Open

JavaScript heap out of memory #285

kaigalmane opened this issue Feb 2, 2023 · 3 comments

Comments

@kaigalmane
Copy link

I am trying to transform an 8GB OBJ file to GLTF. Below is the command used.

obj2gltf -i outputobj.obj -o building.gltf

Memory utilization goes up to 10GB in Task manager and throughs the below error. Added NODE_OPTIONS=--max-old-space-size=8192 in Environment Variables but no luck.

image

@lilleyse
Copy link
Contributor

lilleyse commented Feb 3, 2023

Hi @kaigalmane thanks for the report. Are you able to share the model?

@kaigalmane
Copy link
Author

kaigalmane commented Feb 4, 2023

Unfortunately no since it's a client asset. We tried the commands below which seem to solve the memory issue. But didn't work.

image

image

@lilleyse
Copy link
Contributor

lilleyse commented Feb 6, 2023

@kaigalmane that's interesting... I assume that happens in the JSON stringify step. It's unusual for the JSON portion to get that large. Does the obj have a lot of object or group names?

One other thing to try is saving as a .glb (-i outputobj.obj -o building.glb -s) though I would expect it to hit the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants