From d47b00b45a866bef088f51d1ff31de5885ab04e9 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Fri, 11 Jun 2021 16:17:53 -0700 Subject: [PATCH] Fix UI crash when going onroad after onboarding (#21236) --- selfdrive/ui/ui.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/selfdrive/ui/ui.cc b/selfdrive/ui/ui.cc index 07c72c948d..7238e594e1 100644 --- a/selfdrive/ui/ui.cc +++ b/selfdrive/ui/ui.cc @@ -260,7 +260,9 @@ static void update_status(UIState *s) { s->wide_camera = Hardware::TICI() ? Params().getBool("EnableWideCamera") : false; // Update intrinsics matrix after possible wide camera toggle change - ui_resize(s, s->fb_w, s->fb_h); + if (s->vg) { + ui_resize(s, s->fb_w, s->fb_h); + } // Choose vision ipc client if (s->wide_camera) {