Skip to content

[Bug]: Can not read model size >2gb in nodejs version @0.0.68 but older version 0.0.59 is ok. #1503

@RyugaRyuzaki

Description

@RyugaRyuzaki

What happened?

HI, i try to read model size >2gb. I use functionhttps://github.com/ThatOpen/engine_fragment/blob/main/packages/fragments/src/Importers/IfcImporter/node-example.ts#L5. And throw me error

Reading IFC file: Offset 2214592512 Size 67108864
Reading IFC file: Offset 2281701376 Size 67108864
Reading IFC file: Offset 2348810240 Size 67108864
Reading IFC file: Offset 2415919104 Size 67108864
Reading IFC file: Offset 2483027968 Size 67108864
Reading IFC file: Offset 2550136832 Size 67108864
Reading IFC file: Offset 2617245696 Size 67108864
Aborted()
C:\work-space\engine_fragment\node_modules\web-ifc\web-ifc-api-node.js:5028
          var e = new WebAssembly.RuntimeError(what);
                  ^

RuntimeError: Aborted(). Build with -sASSERTIONS for more info.
    at abort (C:\work-space\engine_fragment\node_modules\web-ifc\web-ifc-api-node.js:5028:19)     
    at _abort (C:\work-space\engine_fragment\node_modules\web-ifc\web-ifc-api-node.js:6971:11)    
    at wasm://wasm/0049141e:wasm-function[53]:0x183e
    at wasm://wasm/0049141e:wasm-function[129]:0x116d2
    at wasm://wasm/0049141e:wasm-function[1119]:0xd8040
    at wasm://wasm/0049141e:wasm-function[1043]:0xcfefb

So i downgrate version @ 0.0.59 it works.

Version

version 0.0.68

What browsers are you seeing the problem on?

No response

Relevant log output

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions