AllenInstitute / AllenInstitute/vis

Fix issue where latter half of slides won't load

Open
#149 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
10
Forks
1
Avg merge
10h 24m
Merged PRs (30d)
7

Description

Describe the bug
When loading data with multiple datasets, there is a bug where the slides won't load correctly.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the OME-Zarr example viewer on the demo site: https://alleninstitute.github.io/vis/
  2. Load the custom URL: https://d3hik2dwvr9wk1.cloudfront.net/A549/organelle_box_crop_v1.zarr/ACTB/Live/003001
  3. Notice that nothing loads, although there are 38 slides
  4. Navigate back one slide, everything lower than 20 loads

Expected behavior
All slides load

Screenshots
Image

Additional context
It's something to do with the datasets and arrays. I see a zarr.get call from Zarrita failing to load, and it's complaining about an index out of bounds since 38 is too high for 19 and 10. Which is that third number in the data structure in arrays

Contributor guide

Open the contributing guide

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.

Research direction

Reproduce the issue in the OME-Zarr example viewer using the custom URL in the report. Start by tracing the datasets and arrays involved in the failing Zarrita zarr.get call, especially the reported index-out-of-bounds condition. Done means all 38 slides load correctly rather than only the slides below 20.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.