Hey guys. I've got a weird bug in my app. The app is LED Flashlight (
LED Flashlight - Brightest Flashlight for iPhone 4 for iPhone 4 on the iTunes App Store)
When you turn the LED light on, it will sometimes crash when I'm setting the image of a UIButton.
Here's the crash report:
Code:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000008
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x3212e86c objc_msgSend + 16
1 libobjc.A.dylib 0x3212fbe6 objc_setProperty
2 UIKit 0x32339a00 -[UIButtonContent setImage:]
3 UIKit 0x323626e4 -[UIButton setImage:forState:]
4 LED Flashlight 0x00002826 -[LED_FlashlightViewController turnon] + 358
5 CoreFoundation 0x303077a6 -[NSObject(NSObject) performSelector:withObject:withObject:]
6 UIKit 0x32383822 -[UIApplication sendAction:to:from:forEvent:]
7 UIKit 0x323837c2 -[UIApplication sendAction:toTarget:fromSender:forEvent:]
8 UIKit 0x32383794 -[UIControl sendAction:to:forEvent:]
9 UIKit 0x323834e6 -[UIControl(Internal) _sendActionsForEvents:withEvent:]
10 UIKit 0x32383b34 -[UIControl touchesEnded:withEvent:]
11 UIKit 0x323824e6 -[UIWindow _sendTouchesForEvent:]
12 UIKit 0x32381e60 -[UIWindow sendEvent:]
13 UIKit 0x3237db54 -[UIApplication sendEvent:]
14 UIKit 0x3237d500 _UIApplicationHandleEvent
15 GraphicsServices 0x31a78140 PurpleEventCallback
16 CoreFoundation 0x30352aa4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__
17 CoreFoundation 0x30354848 __CFRunLoopDoSource1
18 CoreFoundation 0x30355626 __CFRunLoopRun
19 CoreFoundation 0x302fe8e4 CFRunLoopRunSpecific
20 CoreFoundation 0x302fe7ec CFRunLoopRunInMode
21 GraphicsServices 0x31a776e8 GSEventRunModal
22 GraphicsServices 0x31a77794 GSEventRun
23 UIKit 0x323272a0 -[UIApplication _run]
24 UIKit 0x32325e10 UIApplicationMain
25 LED Flashlight 0x000020e4 main + 36
26 LED Flashlight 0x000020b4 start + 32
Does anyone know what's going on? I've only had this happen to me a couple times, but it's coming in on the iTunes connect crash reports.
Any help is greatly appreciated.
Thanks!