-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Displaying External BMPs on the RGB Matrix is resulting in Safe Mode #3184
Comments
I noticed using a small palette bitmap doesn't seem to result in this issue, so maybe it's a memory thing. |
This more specifically happens when bit_depth is 3 or higher. |
Can you send me a complete example? Is it possible this affects only airlift? Here's the example I cooked up based on your description. However, I didn't get any crashes (tested with 5.3.1, 6.0.0-alpha.1, and latest on metro m4 non-airlift):
note also that I didn't hook up a display. Here's a zip of the bmp I used: |
Try this and wait like 30 seconds:
Here's the bitmap I used This could be related to lighting up the fullscreen or something. |
It could be related to the |
When _PM_begin fails, it leaves the object in a partially-uninitialized state. To recover any allocated storage, we need to call _PM_free; but if the allocation of core->screenData failed, then other internal pointers such as core->oe.setReg are not set, and the actions in _PM_stop will cause a HardFault. This is a partial fix for adafruit/circuitpython#3184.
I'm using a Metro M4 WiFi and the RGB Matrix Shield w/ bodge wire. I wrote a simple script that displays a bitmap using the usual displayio method and after a few seconds, it goes into safe mode. I have tried on both latest stable and alpha with the same result.
The text was updated successfully, but these errors were encountered: