xrmx / uwsgitop

top-like app for monitoring uWSGI instances

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error: addstr() returned ERR

hjwp opened this issue · comments

I get:

Traceback (most recent call last):
  File "/usr/local/bin/uwsgitop", line 149, in <module>
    screen.addstr(pos, 0, " %s\t%d" % (vassal['id'].ljust(vassal_spaces), vassal['pid']))
error: addstr() returned ERR

Think it could be some problem with curses being confused about the size of the terminal it has available? http://ubuntuforums.org/showthread.php?t=457689

This happens when the terminal has not enough rows to print all vassals. I found that out by adding if pos >= 70: break to the vassall print loop (where 70 is around the number of rows visible in my terminal).