microsoft / microsoft/glTF-SDK

Buffer error when reaching 2GB (2.147.869.560) byteLength

Open
#116 18 comments 0 reactions 1 assignee View on GitHub

@bghgary is already working on this.

Since Dec 7, 2023.

bug
Dominant language
C++
Stars
626
Forks
113
PR merge metrics
No merged PRs in 30d

Description

Hi,

my data to export are very big, and GLTFSDK raises an exception.

totalbyteLength seems not to go beyond 2.147.869.560 bytes.
Do you know the maximum of the offset that ResourceWriter can write ?
How can I extend it ?

L86 @ ResourceWriter.cpp

image

L34 @ StreamUtils.cpp

image

I noticed that Buffer and BufferView always have 1 item when exporting to glb.
Shouldn't be more reasonable to have multiple BufferViews and Buffers so as not to reach exceptions?

Best,
Dimitrios

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.