Opened 5 months ago

Closed 5 months ago

#25300 closed defect (duplicate)

nyx crashes when terminal is resizes to too few rows

Reported by: nortor Owned by: atagar
Priority: Medium Milestone:
Component: Core Tor/Nyx Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

nyx will crash if, after resizing the terminal, there is too few rows in the terminal to show the "Events (TOR/NYX NOTICE-ERR)"-line.

Child Tickets

Change History (2)

comment:1 Changed 5 months ago by nortor

My system is FreeBSD 11.1, and this happens when using either the "py36-nyx-2.0.4" or the "py27-nyx-2.0.4" package (installed via pkg (latest).

Stack trace:

Traceback (most recent call last):
  File "/usr/local/bin/nyx", line 11, in <module>
    load_entry_point('nyx==2.0.4', 'console_scripts', 'nyx')()
  File "/usr/local/lib/python3.6/site-packages/nyx/__init__.py", line 176, in main
    nyx.starter.main()
  File "/usr/local/lib/python3.6/site-packages/stem/util/conf.py", line 289, in wrapped
    return func(*args, config = config, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/nyx/starter.py", line 118, in main
    nyx.curses.start(nyx.draw_loop, acs_support = config.get('acs_support', True), transparent_background = True, cursor = False)
  File "/usr/local/lib/python3.6/site-packages/nyx/curses.py", line 217, in start
    curses.wrapper(_wrapper)
  File "/usr/local/lib/python3.6/curses/__init__.py", line 94, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/local/lib/python3.6/site-packages/nyx/curses.py", line 215, in _wrapper
    function()
  File "/usr/local/lib/python3.6/site-packages/nyx/__init__.py", line 245, in draw_loop
    interface.redraw(force = not key.is_null())
  File "/usr/local/lib/python3.6/site-packages/nyx/__init__.py", line 716, in redraw
    panel.redraw(force = force, top = occupied)
  File "/usr/local/lib/python3.6/site-packages/nyx/panel/__init__.py", line 175, in redraw
    self._last_draw_size = nyx.curses.draw(self._draw, top = self._top, height = self.get_height(), draw_if_resized = draw_dimension)
  File "/usr/local/lib/python3.6/site-packages/nyx/curses.py", line 740, in draw
    curses_subwindow = CURSES_SCREEN.subwin(subwindow_height, subwindow_width, top, left)
_curses.error: curses function returned NULL

comment:2 Changed 5 months ago by atagar

Resolution: duplicate
Status: newclosed

Hi, sounds like https://trac.torproject.org/projects/tor/ticket/24382. If this is still having issues with the git codebase then feel free to reopen.

Note: See TracTickets for help on using tickets.