Skip to content

Crash when filtering back to back #38

@Sobottasgithub

Description

@Sobottasgithub

When filtering a few times without clearing, this error accures:

2025-03-17 10:13:59,832 [DEBUG  ] LogViewer.ui.utils.proxy_model {MainThread} proxy_model.py:107: ended last block: self.visibilityList[-1] = {'start': 0, 'end': None, 'visibility': True}
Traceback (most recent call last):
  File "/home/patrick/source/repos/DebugTools/src/shared/utils/exceptions.py", line 12, in wrapper
  File "/home/patrick/source/repos/DebugTools/src/LogViewer/ui/utils/rawlog_model.py", line 101, in rowCount
RecursionError: maximum recursion depth exceeded

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/patrick/source/repos/DebugTools/src/LogViewer/ui/utils/filter_model.py", line 21, in processRowsInserted
    self.filterNewEntries(self.start)
  File "/home/patrick/source/repos/DebugTools/src/LogViewer/ui/utils/filter_model.py", line 32, in filterNewEntries
    self._filterTemplate(self.query, start=start)
  File "/home/patrick/source/repos/DebugTools/src/LogViewer/ui/utils/filter_model.py", line 44, in _filterTemplate
    for rawlogPosition in range(start, self.sourceModel().rowCount(None)-1):
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/patrick/source/repos/DebugTools/src/shared/utils/exceptions.py", line 14, in wrapper
    logger.exception("Exception in thread/pyqt callback!")
  File "/usr/lib/python3.11/logging/__init__.py", line 1524, in exception
    self.error(msg, *args, exc_info=exc_info, **kwargs)
RecursionError: maximum recursion depth exceeded in comparison
Aborted (core dumped)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions