GIF image newly broken


#1

Here is a GIF image.

I’m attaching the BinaryBuilder version below for convenience.

Juce’s rendering of this image seems to have broken since I updated to the lastest tip yesterday, from a mid-May build. To reproduce, just add the below to the JuceDemo project and replace the rgbImage in RenderingTestCanvas with this GIF.

The way the broken image renders is, disconcertingly, different from run to run. Sometimes it looks like the correct image but with the wrong rowbytes (skewed).

This issue appears on my Mac which is running MacOS 10.6.7. On Windows 7 the image looks fine.

[code]
namespace AaltoBinaryData
{
extern const char* masthead_gif;
const int masthead_gifSize = 1798;
}

static const unsigned char temp6[] = {71,73,70,56,57,97,0,1,32,0,230,0,0,201,177,190,255,255,255,56,35,152,245,255,255,245,217,201,217,165,172,56,90,200,255,255,247,252,254,255,
255,248,247,56,35,181,108,159,227,240,255,255,111,35,152,56,35,167,223,251,255,56,107,203,163,213,246,231,255,255,255,247,227,139,189,238,135,35,152,173,
106,152,226,225,236,96,35,153,209,243,255,178,223,251,120,113,173,82,35,152,238,244,252,246,222,205,169,217,250,56,75,192,250,223,209,255,240,222,108,165,
228,188,127,154,255,255,243,255,237,218,235,234,242,155,75,152,203,235,252,189,232,254,244,213,197,217,170,175,96,159,227,56,75,199,163,90,152,56,125,211,
255,248,243,155,203,242,220,178,180,114,156,211,240,207,193,255,252,234,135,75,152,135,130,180,233,196,187,255,247,231,255,255,238,197,138,158,229,186,184,255,
254,255,229,245,255,231,217,204,119,170,232,90,126,203,56,75,168,240,209,197,211,159,169,125,90,155,252,232,213,150,116,160,157,209,244,129,169,222,229,225,
236,93,75,161,69,138,218,215,213,227,217,165,163,151,199,238,108,170,227,248,233,225,217,199,190,56,99,181,82,90,172,82,106,187,127,123,173,188,165,185,
176,146,170,82,151,225,201,196,213,232,238,250,193,220,246,208,224,238,133,152,209,159,152,195,198,205,221,96,152,225,208,152,166,96,147,222,147,165,218,213,
187,193,185,193,227,127,177,234,56,113,196,206,165,180,172,209,242,224,237,251,246,240,242,248,229,218,160,179,221,255,248,234,200,187,204,108,170,231,246,246,
252,238,229,222,233,217,213,157,152,181,221,213,213,135,152,190,150,131,190,168,199,238,168,138,193,163,209,233,108,159,219,241,222,216,135,113,178,33,249,4,
0,0,0,0,0,44,0,0,0,0,0,1,32,0,0,7,255,128,1,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,
151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,152,7,75,23,29,141,186,
188,137,9,75,92,134,191,23,199,200,200,189,132,49,91,96,207,103,196,184,211,212,148,57,2,2,77,141,215,217,137,43,2,46,12,133,223,216,229,230,
2,90,132,61,231,216,74,8,213,240,241,138,36,216,10,15,140,244,2,246,136,4,2,16,3,133,220,252,193,65,16,131,128,33,4,113,108,208,51,168,
159,0,7,111,156,196,185,129,141,130,188,139,24,117,52,40,167,97,145,70,142,252,4,24,0,152,136,133,128,17,135,74,160,16,41,97,208,1,122,251,
48,202,164,70,68,0,21,36,2,22,44,170,121,51,103,200,145,138,10,248,52,116,4,219,135,66,38,12,70,152,201,244,22,15,1,65,174,129,16,151,
232,105,84,1,83,15,245,3,154,72,168,78,67,53,176,182,36,116,192,194,201,166,104,101,217,168,32,64,131,9,14,2,255,84,36,90,219,246,109,92,
173,34,73,34,242,122,168,72,94,67,99,4,144,73,75,216,85,63,123,42,161,38,58,252,32,113,16,188,92,247,14,45,36,84,204,33,161,6,168,22,
222,124,42,176,182,0,126,51,35,242,44,40,180,230,134,127,187,78,38,196,215,144,208,127,156,99,147,218,193,86,134,32,15,15,83,28,162,45,192,118,
0,220,14,116,23,218,170,247,242,234,65,173,41,167,150,205,220,83,136,135,25,4,209,181,104,232,185,131,232,1,166,27,34,30,244,184,160,228,172,151,
115,130,179,71,56,33,15,101,138,199,115,147,199,60,225,215,122,159,194,86,62,63,128,124,245,220,85,127,85,190,63,124,100,78,19,52,32,218,32,180,
133,35,211,55,75,21,150,24,117,130,212,116,93,33,11,18,226,32,118,168,253,231,154,119,1,128,135,156,120,134,168,49,196,65,111,0,52,131,0,107,
148,6,194,61,133,4,168,216,32,161,21,87,131,2,99,221,198,4,19,2,84,81,134,102,30,204,200,196,23,63,16,226,135,17,216,8,193,198,32,68,
88,129,98,0,44,8,225,34,255,140,139,9,144,32,88,76,14,226,1,6,112,241,56,136,25,112,13,81,226,42,71,192,37,195,9,96,158,0,4,54,
190,13,210,101,111,97,138,73,230,112,28,242,103,28,74,23,90,72,153,2,97,100,209,86,0,59,160,0,227,115,12,18,162,226,157,1,132,0,23,4,
154,149,37,64,18,132,244,67,67,157,44,9,162,40,22,254,144,244,77,26,94,152,161,15,138,91,161,248,132,129,130,24,138,104,72,79,146,101,214,167,
142,10,160,4,0,103,5,80,20,13,78,32,17,42,42,35,178,83,14,12,239,12,18,171,172,2,208,154,104,155,225,245,183,161,16,181,134,87,223,33,
155,34,96,2,160,138,90,48,96,138,13,224,193,1,140,37,188,32,0,7,245,61,23,41,106,71,5,176,206,167,253,28,85,192,131,37,84,64,168,32,
223,160,81,106,163,155,234,101,237,176,187,190,42,200,186,122,117,123,0,10,114,144,43,64,159,170,24,90,197,21,27,244,219,47,144,49,5,160,47,191,
254,110,0,240,145,1,228,39,153,175,223,181,249,20,195,202,97,227,192,145,249,200,117,200,255,4,24,124,96,82,31,35,242,65,66,100,36,192,48,197,
93,165,38,24,96,11,165,202,32,197,13,6,6,8,103,0,39,151,106,7,75,5,184,160,87,200,35,91,188,157,147,135,224,76,114,194,230,36,8,7,
91,86,116,193,74,82,63,15,34,2,92,79,34,173,179,210,76,239,42,103,175,135,124,19,112,167,210,154,27,20,157,88,112,144,142,32,73,65,44,8,
198,17,68,139,13,12,101,113,37,2,6,35,140,137,114,201,99,55,240,182,67,185,197,93,111,220,115,79,60,98,26,89,168,205,182,219,160,26,178,118,
219,2,188,13,52,13,113,24,17,83,12,144,10,0,197,42,235,128,16,163,75,210,14,38,72,228,147,99,45,216,174,236,186,41,184,65,248,58,212,145,
34,197,6,160,44,85,1,102,123,49,6,75,37,117,93,218,36,9,85,78,76,221,10,114,77,130,253,64,65,207,232,26,233,26,232,189,142,62,24,235,
124,178,215,131,48,182,23,206,142,233,157,61,60,152,192,59,58,84,0,131,122,164,24,106,217,33,38,49,105,61,34,217,199,184,21,3,8,132,31,190,
255,231,133,188,244,144,209,130,172,140,213,105,151,41,224,5,170,134,7,248,56,34,242,219,110,17,236,217,85,16,69,0,8,244,67,93,63,74,184,0,
170,198,5,180,15,236,224,6,193,105,24,13,126,80,135,6,68,137,0,15,66,210,181,214,178,191,254,1,111,103,52,216,194,22,206,0,16,10,242,207,
127,165,82,194,29,110,192,164,21,128,192,11,116,168,192,215,80,33,130,141,168,174,16,214,234,72,11,5,240,66,66,196,16,53,178,10,149,134,148,182,
17,1,88,129,95,32,89,132,73,176,97,37,65,104,68,108,1,136,222,203,58,165,44,128,212,32,130,7,120,65,86,112,83,142,27,73,137,103,38,104,
128,228,4,166,134,114,8,161,71,193,163,16,11,128,242,68,236,68,49,43,133,160,34,54,96,83,70,172,77,209,139,194,17,1,69,14,226,30,83,224,
230,106,132,136,208,29,143,55,136,8,157,139,29,47,28,209,18,11,33,5,156,152,131,10,232,147,77,2,78,176,12,92,180,129,11,193,106,142,38,218,
224,132,11,56,97,72,146,204,164,38,55,201,201,78,122,242,99,147,174,24,31,40,71,9,11,4,248,64,124,168,52,229,0,86,57,0,31,176,242,148,
166,68,229,0,80,41,136,57,8,130,149,184,100,37,33,26,217,129,94,250,114,55,141,20,68,12,16,17,131,98,22,147,148,136,72,192,1,14,32,176,
102,50,243,153,205,12,128,50,167,121,128,4,88,179,154,213,188,166,53,183,201,205,78,41,34,1,210,4,167,56,173,41,8,113,6,2,0,59,0,0};
const char* AaltoBinaryData::masthead_gif = (const char*) temp6;[/code]


#2

Thanks! Just a minor mistake, will fix it today…


#3

Fixed, thanks.