-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Description
Description
When loading Zarr v2 segmentation data with uint64 dtype, I get a JavaScript TypeError:
Cannot convert 0 to a BigInt
Analysis
The error appears to be related to how fill_value is handled for 64-bit integer types. The fill_value: 0 in the Zarr
metadata is parsed as a JavaScript Number, but BigInt typed arrays require BigInt values (e.g., 0n instead of 0).
Reference: zarr-specs#334 discusses this broader issue with
JSON encoding of int64/uint64 values in JavaScript.
Data Specifications
- Format: Zarr v2
- dtype: uint64 (
<u8) - fill_value: 0
- Chunks: 32x32x32
- Compression: zstd
- Multi-scale pyramid: 7 levels
Notes
- The same data loads correctly in Neuroglancer
- The data passes the OME-NGFF validator
- Small dense arrays may not trigger this bug (only occurs when sparse chunks need fill_value)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels