CesiumGS / CesiumGS/obj2gltf

JavaScript heap out of memory

Open
#285 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.9k
Forks
311
PR merge metrics
No merged PRs in 30d

Description

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](https://user-images.githubusercontent.com/60817964/216330499-ade16a41-f356-4708-b08e-96d78836eb1f.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the exact `obj2gltf -i outputobj.obj -o building.gltf` command with the 8GB OBJ and inspect the reported Node heap failure. Compare the behavior with the supplied `NODE_OPTIONS=--max-old-space-size=8192` setting; done means the conversion completes or the limitation and next step are clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.