#28781 closed defect (duplicate)

nyx crash with traceback while browsing config

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

Description

Versions:

nyx: 2.0.4 installed with pip
stem: 1.7.0 installed with pip
tor: 0.3.4.9-1~bionic+1 installed from apt repository at deb.torproject.org

OS: Ubuntu GNU/Linux 18.04 Bionic

Configuration:

/etc/tor/torrc:

SOCKSPort 127.0.0.1:9050

Log notice file /var/log/tor/notices.log

CookieAuthentication 1
DisableDebuggerAttachment 0

ORPort 443

BandwidthRate 4096 KBytes
BandwidthBurst 5120 KBytes
RelayBandwidthRate 4096 KBytes
RelayBandwidthBurst 5120 KBytes

ExitRelay 0
ExitPolicy reject *:*

HardwareAccel 1

~/.nyx/config - does not exist

Steps to reproduce:

  • start nyx
  • press m to show menu
  • choose View - Config
  • press a to show all options
  • start scrolling down with key down arrow until the end
  • nyx crashes

Traceback:

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/python2.7/dist-packages/nyx/__init__.py", line 176, in main
    nyx.starter.main()
  File "/usr/local/lib/python2.7/dist-packages/stem/util/conf.py", line 289, in wrapped
    return func(*args, config = config, **kwargs)
  File "/usr/local/lib/python2.7/dist-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/python2.7/dist-packages/nyx/curses.py", line 217, in start
    curses.wrapper(_wrapper)
  File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/local/lib/python2.7/dist-packages/nyx/curses.py", line 215, in _wrapper
    function()
  File "/usr/local/lib/python2.7/dist-packages/nyx/__init__.py", line 243, in draw_loop
    keybinding.handle(key)
  File "/usr/local/lib/python2.7/dist-packages/nyx/panel/__init__.py", line 82, in handle
    self._action(key)
  File "/usr/local/lib/python2.7/dist-packages/nyx/panel/config.py", line 232, in _scroll
    self.redraw()
  File "/usr/local/lib/python2.7/dist-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/python2.7/dist-packages/nyx/curses.py", line 746, in draw
    func(_Subwindow(subwindow_width, subwindow_height, curses_subwindow))
  File "/usr/local/lib/python2.7/dist-packages/nyx/panel/config.py", line 315, in _draw
    _draw_line(subwindow, scroll_offset, DETAILS_HEIGHT + i, entry, entry == selected, value_width, description_width)
  File "/usr/local/lib/python2.7/dist-packages/nyx/panel/config.py", line 335, in _draw_line
    attr = [CONFIG['attr.config.category_color'].get(entry.category, WHITE)]
  File "/usr/local/lib/python2.7/dist-packages/nyx/panel/config.py", line 136, in category
    return getattr(manual(self.name), 'category')
AttributeError: 'NoneType' object has no attribute 'category'

Child Tickets

Change History (1)

comment:1 Changed 12 months ago by atagar

Resolution: duplicate
Status: newclosed

Hi iquziev7, this is fixed in the git codebase...

https://trac.torproject.org/projects/tor/ticket/24401

Note: See TracTickets for help on using tickets.