Skip to content

Application crash at large scale of scratchCardView #7

@Vitaly-Ku

Description

@Vitaly-Ku

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions