From e341c83aa1683c271e2ff094828eec0691592f0b Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Tue, 20 Jan 2026 19:10:11 +0100 Subject: [PATCH] Add comments about text-based fallback --- internal_filesystem/lib/mpos/ui/display.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal_filesystem/lib/mpos/ui/display.py b/internal_filesystem/lib/mpos/ui/display.py index 65f2a3ce..0d0e8003 100644 --- a/internal_filesystem/lib/mpos/ui/display.py +++ b/internal_filesystem/lib/mpos/ui/display.py @@ -23,8 +23,10 @@ def init_rootscreen(): img.set_blend_mode(lv.BLEND_MODE.DIFFERENCE) # invert the logo color img.center() except Exception as e: # if image loading fails - print(f"Falling back to text-based logo because image loading failed: {e}") - screen.clean() + print(f"ERROR: logo image failed, LVGL will be in a bad state and the UI will hang: {e}") + import sys + sys.print_exception(e) + print("Trying to fall back to a simple text-based 'logo' but it won't showup because the UI broke...") label = lv.label(screen) label.set_text("MicroPythonOS") label.set_style_text_font(lv.font_montserrat_20, lv.PART.MAIN)