Skip to content

Random error after pressing some random buttons #1176

Description

@Teranis

Description:

As title says, I think it was after checking Automatic IDs in the brush but I am not sure.

Way to reproduce:

No response

(Optional) Link to data to reproduce error:

No response

Terminal output:

Traceback (most recent call last):
  File "C:\Users\timon\repos\Cell_ACDC\cellacdc\gui.py", line 16159, in Eraser_cb
    self.updateAllImages()
    ~~~~~~~~~~~~~~~~~~~~^^
  File "C:\Users\timon\repos\Cell_ACDC\cellacdc\gui.py", line 30367, in updateAllImages
    self.setAllTextAnnotations(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^
        updateAllTextAnnotations=updateAllTextAnnotations
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "C:\Users\timon\repos\Cell_ACDC\cellacdc\gui.py", line 30184, in setAllTextAnnotations
    self.setLostNewOldPrevIDs()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "C:\Users\timon\repos\Cell_ACDC\cellacdc\gui.py", line 30833, in setLostNewOldPrevIDs
    self.setTitleText(
    ~~~~~~~~~~~~~~~~~^
        lost_IDs, new_IDs, IDs_with_holes, tracked_lost_IDs
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "C:\Users\timon\repos\Cell_ACDC\cellacdc\gui.py", line 30882, in setTitleText
    frame_to_restore = self.manualAnnotState.get('frame_i_to_restore')
                       ^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'guiWin' object has no attribute 'manualAnnotState'
Traceback (most recent call last):
  File "C:\Users\timon\repos\Cell_ACDC\cellacdc\__init__.py", line 726, in inner_function
    result = func(self, *args, **kwargs)
  File "C:\Users\timon\repos\Cell_ACDC\cellacdc\gui.py", line 7456, in gui_mouseReleaseEventImg1
    self.brushReleased()
    ~~~~~~~~~~~~~~~~~~^^
  File "C:\Users\timon\repos\Cell_ACDC\cellacdc\gui.py", line 12865, in brushReleased
    self.warnEditingWithCca_df(editTxt)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "C:\Users\timon\repos\Cell_ACDC\cellacdc\gui.py", line 29165, in warnEditingWithCca_df
    self.updateAllImages()
    ~~~~~~~~~~~~~~~~~~~~^^
  File "C:\Users\timon\repos\Cell_ACDC\cellacdc\gui.py", line 30367, in updateAllImages
    self.setAllTextAnnotations(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^
        updateAllTextAnnotations=updateAllTextAnnotations
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "C:\Users\timon\repos\Cell_ACDC\cellacdc\gui.py", line 30184, in setAllTextAnnotations
    self.setLostNewOldPrevIDs()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "C:\Users\timon\repos\Cell_ACDC\cellacdc\gui.py", line 30833, in setLostNewOldPrevIDs
    self.setTitleText(
    ~~~~~~~~~~~~~~~~~^
        lost_IDs, new_IDs, IDs_with_holes, tracked_lost_IDs
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "C:\Users\timon\repos\Cell_ACDC\cellacdc\gui.py", line 30885, in setTitleText
    f'since frame n. {frame_to_restore+1}'
                      ~~~~~~~~~~~~~~~~^~
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
[ERROR]: Traceback (most recent call last):
  File "C:\Users\timon\repos\Cell_ACDC\cellacdc\__init__.py", line 726, in inner_function
    result = func(self, *args, **kwargs)
  File "C:\Users\timon\repos\Cell_ACDC\cellacdc\gui.py", line 7456, in gui_mouseReleaseEventImg1
    self.brushReleased()
    ~~~~~~~~~~~~~~~~~~^^
  File "C:\Users\timon\repos\Cell_ACDC\cellacdc\gui.py", line 12865, in brushReleased
    self.warnEditingWithCca_df(editTxt)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "C:\Users\timon\repos\Cell_ACDC\cellacdc\gui.py", line 29165, in warnEditingWithCca_df
    self.updateAllImages()
    ~~~~~~~~~~~~~~~~~~~~^^
  File "C:\Users\timon\repos\Cell_ACDC\cellacdc\gui.py", line 30367, in updateAllImages
    self.setAllTextAnnotations(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^
        updateAllTextAnnotations=updateAllTextAnnotations
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "C:\Users\timon\repos\Cell_ACDC\cellacdc\gui.py", line 30184, in setAllTextAnnotations
    self.setLostNewOldPrevIDs()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "C:\Users\timon\repos\Cell_ACDC\cellacdc\gui.py", line 30833, in setLostNewOldPrevIDs
    self.setTitleText(
    ~~~~~~~~~~~~~~~~~^
        lost_IDs, new_IDs, IDs_with_holes, tracked_lost_IDs
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "C:\Users\timon\repos\Cell_ACDC\cellacdc\gui.py", line 30885, in setTitleText
    f'since frame n. {frame_to_restore+1}'
                      ~~~~~~~~~~~~~~~~^~
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

Log file:

No response

Version information:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 BugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions