xrmx / uwsgitop

top-like app for monitoring uWSGI instances
MIT License
496 stars 77 forks source link

error: addstr() returned ERR #9

Open hjwp opened 10 years ago

hjwp commented 10 years ago

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

toabi commented 9 years ago

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).