SDWebImageSwiftUI icon indicating copy to clipboard operation
SDWebImageSwiftUI copied to clipboard

Data races in SDWebImageSwiftUI

Open biovolt opened this issue 4 months ago • 2 comments

Please see the Data races below that exist in SDWebImageSwiftUI The last screenshot is my scheme diagnostics that shows how to get these data races to show.

SDWebImageSwiftUI is used in a SwiftUI List

And called like this

    @ViewBuilder
    private func cachedAsyncImageContent(url: URL?) -> some View {
        WebImage(url: url) { image in
            image
                .resizable()
                .aspectRatio(contentMode: configuration.contentMode)
                .transition(.fade(duration: 0.3))
        } placeholder: {
                ProgressView()
                    .progressViewStyle(CircularProgressViewStyle())
                    .scaleEffect(configuration.loadingIndicatorScale)
        }
        .onFailure {  }
    }

Data race in closure #1 (Swift.Int, Swift.Int, Swift.Optional<Foundation.URL>) -> () in SDWebImageSwiftUI.ImageManager.load(url: Swift.Optional<Foundation.URL>, options: __C.SDWebImageOptions, context: Swift.Optional<Swift.Dictionary<__C.SDWebImageContextOption, Any>>) -> () at 0x13036d6a0

Image ` Data race in SDWebImageSwiftUI.WebImage.setupManager() -> () at 0x13038c3c0` Image

Scheme

Image

biovolt avatar Sep 02 '25 08:09 biovolt

I've seen a crash on that exact part as well. So worth taking a look.

Image

chrisngabp avatar Dec 03 '25 19:12 chrisngabp

Were seeing similar issues on iOS 26.1.0

Image

mikemike396 avatar Dec 04 '25 04:12 mikemike396