Opened 7 years ago

Closed 4 years ago

#7837 closed defect (worksforme)

arm crashes when I open the conenctions page

Reported by: SoakedNoodle Owned by: atagar
Priority: Very High Milestone:
Component: Archived/Nyx Version:
Severity: Normal Keywords: arm
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


When I use the left/right buttons or the menu option.
version 1.4.6_dev

Traceback (most recent call last):
  File "arm/src/", line 497, in <module>
    cli.controller.startTorMonitor(time.time() - initTime)
  File "/home/soakednoodle/arm/src/cli/", line 569, in startTorMonitor
    curses.wrapper(drawTorMonitor, startTime)
  File "/usr/lib/python2.7/curses/", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "/home/soakednoodle/arm/src/cli/", line 624, in drawTorMonitor
  File "/home/soakednoodle/arm/src/cli/", line 341, in redraw
  File "/home/soakednoodle/arm/src/util/", line 408, in redraw
    self.draw(self.maxX, self.maxY)
  File "/home/soakednoodle/arm/src/cli/connections/", line 388, in draw
    drawEntry = entryLine.getListingEntry(width - scrollOffset - len(prefix), currentTime, self._listingType)
  File "/home/soakednoodle/arm/src/cli/connections/", line 290, in getListingEntry
    myListing = entries.ConnectionPanelLine.getListingEntry(self, width, currentTime, listingType)
  File "/home/soakednoodle/arm/src/cli/connections/", line 136, in getListingEntry
    self._listingCache = self._getListingEntry(width, currentTime, listingType)
  File "/home/soakednoodle/arm/src/cli/connections/", line 324, in _getListingEntry
    (self._getListingContent(width - (12 + timeWidth) - 1, listingType), lineFormat),
  File "/home/soakednoodle/arm/src/cli/connections/", line 545, in _getListingContent
    dstAddress = self.getDestinationLabel(26, includeLocale = True)
  File "/home/soakednoodle/arm/src/cli/connections/", line 828, in getDestinationLabel
    foreignLocale = self.foreign.getLocale("??")
  File "/home/soakednoodle/arm/src/cli/connections/", line 111, in getLocale
    return conn.getInfo("ip-to-country/%s" % self.ipAddr, default)
  File "/home/soakednoodle/arm/src/util/", line 441, in getInfo
    return self.controller.get_info(param, default)
  File "/home/soakednoodle/arm/src/stem/", line 841, in get_info
    log.warn("Tor's geoip database is unavailable.")
  File "/home/soakednoodle/arm/src/stem/util/", line 153, in warn
    def warn(message):   log(Runlevel.WARN, message)
  File "/home/soakednoodle/arm/src/stem/util/", line 128, in log
    LOGGER.log(LOG_VALUES[runlevel], message)
  File "/usr/lib/python2.7/logging/", line 1203, in log
    self._log(level, msg, args, **kwargs)
  File "/usr/lib/python2.7/logging/", line 1258, in _log
  File "/usr/lib/python2.7/logging/", line 1268, in handle
  File "/usr/lib/python2.7/logging/", line 1308, in callHandlers
  File "/usr/lib/python2.7/logging/", line 748, in handle
  File "/home/soakednoodle/arm/src/cli/", line 584, in emit
    eventColor = RUNLEVEL_EVENT_COLOR[record.levelname]
KeyError: 'WARNING'

I think "Tor's geoip database is unavailable." shouldn't fail this hard, right?

Child Tickets

Change History (2)

comment:1 Changed 7 years ago by atagar

Hi SoakedNoodle. Thanks for the bug report! This is likely related to the migration of arm to stem (it included a massive overhaul of arm's internals, potentially causing issues - good for stability in the long term but bad in the short term).

comment:2 Changed 4 years ago by atagar

Resolution: worksforme
Severity: Normal
Status: newclosed

Cleaning up old tickets. Nyx is undergoing a rewrite, if this is still relevant then feel free to reopen.

Note: See TracTickets for help on using tickets.