Project-MONAI / Project-MONAI/MONAILabel

slicer3d monailabel extension unable to fetch image from the server

Open
#1,497 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
891
Forks
269
Avg merge
15h 41m
Merged PRs (30d)
1

Description

Describe the bug
Slicer3d on macos is unable to fetch the image from the server on pressing the button "Next Sample"

Server logs

Traceback (most recent call last):
  File "/Applications/Slicer.app/Contents/Extensions-31382/MONAILabel/lib/Slicer-5.2/qt-scripted-modules/MONAILabel.py", line 1268, in onNextSampleButton
    self._volumeNode = sampleDataLogic.downloadFromURL(
IndexError: list index out of range

To Reproduce
Steps to reproduce the behavior:

  1. have monailabel server running from a distant machine and try to load image from it by pressing "Next Image"

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

Start at MONAILabel.py, especially onNextSampleButton around line 1268 and its downloadFromURL call. Reproduce with a remote MONAI Label server on macOS and inspect why the returned list is empty; done when Next Sample fetches the image without IndexError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.