exc-bad-access

EXC_BAD_ACCESS with IBACTION

感情迁移 提交于 2019-11-30 12:58:56
问题 I have read a lot about this issue but mine still seems to be different somehow. So from what I understood, EXC_BAD_ACCESS occurs with memory management problems. The thing is, mine does not seem (! :)) to be there. The thing is, I simple added a button in IB, rounded rect, no image. The I hooked it up with an IBACTION I defined in my class. This method does nothing (!) by the way. Anyway, as soon as I click the button, the App crashes, with "EXC_BAD_ACCESS". I am surely not overreleasing

iOS bad access impossible to find

懵懂的女人 提交于 2019-11-30 09:25:17
I'm stuck with a stupid bad access since so many hours. I'm totally unable to find it. I hope some of you will be able to show me the answer into the light. In the code bellow it appear on the line : NSString * stringCallVisit = [[NSString alloc]initWithFormat:..... I can't understand, all the objects are local of the method except the parameter theIntervention. if i comment the method NSString * stringCallVisit = [[NSString alloc]initWithFormat:... the bad access don't appear even if i do id obj = callVisit.injectionby; instead of; So i suppose that the bad access is not from the callVisit

NSMutableAttributedString initWithData: causing EXC_BAD_ACCESS on rotation

我的未来我决定 提交于 2019-11-30 08:40:59
I display different types of contents in a tableview and calculate the height of each cell using different custom methods, in heightForRowAtIndexPath . One of these custom methods implies converting some html in an NSMutableAttributedString , and then calculating the height of this NSMutableAttributedString . For html conversion I use the new initWithData: method. All works perfectly except when I rotate the screen => I've got an exc_bad_access every time. Using Instruments / Zombies, I've been able lo locate the error, and in fact it's this initWithData: . (When I remove this method and

exc_bad_access in Facebook sdk login Xcode 8 beta

眉间皱痕 提交于 2019-11-30 05:15:51
recently I started adding my application IOS 10 features while I encountered a weird bug: When authenticating with facebook SDK via browser as soon as I click the confirmation button in facebook itself at the embeded browser, the app crashes. Unfortunately this bug is not informative, the console doesn't tell me anything about it and there is not call stack to see where this exception was occurred. Two points for demonstrating this bug cause: 1. This bug doesn't occur if the login is via System account but only when it in browser as you can see in the next photo: (As soon as I tap OK the

Crash in actionForLayer:forKey:

99封情书 提交于 2019-11-30 02:51:48
问题 I have a cryptic EXC_BAD_ACCESS when changing some UILabel's frame. The crash is random, usually I have to repeat the conditions for several minutes. Enabling NSZombies, as well as other memory debug flags (NSDebugEnabled, MallocStackLogging), doesn't help, the crash stills stays as opaque : just a BAD_ACCESS with no message in the console. The target seems correct and alive, so it doesn't look like a deallocated memory problem. To get some more info, I subclassed UILabel and rewrote the

UIScrollView EXC_BAD_ACCESS crash in iOS SDK

半腔热情 提交于 2019-11-29 22:12:14
I have an iPhone SDK application that has several views that appear and disappear as the user creates content. After using the application on a device for a while, I get the following crash: Program received signal: “EXC_BAD_ACCESS”. (gdb) backtrace #0 0x33369ebc in objc_msgSend () #1 0x320e5248 in -[UIScrollView(UIScrollViewInternal) _scrollViewAnimationEnded] () #2 0x338b4a14 in -[NSObject performSelector:withObject:] () #3 0x320e5098 in -[UIAnimator stopAnimation:] () #4 0x320e4b7c in -[UIAnimator(Static) _advance:] () #5 0x320e4a34 in LCDHeartbeatCallback () #6 0x34350e60 in

How to replace current viewController with a new viewController

你离开我真会死。 提交于 2019-11-29 21:11:27
问题 I'm trying to replace my current viewController with a new one. I've been able to do this before but I'm having some issues with BAD_ACCESS. This is the code that will run when I want to replace the current view with a new one. (The function will be called using a local property "self.some_data" (nonatomic, retain)) -(void) labelSelected:(SomeDataObject*) some_data{ SomeViewController *viewController = (SomeViewController*)[[ClassManager sharedInstance] viewControllerForClassIdentifier:@"com

iOS bad access impossible to find

泪湿孤枕 提交于 2019-11-29 15:05:23
问题 I'm stuck with a stupid bad access since so many hours. I'm totally unable to find it. I hope some of you will be able to show me the answer into the light. In the code bellow it appear on the line : NSString * stringCallVisit = [[NSString alloc]initWithFormat:..... I can't understand, all the objects are local of the method except the parameter theIntervention. if i comment the method NSString * stringCallVisit = [[NSString alloc]initWithFormat:... the bad access don't appear even if i do id

NSMutableAttributedString initWithData: causing EXC_BAD_ACCESS on rotation

本秂侑毒 提交于 2019-11-29 12:12:40
问题 I display different types of contents in a tableview and calculate the height of each cell using different custom methods, in heightForRowAtIndexPath . One of these custom methods implies converting some html in an NSMutableAttributedString , and then calculating the height of this NSMutableAttributedString . For html conversion I use the new initWithData: method. All works perfectly except when I rotate the screen => I've got an exc_bad_access every time. Using Instruments / Zombies, I've

exc_bad_access in Facebook sdk login Xcode 8 beta

瘦欲@ 提交于 2019-11-29 02:50:01
问题 recently I started adding my application IOS 10 features while I encountered a weird bug: When authenticating with facebook SDK via browser as soon as I click the confirmation button in facebook itself at the embeded browser, the app crashes. Unfortunately this bug is not informative, the console doesn't tell me anything about it and there is not call stack to see where this exception was occurred. Two points for demonstrating this bug cause: 1. This bug doesn't occur if the login is via