Skip to content

EXC_BAD_ACCESS Crash in ImagePrefetcher (Kingfisher 8.5.0 on iOS 18.5) #2422

@hijamoya

Description

@hijamoya

Description:

We encountered a crash in Kingfisher while using ImagePrefetcher. The crash appears to happen in the ImageCache.imageCachedType(forKey:processorIdentifier:forcedExtension:) method, with an EXC_BAD_ACCESS indicating an attempt to access a released object.

This crash occurred on a production device running iOS 18.5.

Crash Details:
• Device: iPhone17,1
• iOS Version: 18.5
• Exception Type: EXC_BAD_ACCESS
• Exception Subtype: KERN_INVALID_ADDRESS

0  libobjc.A.dylib                _objc_release_x0
1  shopping                      ImageCache.imageCachedType(forKey:processorIdentifier:forcedExtension:) (<compiler-generated>)
2  shopping                      ImagePrefetcher.startPrefetching(_:) (ImagePrefetcher.swift:310:39)
3  shopping                      closure #1 in ImagePrefetcher.reportCompletionOrStartNext() (ImagePrefetcher.swift:357:40)
4  shopping                      thunk for @escaping @callee_guaranteed () -> () (<compiler-generated>)
5  libdispatch.dylib             __dispatch_call_block_and_release
6  libdispatch.dylib             __dispatch_client_callout
7  libdispatch.dylib             __dispatch_lane_serial_drain
8  libdispatch.dylib             __dispatch_lane_invoke
9  libdispatch.dylib             __dispatch_root_queue_drain_deferred_wlh
10 libdispatch.dylib            __dispatch_workloop_worker_thread
11 libsystem_pthread.dylib      __pthread_wqthread

Please let me know if any additional information is needed.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions