Skip to content

Crash at fresh start, index out of range #1589

@ste-el-bow

Description

@ste-el-bow

Bug description

Zulip-term crashes at start

How is the bug triggered?

How can you reproduce the bug?

  1. install fresh zulip-term , add zuliprc file downloaded from dekstop client.
  2. try to run
  3. crashes

Does it produce a 'traceback' or 'exception'?


{e}


focus index is out of range: 15490883
Traceback (most recent call last):
  File "/home/steelbow/Projects/zulip-terminal/zulipterminal/cli/run.py", line 616, in main
    Controller(
  File "/home/steelbow/Projects/zulip-terminal/zulipterminal/core.py", line 103, in __init__
    self.view = View(self)
  File "/home/steelbow/Projects/zulip-terminal/zulipterminal/ui.py", line 56, in __init__
    super().__init__(self.main_window())
  File "/home/steelbow/Projects/zulip-terminal/zulipterminal/ui.py", line 165, in main_window
    self.center_panel = self.middle_column_view()
  File "/home/steelbow/Projects/zulip-terminal/zulipterminal/ui.py", line 72, in middle_column_view
    self.middle_column = MiddleColumnView(
  File "/home/steelbow/Projects/zulip-terminal/zulipterminal/ui_tools/views.py", line 556, in __init__
    message_view = MessageView(model, view)
  File "/home/steelbow/Projects/zulip-terminal/zulipterminal/ui_tools/views.py", line 118, in __init__
    self.set_focus(self.focus_msg)
  File "/home/steelbow/Projects/zulip-terminal/.venv/lib/python3.10/site-packages/urwid/listbox.py", line 550, in set_focus
    self._body.set_focus(position)
  File "/home/steelbow/Projects/zulip-terminal/zulipterminal/ui_tools/views.py", line 75, in set_focus
    self.focus = position
  File "/home/steelbow/Projects/zulip-terminal/.venv/lib/python3.10/site-packages/urwid/monitored_list.py", line 165, in _set_focus
    raise IndexError('focus index is out of range: %s' % (index,))
IndexError: focus index is out of range: 15490883

How are you running the application?

Please include as many of the following as possible:

  • Zulip-terminal version:
    current pypi version, current main (commit id: 8e5c035)
  • Zulip server version(s):
    Not known
  • Operating system (and version):
    Debian 13, Ubuntu 24.04
  • Python version (and implementation):
    3.10 CPython

If possible, please provide details from the About menu: (hotkey: Meta + ?)
(this can provide some of the details above)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions