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

cgImageSource infinite recursive loop #8

Open
andwaredev-zz opened this issue May 4, 2016 · 0 comments
Open

cgImageSource infinite recursive loop #8

andwaredev-zz opened this issue May 4, 2016 · 0 comments

Comments

@andwaredev-zz
Copy link

Hi and thank you so much for the amazing work you've done developing this project.

I've encountered a bug that I'm not sure how to resolve.

I'm hitting the line let imgCount = CGImageSourceGetCount(cgImageSource)
inside private class func isCGImageSourceContainAnimatedGIF(cgImageSource: CGImageSource!) -> Bool
and I'm encountering an error that crashes my app.

warning: could not load any Objective-C class information. This will significantly reduce the quality of type information available.

By using print(cgImageSource) I can see an infinite list of different memory locations printed out until the crash occurs. Short example:
cgImageSource : <CGImageSource 0x145bac450 [0x1a0493150]> cgImageSource : <CGImageSource 0x145cd1630 [0x1a0493150]> cgImageSource : <CGImageSource 0x145bb4c80 [0x1a0493150]> cgImageSource : <CGImageSource 0x145ce0440 [0x1a0493150]> cgImageSource : <CGImageSource 0x145bb2150 [0x1a0493150]> cgImageSource : <CGImageSource 0x145ce0610 [0x1a0493150]>

Any guidance would be greatly appreciated.

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