From 889e92079611e2ff0d1a18793af081b401646474 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 13 Mar 2023 12:18:54 -0400 Subject: [PATCH] Short-circuit rendering on no 1d-data; avoid m4 layer crash --- piker/ui/_render.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/piker/ui/_render.py b/piker/ui/_render.py index 69bd37c4..fb41b696 100644 --- a/piker/ui/_render.py +++ b/piker/ui/_render.py @@ -192,6 +192,10 @@ class Renderer(msgspec.Struct): ) = fmt_out + if not x_1d.size: + log.warning(f'{array_key} has no `.size`?') + return + # redraw conditions if ( prepend_length > 0