Open jbcurran opened 2 months ago
I've taken a brief look at that, and I cannot reproduce it :-(
At a first glance, it looks like it has a problem allocating memory (it cannot find a block, that is big enough). Does your device have PSRAM? Is it enabled?
Thanks for taking a look, and thank you for all the effort towards this component! It's really awesome.
Yes, it has a ESP32-S2-WROVER (4 MByte of Flash and 2 MByte of PSRAM). I don't actually know how to confirm the psram is enabled other than what is displayed during installation:
I took a dive into the sdkconfig_options, but wasn't able to fix the issue.
Do you know if your component needs one of these options?
I switched back to framework: type: arduino and it's working! So, not sure where there error lies in esp-idf, but I'll keep digging.
the component uses PSRAM if available, but does not explicitly require it in code (i.e. it will not be automatically configured).
you can try explicitly adding the psram
component, and configuring it for your chip (speed, octal mode,...).
If configured, once the API connects, there are some log lines that log whether PSRAM is available, and how much has been detected.
The problem
I am attempting to use online_image with my Adafruit Magtag. I have successfully displayed the image once but all attempts now results in an error.
If I use any other type (i.e. GRAYSCALE), I do not get the errors, but this image is not displayed properly.
I included a image component to show that the Magtag is capable of displaying the correct image. I've tried a number of image hosting locations, to check if that's the problem.
Which version of ESPHome has the issue?
2024.8.0-dev20240808
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2024.7.4
What platform are you using?
ESP32-IDF
Board
adafruit_magtag29_esp32s2
Component causing the issue
online_image
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
type: BINARY (Before errors)
type: GRAYSCALE