Comments (4)
We have a solution for this, I'll describe below.
This happens when NodeJS cannot allocate all the necessary memory it needs to convert large files. NodeJS always has a hard 1GB limit on how much memory it can allocate for text strings in memory. When we try to process large glTF and JSON files, users often encounter the error you've shown.
In xeokit-sdk 2.4.0 we can now avoid this error by using the model splitting feature described in this tutorial.
For splitting, we extended ifc2gltfcxconverter and convert2xkt, to automatically split models into parts, and we also extended xeokit-sdk and xeokit-bim-viewer to seamlessly load split models. Note that ifc2gltfcxconverter is our closed source tool provided by Creoox with a commercial license.
As a result, we are now able to convert and load models like this 2GB Baku stadium IFC, so it seems to solve this problem pretty nicely:
from xeokit-convert.
Related Issues (20)
- thumbnails HOT 1
- convert2xkt.js TypeError: fetch failed HOT 5
- Error: TypeError: fetch failed HOT 3
- XKT convert does not include gridlines HOT 1
- webifc 0.0.39 support? HOT 2
- Error: TypeError: Failed to parse URL from /home/user/projects/xeokit-convert/node_modules/web-ifc/./web-ifc.wasm HOT 1
- xktv10 high memory usage HOT 1
- How to convert .step files to .XKT? HOT 1
- Exclude element without reading his full info HOT 4
- IfcConvert changed a behavior, impact need to be monitored HOT 1
- How to convert an ifc file into an xkt model HOT 5
- IfcConvert tanslate error
- Optimization to create less tiles in XKT
- ERROR: No basis found for brep HOT 2
- Object's Color Issue
- With a big IFC - Error: RuntimeError: memory access out of bounds
- Missplaced components when using large coordinates
- convert2xkt.js TypeError: Failed to parse URL from web-ifc.wasm HOT 2
- Fix LAS default color depth
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xeokit-convert.