hms-dbmi / viv

Library for multiscale visualization of high-resolution multiplexed bioimaging data on the web. Directly renders Zarr and OME-TIFF.
http://avivator.gehlenborglab.org
MIT License
283 stars 46 forks source link

"deck: error during drawing of XRLayer" #225

Closed mccalluc closed 11 months ago

mccalluc commented 4 years ago

On https://portal.test.hubmapconsortium.org/browse/dataset/2392b8c6e84b3874cc0530fa058cb96e, (Imaging pyramind, one OME-TIFF,) this error occurs multiple times on initial load:

deck: error during drawing of XRLayer({id: 'XR-Static-Layer-0-167-440-0-0-0.21375559671624345'}) TypeError: "P[a] is undefined"

(Stack trace not helpful.)

After load, scrolling up produces hubmapconsortium/vitessce-image-viewer#224 ... Not sure if related.

mccalluc commented 4 years ago

Transpiled code:

  var maxSliderValue = domain && domain[1] || DTYPE_VALUES[dtype].max;

We hit this line with with both domain and DTYPE_VALUES undefined.

Viv source code: https://github.com/hubmapconsortium/vitessce-image-viewer/blob/603e3d895ae3b1d7468de4cafae68147b00bde66/src/layers/utils.js#L34

Tranfer to Viv.