Error: stderr maxBuffer exceeded

I’m getting the compile error “build didn’t produce binary Error: stderr maxBuffer exceeded”. Google didn’t show any results of other people with a photon having this error. I’m using the local IDE for Windows and a Particle Photon.

I’m pretty sure I know exactly what is causing this error, I’m trying to compile code with a massive 128x128x16 full colour bitmap written as an unsigned char in the code itself (because I don’t have an SD card reader). Here’s just the first two lines of what I’m pretty sure is breaking the compiler:

const unsigned char image1[] = {
	0x8472, 0x8472, 0x8472, 0x8472, 0x8472, 0x8472, 0x8472, 0x8472, 0x8472, 0x8472, 0x8472, 0x8472, 0x8472, 0x8472, 0x8472, 0x8492, 0x8492, 0x8492, 0x8492, 0x8492, 0x8492, 0x8492, 0x8492, 0x8492, 0x8492, 0x8492, 0x8492, 0x8492, 0x8492, 0x8492, 0x8492, 0x8c92, 0x8c92, 0x8c92, 0x8c92, 0x8c92, 0x8c93, 0x8c93, 0x8c93, 0x8c93, 0x8c93, 0x8c92, 0x8c92, 0x8c92, 0x8c93, 0x8c93, 0x8c93, 0x8c93, 0x8c92, 0x8c92, 0x8c92, 0x8c92, 0x8c92, 0x8c92, 0x8c92, 0x8c92, 0x8c92, 0x8492, 0x8c92, 0x8492, 0x8c92, 0x8c93, 0x8c93, 0x8c93, 0x8c93, 0x8c93, 0x8c93, 0x8c93, 0x8c92, 0x8c92, 0x8c92, 0x8c92, 0x8c92, 0x8c92, 0x8c72, 0x8472, 0x8472, 0x8472, 0x8472, 0x8472, 0x8472, 0x8472, 0x8472, 0x8472, 0x8472, 0x8472, 0x8472, 0x8452, 0x8451, 0x7c51, 0x8451, 0x8451, 0x8451, 0x7c51, 0x7c51, 0x7c51, 0x7c31, 0x7c31, 0x7c31, 0x7c31, 0x7c31, 0x7c31, 0x7c31, 0x7c31, 0x7c31, 0x7431, 0x7411, 0x7411, 0x7411, 0x7411, 0x7411, 0x7410, 0x7410, 0x7bef, 0x7bce, 0x7bce, 0x7bce, 0x7bcd, 0x7bcd, 0x7bcd, 0x7bad, 0x7bad, 0x7bad, 0x73ad, 0x73ad, 0x73ad, 0x73ad, 0x73ad,

Again, that’s just the first two lines of the one 128 line section I’m pretty sure has broken it. It definitely broke the colour encoding in the local IDE, it only draws purple for about halfway through the horizontal scroll bar, and then these values turn white.

Did I do a bad thing, or did I encounter a bug?

You have a const unsigned char[] but yet fill it with uint16_t values :confused:
A char can only hold values in the range 0x00 ~ 0xFF

When getting error messages posting the whole error log and the code section around the referenced line number would help seeing what the actual problem is.
To get a proper, copy-pastable error log, you may want to use CLI with this command

particle compile photon <yourProjectDirectory> --saveTo firmware.bin

But having a 32KB array is probably not the best choice anyway :wink:

1 Like