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

Model fails to round trip #277

Closed
mramato opened this issue May 3, 2017 · 1 comment
Closed

Model fails to round trip #277

mramato opened this issue May 3, 2017 · 1 comment
Labels

Comments

@mramato
Copy link
Contributor

mramato commented May 3, 2017

Here is a quantized version of the BrainStem sample model: BrainStem-q.zip

Running gltf-pipeline -i /BrainStem-q.gltf -o out.gltf results in a crash with the below call stack. It looks like we're passing an invalid offset when constructing the Uint8Array from the buffer.

Unhandled rejection RangeError: Invalid typed array length
    at new Uint8Array (native)
    at packGltfBuffer (C:\Git\AnalyticalGraphicsInc\gltf-pipeline\lib\uninterleaveAndPackBuffers.js:64:29)
    at uninterleaveAndPackBuffers (C:\Git\AnalyticalGraphicsInc\gltf-pipeline\lib\uninterleaveAndPackBuffers.js:32:13)
    at cesiumGeometryToGltfPrimitive (C:\Git\AnalyticalGraphicsInc\gltf-pipeline\lib\cesiumGeometryToGltfPrimitive.js:100:5)
    at optimizeForVertexCache (C:\Git\AnalyticalGraphicsInc\gltf-pipeline\lib\optimizeForVertexCache.js:94:21)
    at Function.Pipeline.processJSONWithExtras (C:\Git\AnalyticalGraphicsInc\gltf-pipeline\lib\Pipeline.js:130:9)
    at C:\Git\AnalyticalGraphicsInc\gltf-pipeline\lib\Pipeline.js:261:29
    at tryCatcher (C:\Git\AnalyticalGraphicsInc\gltf-pipeline\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (C:\Git\AnalyticalGraphicsInc\gltf-pipeline\node_modules\bluebird\js\release\promise.js:512:31)
    at Promise._settlePromise (C:\Git\AnalyticalGraphicsInc\gltf-pipeline\node_modules\bluebird\js\release\promise.js:569:18)
    at Promise._settlePromise0 (C:\Git\AnalyticalGraphicsInc\gltf-pipeline\node_modules\bluebird\js\release\promise.js:614:10)
    at Promise._settlePromises (C:\Git\AnalyticalGraphicsInc\gltf-pipeline\node_modules\bluebird\js\release\promise.js:693:18)
    at Async._drainQueue (C:\Git\AnalyticalGraphicsInc\gltf-pipeline\node_modules\bluebird\js\release\async.js:133:16)
    at Async._drainQueues (C:\Git\AnalyticalGraphicsInc\gltf-pipeline\node_modules\bluebird\js\release\async.js:143:10)
    at Immediate.Async.drainQueues (C:\Git\AnalyticalGraphicsInc\gltf-pipeline\node_modules\bluebird\js\release\async.js:17:14)
    at runCallback (timers.js:666:20)
@mramato
Copy link
Contributor Author

mramato commented May 9, 2017

Fixed in #279

@mramato mramato closed this as completed May 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant