Application crash at large scale of scratchCardView
Vitaly-Ku opened this issue · comments
Application crash at large scale of scratchCardView on line - pixelData[y * width + x] == 0
(Thread 1: EXC_BAD_ACCESS (code=1, address=0x7fab776e0000)). The number of loop iterations in this function is about 200498 (it's too much). Yes, I understand that GLScratchCard was not intended for such purposes (the size of the erasable image is too large). The problem was observed only in some cases on the iPad, where the image size was calculated from the size of the device. The solution helped - to reduce the size of the image.
Thank you very much for your library - it's very cool and I liked it!