Use case
SEED Studio XIAO 7.5” ePaper Display
Display dashboard via puppet
I have tried multiple different buffer sizes both with arduino and esp-idf and per the logs it always allocates 48000.
The image is never more than 7000 bytes the huge buffer is not needed and causes it to fail 80% of the time.
[10:33:16][I][online_image:109]: Updating image http://192.168.0.210:10000/e-ink-1/0?viewport=800x480&eink=2&wait=10000&invert
[10:33:31][D][http_request.arduino:134]: Received response header, name: etag, value:
[10:33:31][D][http_request.arduino:134]: Received response header, name: last-modified, value:
[10:33:31][D][http_request.arduino:140]: Content-Length: 5872
[10:33:31][D][online_image:175]: Starting download
[10:33:31][D][online_image:194]: Allocating PNG decoder
[10:33:31][I][online_image:212]: Downloading image (Size: 5872)
[10:33:31][W][component:407]: online_image took a long time for an operation (14733 ms)
[10:33:31][W][component:408]: Components should block for at most 30 ms
[10:33:31][D][online_image:089]: Allocating new buffer of 48000 bytes
[10:33:31][E][online_image:092]: allocation of 48000 bytes failed. Biggest block in heap: 31732 Bytes
[10:33:31][E][online_image.png:086]: Error decoding image: Incorrect PNG signature
[10:33:31][E][online_image:250]: Error when decoding image.
Would reflashing to esp-idf NVS make any difference?
I dont want to play around and risk bricking stuff unless someone has confidence it could be effective, as all Seed studio docs are are arduino based
I’m running into the same issue. I’m already processing the image through the camera proxy to resize it on the HA side and make it smaller. That yields a JPEG of 16753 bytes. It then tries to allocate a 153600 byte large buffer - which always fails.
I’ve tried setting buffer_size to 4k but it does not change anything.