Skip to content

OOM - Terminated due to memory error  #1953

@guidev

Description

@guidev

New Issue Checklist

Issue Info

Info Value
Platform Name ios
Platform Version 10.1.x and lower (tested also on 10.0.x, 9.3.x)
SDWebImage Version 4.0
Integration Method cocoapods
Xcode Version Xcode 8.3.3
Repro rate all the time (100%)
Repro with our demo prj no
Demo project link https://github.com/gorillatech/SDWebImage-OOM-sample

Issue Description and Steps

When using SDWebImagePrefetcher to preload thousands of non-existent images (404 error), the app starts to use a lot of memory.

Eventually the app gets terminated by the OS.

I've attached a demo project that highlights the problem.

It only happens on 10.1.x and lower.

screen shot 2017-07-01 at 00 38 35

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions