-
-
Notifications
You must be signed in to change notification settings - Fork 0
Crash when searching backwards #67
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Searching forwards did not jump to the next entry at all, trying to search backwards instead, led to this crash:
2025-05-06 20:04:16,386 [DEBUG ] LogViewer.utils.search {MainThread} search.py:90: Resetting start index to 5863RI on next search...
Traceback (most recent call last):
File "/home/thilo/cvs/DebugTools/src/LogViewer/ui/main_window.py", line 381, in searchPrevious
self._search(Search.previous)
File "/home/thilo/cvs/DebugTools/src/LogViewer/ui/main_window.py", line 410, in _search
self.searchPrevious()
File "/home/thilo/cvs/DebugTools/src/LogViewer/ui/main_window.py", line 381, in searchPrevious
self._search(Search.previous)
[...]
File "/home/thilo/cvs/DebugTools/src/LogViewer/ui/main_window.py", line 410, in _search
self.searchPrevious()
File "/home/thilo/cvs/DebugTools/src/LogViewer/ui/main_window.py", line 381, in searchPrevious
self._search(Search.previous)
File "/home/thilo/cvs/DebugTools/src/LogViewer/ui/main_window.py", line 410, in _search
self.searchPrevious()
File "/home/thilo/cvs/DebugTools/src/LogViewer/ui/main_window.py", line 381, in searchPrevious
self._search(Search.previous)
File "/home/thilo/cvs/DebugTools/src/LogViewer/ui/main_window.py", line 397, in _search
result = func(self.search) # bind self (first arg) using our (newly created) self.search
^^^^^^^^^^^^^^^^^
File "/home/thilo/cvs/DebugTools/src/LogViewer/utils/search.py", line 119, in previous
self.resultIndex = self.calculateStartIndex(self.startIndex, Search.PREVIOUS)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/thilo/cvs/DebugTools/src/LogViewer/utils/search.py", line 70, in calculateStartIndex
logger.debug("Start index %dRI is at %dSI in direction %s" % (startIndex, retval, "NEXT" if direction == Search.NEXT else "PREVIOUS"))
File "/usr/lib/python3.11/logging/__init__.py", line 1477, in debug
self._log(DEBUG, msg, args, **kwargs)
File "/usr/lib/python3.11/logging/__init__.py", line 1634, in _log
self.handle(record)
File "/usr/lib/python3.11/logging/__init__.py", line 1644, in handle
self.callHandlers(record)
File "/usr/lib/python3.11/logging/__init__.py", line 1706, in callHandlers
hdlr.handle(record)
File "/usr/lib/python3.11/logging/__init__.py", line 978, in handle
self.emit(record)
File "/usr/lib/python3.11/logging/__init__.py", line 1110, in emit
msg = self.format(record)
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/logging/__init__.py", line 953, in format
return fmt.format(record)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/logging/__init__.py", line 688, in format
if self.usesTime():
^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/logging/__init__.py", line 656, in usesTime
return self._style.usesTime()
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/logging/__init__.py", line 433, in usesTime
return self._fmt.find(self.asctime_search) >= 0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RecursionError: maximum recursion depth exceeded while calling a Python object
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working