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

CGDataProviderCopyData crash in production #439

Closed
1 task done
alexge opened this issue Mar 10, 2021 · 1 comment
Closed
1 task done

CGDataProviderCopyData crash in production #439

alexge opened this issue Mar 10, 2021 · 1 comment
Assignees

Comments

@alexge
Copy link

alexge commented Mar 10, 2021

What did you do?

We use SPM to add AlamoFireImage as a dependency to download, cache, and show images across numerous collection views in the app. We are using the given af.setImage(withURL....) function on our UIImageViews.

What did you expect to happen?

Images to download and show as expected

What happened instead?

Overall this works great. I've never seen an issue, but I have received 2 crash reports from Apple of the same crash on CGDataProviderCopyData. The first was on an iPhone 8 Plus and the second was on an iPhone SE, both running iOS 14.4.

image

Looking at the stack trace, it seems to come from ImageResponseSerializer which is in the library, so I don't have much more information to go on. Any thoughts you might have to fixing this or ideas for further investigation would be greatly appreciated.

Alamofire Environment

Alamofire version: 4.1
Xcode version: 12.4
Swift version: 5
Platform(s) running AlamofireImage: iOS 12-14
macOS version running Xcode: 10.15.6

@jshier
Copy link
Contributor

jshier commented Apr 3, 2021

This is likely a duplicate of #332, caused by downloading images which are too large to inflate into memory. There's a workaround in that thread.

@jshier jshier closed this as completed Apr 3, 2021
@jshier jshier self-assigned this Apr 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants