lightdesign / LDProgressView

[Stale] A flat or gradient progress view with a simple color setter and customizable options written in pure Core Graphics
MIT License
368 stars 55 forks source link

EXC_BAD_ACCESS KERN_INVALID_ADDRESS #21

Closed ZuzooVn closed 9 years ago

ZuzooVn commented 9 years ago

I have this problems with only iOS 8.2

if ([self.showStroke boolValue]) { // CRASH HERE
    CGContextSetStrokeColorWithColor(context, [[self.color darkerColor] darkerColor].CGColor);
    [roundedRect stroke];
}
rcdilorenzo commented 9 years ago

Could you provide a specific scenario where this occurs?

nicolasgoutaland commented 9 years ago

Hi, problem is in _darkerColor_ method. I think you are using an old release of LDProgressView. This problem occurs only on arm64 devices, and was fixed in version 1.2.1 #11 . Regards