DeepMicroscopy / SlideRunner

SlideRunner is a tool for massive cell annotations in whole slide images
GNU General Public License v3.0
75 stars 10 forks source link

if (self.itemsSelected[annotation[4]]): IndexError: index 4 is out of bounds for axis 0 with size 3 #7

Closed mingrui closed 6 years ago

mingrui commented 6 years ago

This is a weird error I encountered during annotation. But oddly after updating to the latest code, this issue disappeared.

I have included error file and the database that triggered the core dump here: https://drive.google.com/open?id=1iSjcUJVzAIoTBZuChE0XJ_TMAWsng-n-

Plugin triggered...
OTSU plugin: received 1 image from queue
(1005, 1533, 4)
(1005, 1533, 3)
OTSU plugin: done
Received an image from the plugin queue
Traceback (most recent call last):
  File "/home/sliderunner/Desktop/SlideRunner/SlideRunner/gui/mouseEvents.py", line 263, in releaseImage
    GUIannotation.addCircleAnnotation(self, self.lastAnnotationClass, event)
  File "/home/sliderunner/Desktop/SlideRunner/SlideRunner/gui/annotation.py", line 83, in addCircleAnnotation
    self.showImage()
  File "/home/sliderunner/Desktop/SlideRunner/SlideRunner/SlideRunner.py", line 1197, in showImage
    npi = self.overlayAnnotations(npi)
  File "/home/sliderunner/Desktop/SlideRunner/SlideRunner/SlideRunner.py", line 955, in overlayAnnotations
    if (self.itemsSelected[annotation[4]]):
IndexError: index 4 is out of bounds for axis 0 with size 3
Aborted (core dumped)

This bug is fixed for now, including it here just in case it pops up again in the future.