Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application crash at large scale of scratchCardView #7

Open
Vitaly-Ku opened this issue Sep 9, 2022 · 0 comments
Open

Application crash at large scale of scratchCardView #7

Vitaly-Ku opened this issue Sep 9, 2022 · 0 comments

Comments

@Vitaly-Ku
Copy link

Vitaly-Ku commented Sep 9, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant