Theme conflicting with wifi functions
Describe the bug: Whenever I connect to WiFi or open an AP, in "1.12.", the theme stops working and the menu icons are blank when I return to the menu.
Steps To Reproduce: Apply custome theme. (Reboot.) Use any WiFi function
Expected behavior: Using WiFi doesn't affect the device theme.
Actual behavior: WiFi functions stop costume theme from working until I reboot Bruce.
Additional context / logs: Only happens in 1.12. Never had the issue in 1.11.1 or previous alphas or betas. I use Cardputer Adv.
It probably is happening due to RAM memory shortage, as this device doesn't have PSRAM to help
what is the extension of your theme images? what is it size (dimentions and kb)?
PNG images use more RAM then BMP and JPG.. I suggest you use .BMP instead
I just pushed a "preload" logic to save the decoded png image into a new file, to avoid decoding every time the image is displayes, so it saves a lot of RAM memory and makes the images render after allocing memory to WIFI or other functionalities.
It will increase the loading time of the Themes at the first time you open it, and when first opening a PNG image for the first time, after that the images/theme might open as usual.
It is available on Beta for testing
PNG images use more RAM then BMP and JPG.. I suggest you use .BMP instead
Thanks for the suggestion. I didn't think it'd be that since I never had the problem with the same device and theme with earlier versions of Bruce. I'll try this in Stable and I'll also try the new beta. My pngs are very small btw. Just 50 * 80 icons. Whole theme is 53kb or something.
Works. Solved!
Released 1.13 with fixes.