TextWindow Enhancements (#2114)

* cause error

* revert for now

* decrease font by 10 pts

* remove unnecessary () for class ;)

* move exit button closer to right corner

* 70% transparency for black background

* cause error

* well that's not right

* try showing more lines

* actually show last three lines

* forgot to join

* debug what we can leave out

* show last four files

* revert

* show 3 lines and one extra for last erroring line

* increase by 5 points

* move text left a bit

* fix

* fix

* two more lines

* add double indentation for formatting

* remove indentation of file lines

* fix

* fix

* try this

* try this

* make lines shorter

* clean up error code in manager

* try one more

* reduce lines altered in PR

* four is good

* this actually isn't required anymore

* can move more left

* and increase size

* slightly less

* slightly less

* try a different error

* try last three with negative

* revert to 75

* fix

* clean up

* remove path hiding

* revert offsets

* revert
pull/2130/head
Shane Smiskol 5 years ago committed by GitHub
parent 6fad82e710
commit fb6f6268d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      common/text_window.py
  2. 3
      selfdrive/manager.py

@ -5,7 +5,7 @@ import subprocess
from common.basedir import BASEDIR from common.basedir import BASEDIR
class TextWindow(): class TextWindow:
def __init__(self, s, noop=False): def __init__(self, s, noop=False):
# text window is only implemented for android currently # text window is only implemented for android currently
self.text_proc = None self.text_proc = None

@ -620,8 +620,7 @@ if __name__ == "__main__":
cloudlog.exception("Manager failed to start") cloudlog.exception("Manager failed to start")
# Show last 3 lines of traceback # Show last 3 lines of traceback
error = traceback.format_exc(3) error = traceback.format_exc(-3)
error = "Manager failed to start\n \n" + error error = "Manager failed to start\n \n" + error
with TextWindow(error) as t: with TextWindow(error) as t:
t.wait_for_exit() t.wait_for_exit()

Loading…
Cancel
Save