android - E/libEGL: cache file failed CRC check -
in application there mainactivity contains many buttons clicking on activity created image. click on image simple animation zoom. , there problem: 2 images of @ frequent click crash activity (not app) error
e/libegl: cache file failed crc check
i compared images, approximately same size , resolution. jpg format. error raise two. error not happen on physical devices (i tested three) on xiaomi redmi note 2
i googled error , found this:
// check file magic , crc 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; }
what error means , how fight it?
Comments
Post a Comment