GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Crash in SDImageFramePool (lookUpImpOrForward) on background queue - v5.20.0 · Issue #3861 · SDWebImage/SDWebImage Open DescriptionI am seeing a crash in Crashlytics affecting my iOS project using SDWebImage v5.20.0 (via SPM). The crash occurs on a background thread (NSOperationQueue) related to SDImageFramePool / SDAnimatedImagePlayer. The crash type is EXC_BAD_ACCESS / lookUpImpOrForward, indicating a message was sent to a deallocated instance (Zombie object) during an autorelease pool drain. Environment: SDWebImage Version: 5.20.0 Installation Method: Swift Package Manager (SPM) iOS Version: [e.g. iOS 16, iOS 17 - fill this in if you know mainly which users are affected] Stack Trace: The stack trace indicates a crash occurring inside an NSBlockOperation on a background queue. Notably, Frame 4 is NSINDEXSET_IS_CALLING_OUT_TO_A_BOOL_BLOCK, which implies the crash happens inside an iteration of an NSIndexSet. Code Analysis & Investigation: I reviewed SDImageFramePool.m in v5.20.0. The prefetchFrameAtIndex: method creates an NSBlockOperation: Objective-C However, SDImageFramePool.m uses NSMutableDictionary for its buffer, not NSIndexSet. The presence of NSINDEXSET_IS_CALLING_OUT_TO_A_BOOL_BLOCK in the stack trace strongly suggests that the crash is actually occurring inside the provider ([animatedProvider animatedImageFrameAtIndex:index]) or within SDAnimatedImage internals which likely uses NSIndexSet to manage frame cache/unloading. It appears to be a race condition where the animatedProvider or an object inside its internal array is deallocated while the background prefetch operation is still running. Possible Fix: Is it possible that animatedProvider is not being captured strongly enough during the asynchronous operation execution, or that SDAnimatedImage's internal frame cache is not thread-safe during high-load prefetching? Reacted by coderabbitai Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |