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
In further testing it seems that the issue may be with specifically the string "Bitmap" in the error message. If I change the message to use a lowercase "b" in the first word then it works and raises the ValueError with message.
If I change the string to "Bitmaq size and bits per value must match" it also works and raises the ValueError with message.
If I run the exact same code on a Feather TFT S3 Reverse with stock 9.2.7 it works and prints the full ValueError and message including the string "Bitmap" which seems to cause it to break on the PyPortal.
The text was updated successfully, but these errors were encountered:
FoamyGuy
changed the title
Blank RuntimeError instead of ValueError with message raised
Blank RuntimeError raised instead of ValueError with message
Apr 16, 2025
I've found that the ValueError that the core attempts to raise from here: https://github.com/adafruit/circuitpython/blob/main/shared-bindings/bitmaptools/__init__.c#L369
ends up instead raising a blank RuntimeError when it executes on a PyPortal (tested on 9.2.7, 10.0.0-alpha.2, and build from main)
I have this reproducer code that causes the problem that should raise the ValueError:
In further testing it seems that the issue may be with specifically the string "Bitmap" in the error message. If I change the message to use a lowercase "b" in the first word then it works and raises the ValueError with message.
If I change the string to
"Bitmaq size and bits per value must match"
it also works and raises the ValueError with message.If I run the exact same code on a Feather TFT S3 Reverse with stock 9.2.7 it works and prints the full ValueError and message including the string "Bitmap" which seems to cause it to break on the PyPortal.
The text was updated successfully, but these errors were encountered: