Opened 3 years ago

Closed 3 years ago

Last modified 2 years ago

#24382 closed defect (fixed)

I resized my terminal window and nyx crashed.

Reported by: Dbryrtfbcbhgf Owned by: atagar
Priority: High Milestone:
Component: Archived/Nyx Version:
Severity: Major Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


I resized my terminal window and nyx crashed. Here is the traceback.

Traceback (most recent call last):

  File "/usr/local/bin/nyx", line 11, in <module>


  File "/usr/local/lib/python3.5/dist-packages/nyx/", line 176, in main


  File "/usr/local/lib/python3.5/dist-packages/stem/util/", line 289, in wrapped

    return func(*args, config = config, **kwargs)

  File "/usr/local/lib/python3.5/dist-packages/nyx/", 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.5/dist-packages/nyx/", line 217, in start


  File "/usr/lib/python3.5/curses/", line 94, in wrapper

    return func(stdscr, *args, **kwds)

  File "/usr/local/lib/python3.5/dist-packages/nyx/", line 215, in _wrapper


  File "/usr/local/lib/python3.5/dist-packages/nyx/", line 245, in draw_loop

    interface.redraw(force = not key.is_null())

  File "/usr/local/lib/python3.5/dist-packages/nyx/", line 716, in redraw

    panel.redraw(force = force, top = occupied)

  File "/usr/local/lib/python3.5/dist-packages/nyx/panel/", 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.5/dist-packages/nyx/", line 740, in draw

    curses_subwindow = CURSES_SCREEN.subwin(subwindow_height, subwindow_width, top, left)

_curses.error: curses function returned NULL

Child Tickets

Change History (2)

comment:1 Changed 3 years ago by atagar

Resolution: fixed
Status: newclosed

Thanks Dbryrtfbcbhgf! Another great catch. I can't reliably repro fix but pushed a fix that should address it...

comment:2 Changed 2 years ago by saper

I have almost filed a dupe of this, maybe we could have 2.0.5 with that fix out?

Note: See TracTickets for help on using tickets.