Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Canvas text is wider than the maxcol specified #13

Closed
mikethebeer opened this issue May 15, 2017 · 1 comment
Closed

Canvas text is wider than the maxcol specified #13

mikethebeer opened this issue May 15, 2017 · 1 comment

Comments

@mikethebeer
Copy link

I get this when monitoring on heavy load.

Traceback (most recent call last):
  File "/home/mibe/sandbox/mikethebeer/crate-top/.venv/bin/cstat", line 9, in <module>
    load_entry_point('cstat', 'console_scripts', 'cstat')()
  File "/mnt/d/sandbox/mikethebeer/crate-top/cstat/command.py", line 153, in main
    stat.main()
  File "/mnt/d/sandbox/mikethebeer/crate-top/cstat/command.py", line 80, in main
    self.loop.run()
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/main_loop.py", line 278, in run
    self._run()
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/main_loop.py", line 376, in _run
    self.event_loop.run()
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/main_loop.py", line 682, in run
    self._loop()
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/main_loop.py", line 710, in _loop
    self._entering_idle()
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/main_loop.py", line 671, in _entering_idle
    callback()
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/main_loop.py", line 564, in entering_idle
    self.draw_screen()
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/main_loop.py", line 578, in draw_screen
    canvas = self._topmost_widget.render(self.screen_size, focus=True)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/widget.py", line 141, in cached_render
    canv = fn(self, size, focus=focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/widget.py", line 1750, in render
    canv = get_delegate(self).render(size, focus=focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/widget.py", line 141, in cached_render
    canv = fn(self, size, focus=focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/container.py", line 1083, in render
    focus and self.focus_part == 'body')
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/widget.py", line 141, in cached_render
    canv = fn(self, size, focus=focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/decoration.py", line 816, in render
    canv = self._original_widget.render((maxcol,), focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/widget.py", line 141, in cached_render
    canv = fn(self, size, focus=focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/container.py", line 1520, in render
    canv = w.render((maxcol,), focus=focus and item_focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/widget.py", line 141, in cached_render
    canv = fn(self, size, focus=focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/widget.py", line 1750, in render
    canv = get_delegate(self).render(size, focus=focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/widget.py", line 141, in cached_render
    canv = fn(self, size, focus=focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/widget.py", line 1750, in render
    canv = get_delegate(self).render(size, focus=focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/widget.py", line 141, in cached_render
    canv = fn(self, size, focus=focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/decoration.py", line 225, in render
    canv = self._original_widget.render(size, focus=focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/widget.py", line 141, in cached_render
    canv = fn(self, size, focus=focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/container.py", line 1520, in render
    canv = w.render((maxcol,), focus=focus and item_focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/widget.py", line 141, in cached_render
    canv = fn(self, size, focus=focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/container.py", line 2085, in render
    focus = focus and self.focus_position == i)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/widget.py", line 141, in cached_render
    canv = fn(self, size, focus=focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/container.py", line 1520, in render
    canv = w.render((maxcol,), focus=focus and item_focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/widget.py", line 141, in cached_render
    canv = fn(self, size, focus=focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/widget.py", line 1750, in render
    canv = get_delegate(self).render(size, focus=focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/widget.py", line 141, in cached_render
    canv = fn(self, size, focus=focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/container.py", line 1520, in render
    canv = w.render((maxcol,), focus=focus and item_focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/widget.py", line 141, in cached_render
    canv = fn(self, size, focus=focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/container.py", line 2085, in render
    focus = focus and self.focus_position == i)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/widget.py", line 141, in cached_render
    canv = fn(self, size, focus=focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/container.py", line 1520, in render
    canv = w.render((maxcol,), focus=focus and item_focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/widget.py", line 141, in cached_render
    canv = fn(self, size, focus=focus)
  File "/mnt/d/sandbox/mikethebeer/crate-top/cstat/widgets.py", line 84, in render
    maxcol=maxcol)
  File "/mnt/d/sandbox/mikethebeer/crate-top/.venv/lib/python3.5/site-packages/urwid/canvas.py", line 356, in __init__
    raise CanvasError("Canvas text is wider than the maxcol specified \n%r\n%r\n%r"%(maxcol,widths,text))
urwid.canvas.CanvasError: Canvas text is wider than the maxcol specified 
104
[105]
[b'          [|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||101.0%]']

Not entirely sure why CrateDB returns 101 %, maybe this should be fixed there - Could be a problem with the Sigar plugin.

@mikethebeer
Copy link
Author

@chaudum sry. this is the same as #7

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant