In my application, MainActivity contains many buttons that are superimposed on another action with the image. Click on the image, simple animated scaling. And there is a problem: two images of all with frequent click-fail actions (not the application) with an error
E/libEGL: cache file failed CRC check
I compared all the images, they are all about the same size and resolution. All of them are in jpg format. But a mistake raises only two. Also the error does not occur on all physical devices (I tested three), but only on xiaomi redmi note 2
I searched for this error and found this:
size_t cacheSize = fileSize - headerSize;
if (memcmp(buf, cacheFileMagic, 4) != 0) {
ALOGE("cache file has bad mojo");
close(fd);
return;
}
uint32_t* crc = reinterpret_cast<uint32_t*>(buf + 4);
if (crc32c(buf + headerSize, cacheSize) != *crc) {
ALOGE("cache file failed CRC check");
close(fd);
return;
}
From openGL lib EGL
What does this error mean and how to deal with it?
source
share