I’m not sure that this forum is a proper place for reporting a bug, but I couldn’t find an appropriate place.
After upgraded from 2.1.0 to 2.1.1, we found that CCLabelTTF::setString() with blank string(“”) doesn’t work at all.
I traced sources and figured out that CCImage::initWithString returns false with blank string input.
IninitWithString(), it passes newly allocated ‘unsigned char* data’ to CGBitmapContextCreate() as a buffer.
But the allocated buffer is null because blank string doesn’t have any pixel data (of course, it’s blank), ‘unsigned char* data’ in CCImage.mm line 269 is concluded as null byte.
So CGBitmapContextCreate() returns a null.
Could you please check this out?