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
deleting many pages with many scraps quickly will crash in [JotGLContext presentRenderBuffer:] #950
Comments
@heatherwong can you repro this? |
seems to happen when presenting a render buffer of one context while another is loading stroke/texture data. especially when loading texture during CGContextClearRect() in JotGLTexture.m. i'll keep reproving to double check |
I have seen that before, but not always reproducible. |
just happened in same JotGLTexture file, but at glTexImage2D instead of CGContextClearRect. it's never been easily reproduced for me in the past, but the above AT is doing the trick for me tonight |
I was able to repro. I think it's more consistent to repro when you start each row with page with many scraps and delete them quickly. page with less scrap not as easy to crash app. |
current research suggests its the JotGLTextureBackedFrameBuffer not cleaning up the context properly after use. still working on it... |
got it narrowed down to how the texture backed frame buffer clears its contents when loading state on a background thread. gotta head to bed though, i'll tackle tomorrow (*today) |
still tracking, looks like its how the backing texture frame buffer is used in drawBackingTexture:atP1:... |
BOOM. this bug was a killer. i'm 99.9% sure i've got it fixed. AT:
however, now i'm getting a crash from running out of memory, there's a leak somewhere when deleting all the pages. opened up a new issue for that one: #953 |
verify block by #956 |
verified in RC8 |
Found another issue while working on #939
currently testing on iOS7, not sure about ios8
The text was updated successfully, but these errors were encountered: