M13ProgressSuite
M13ProgressSuite copied to clipboard
M13ProgressViewImage crash
Hi there,
I'm using this class to indicate download progress. Sometimes I get a crash when is rendering the current progress in createImageForCurrentProgress
method. I'm instantiating it with the following code:
self.progressImage = [[M13ProgressViewImage alloc] initWithFrame:CGRectMake(10, 10, 45, 45)];
self.progressImage.progressImage = [[SDImageCache sharedImageCache] imageFromDiskCacheForKey:self.stickerURL];
self.progressImage.progressDirection = M13ProgressViewImageProgressDirectionBottomToTop;
self.progressImage.drawGreyscaleBackground = NO;
Could you post the stack for the crash. That will give me a better idea of what is going on.
This is the stack crash,
Thread : Crashed: com.apple.main-thread
0 Ch BETA 0x0053ee1c -[M13ProgressViewImage createImageForCurrentProgress] (M13ProgressViewImage.m:244)
1 Ch BETA 0x0053ec19 -[M13ProgressViewImage createImageForCurrentProgress] (M13ProgressViewImage.m:221)
2 Ch BETA 0x0053e8d9 -[M13ProgressViewImage drawRect:] (M13ProgressViewImage.m:184)
3 UIKit 0x3123cda5 -[UIView(CALayerDelegate) drawLayer:inContext:] + 372
4 QuartzCore 0x30e6a2c1 -[CALayer drawInContext:] + 100
5 QuartzCore 0x30e53e3f CABackingStoreUpdate_ + 1854
6 QuartzCore 0x30f2ed6d ___ZN2CA5Layer8display_Ev_block_invoke + 52
7 QuartzCore 0x30e536f3 x_blame_allocations + 82
8 QuartzCore 0x30e5339b CA::Layer::display_() + 1106
9 QuartzCore 0x30e3703d CA::Layer::display_if_needed(CA::Transaction*) + 208
10 QuartzCore 0x30e36cd5 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 24
11 QuartzCore 0x30e366df CA::Context::commit_transaction(CA::Transaction*) + 230
12 QuartzCore 0x30e364ef CA::Transaction::commit() + 314
13 QuartzCore 0x30e3021d CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 56
14 CoreFoundation 0x2e96d2a5 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 20
15 CoreFoundation 0x2e96ac49 __CFRunLoopDoObservers + 284
16 CoreFoundation 0x2e96af8b __CFRunLoopRun + 730
17 CoreFoundation 0x2e8d5f0f CFRunLoopRunSpecific + 522
18 CoreFoundation 0x2e8d5cf3 CFRunLoopRunInMode + 106
19 GraphicsServices 0x337f7663 GSEventRunModal + 138
20 UIKit 0x3122116d UIApplicationMain + 1136
21 ChopChat BETA 0x00139bf1 main (main.m:16)