Opened 3 years ago

Closed 3 years ago

#24401 closed defect (fixed)

Nyx crashed when scrolling down on the Tor Configuration File page

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


Nyx crashed when scrolling down on the Tor Configuration File page. Here is the traceback.

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 243, in draw_loop


  File "/usr/local/lib/python3.5/dist-packages/nyx/panel/", line 82, in handle


  File "/usr/local/lib/python3.5/dist-packages/nyx/panel/", line 232, in _scroll


  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 746, in draw

    func(_Subwindow(subwindow_width, subwindow_height, curses_subwindow))

  File "/usr/local/lib/python3.5/dist-packages/nyx/panel/", line 315, in _draw

    _draw_line(subwindow, scroll_offset, DETAILS_HEIGHT + i, entry, entry == selected, value_width, description_width)

  File "/usr/local/lib/python3.5/dist-packages/nyx/panel/", line 335, in _draw_line

    attr = [CONFIG['attr.config.category_color'].get(entry.category, WHITE)]

  File "/usr/local/lib/python3.5/dist-packages/nyx/panel/", line 136, in category

    return getattr(manual(, 'category')

AttributeError: 'NoneType' object has no attribute 'category'

Child Tickets

Change History (1)

comment:1 Changed 3 years ago by atagar

Resolution: fixed
Status: newclosed

Thanks Dbryrtfbcbhgf! Sorry about the delay, fix pushed...

Note: See TracTickets for help on using tickets.