You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's unclear what exactly causes it.
This only happens with certain values of y, it seems 0 and below. 2 doesn't trigger the error for example.
Note that the text is partly off-screen regardless.
Just initing the text_area with y=0 doesn't cause an error.
The sleep seems necessary to trigger the error when y is set.
I also briefly tried to reproduce by moving a simple TileGrid around without success.
Exception in thread Thread-1 (_background):
Traceback (most recent call last):
File ".pyenv/versions/3.11.2/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
self.run()
File ".pyenv/versions/3.11.2/lib/python3.11/threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File ".env/lib/python3.11/site-packages/displayio/__init__.py", line 54, in _background
display._background() # pylint: disable=protected-access
^^^^^^^^^^^^^^^^^^^^^
File ".env/lib/python3.11/site-packages/busdisplay/__init__.py", line 332, in _background
self.refresh()
File ".env/lib/python3.11/site-packages/busdisplay/__init__.py", line 299, in refresh
self._refresh_display()
File ".env/lib/python3.11/site-packages/busdisplay/__init__.py", line 308, in _refresh_display
self._refresh_area(area)
File ".env/lib/python3.11/site-packages/busdisplay/__init__.py", line 389, in _refresh_area
self._core.set_region_to_update(subrectangle)
File ".env/lib/python3.11/site-packages/displayio/_displaycore.py", line 340, in set_region_to_update
data += struct.pack(">BB", region_y1, region_y2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
struct.error: ubyte format requires 0 <= number <= 255
The text was updated successfully, but these errors were encountered:
It's unclear what exactly causes it.
This only happens with certain values of y, it seems 0 and below. 2 doesn't trigger the error for example.
Note that the text is partly off-screen regardless.
Just initing the text_area with y=0 doesn't cause an error.
The sleep seems necessary to trigger the error when y is set.
I also briefly tried to reproduce by moving a simple TileGrid around without success.
Here is another repro, updating the text.
The text was updated successfully, but these errors were encountered: