Replies: 1 comment 2 replies
-
hi, if you aren't running with unsafe feature the only other unsafe line is zune-image/crates/zune-png/src/utils.rs Line 354 in 2c4cb4e I'm not an expert in embedded environments but is it possible to run gdb on the binary or in any way capture a kernel dump? might help dignose I'm thinking it might be a stack issue as I may have gotten a bit careless with that Is it also okay if you share the image? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using zune-png to decode an image on ESP32 no_std and with async (using embassy). Probably not the most standard setup.
After I use
decode_into
, ordecode_raw
, the function returns but right after the system crash stating it encounterd an illegal instruction, as if the decode method overran code memory. Note that the crash is on another task (but on the same thread/core if that matters).I'm doing it with a small 16x16 8bit png, so it's not lack of memory, I also overran the buffer with data (instead of decode) to test if its the buffer that somehow got mixed with code, but that also doesn't seem to be the issue.
I also disabled the unsafe code in options.
Does decode_into uses some unsafe code underneath that could cause such memory overruns?
Does it maybe need a lot of stack memory and maybe it overran the stack that way?
Any other ideas on how to troubleshoot this?
Beta Was this translation helpful? Give feedback.
All reactions