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

fixed display overflow caused by CPU widget #14

Merged
merged 1 commit into from
May 22, 2017

Conversation

chaudum
Copy link
Owner

@chaudum chaudum commented May 18, 2017

#7

@mikethebeer
Copy link

mikethebeer commented May 19, 2017

@chaudum Leads to this if the Crate Process is > 100%

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 
81
[186]
[b'          [||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||252.3%]']

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

Successfully merging this pull request may close these issues.

2 participants