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

Crash: Polygon tool cancellation dialog causes crash #12

Closed mingrui closed 6 years ago

mingrui commented 6 years ago

Bug in action: https://drive.google.com/open?id=1RTnrNJ8GvjM-gIwS8tUE5jg95V6eyIZJ

When using the polygon tool, without finishing the annotation, if I switch to another tool, a cancel confirmation dialog box will pop up. If I click yes, the program will crash.

Crash log:

Traceback (most recent call last):
  File "/mnt/960EVO/workspace/pathology/SlideRunner/SlideRunner/SlideRunner.py", line 663, in setUIMode
    self.showImage()
  File "/mnt/960EVO/workspace/pathology/SlideRunner/SlideRunner/SlideRunner.py", line 1347, in showImage
    npi = self.showPolygon(npi, self.ui.annotationsList, color=[0,0,0,255])
  File "/mnt/960EVO/workspace/pathology/SlideRunner/SlideRunner/SlideRunner.py", line 785, in showPolygon
    anno = self.slideToScreen(polygon[listIdx])
IndexError: list index out of range
[1]    21235 abort (core dumped)  python main.py
maubreville commented 6 years ago

Thanks for the detailed report. Was able to reproduce.