Skip to main content

All Questions

0 votes
1 answer
129 views

Objective-C EXC-BAD-ACCESS - resolving without ARC?

For reference I'm using Xcode 11.3 I've got an issue with an object that has been released and it's causing EXC BAD ACCESS. The good news is that I know exactly what the object is. What I don't know ...
David Wilson's user avatar
1 vote
1 answer
847 views

Swift <uninitialized> let property

I need some debugging help, because an error I run into is really hard. This is a game with complex animations. However the question isn't about SpriteKit. I want animations to follow each other in ...
kelin's user avatar
  • 11.9k
0 votes
0 answers
418 views

EXC_BAD_ACCESS on alloc

If this issue has been posted before, I can't find it. I'm attempting to allocate and initialize an instance of NSString in the initialization method of a subclass of NSOperation (for use with ...
SumDood's user avatar
  • 304
-1 votes
1 answer
198 views

Delegate assignment causes EXC_BAD_ACCESS

I am trying to create a delegate for an NSTextField in my view controller, but the program crashes with EXC_BAD_ACCESS. Why does this happen? I read that I am calling a non-existent object, but I don´...
Robby's user avatar
  • 23
-1 votes
2 answers
592 views

In iOS ARC my recursive function crashes application with EXC_BAD_ACCESS

Following code of mine generates crash in ARC mode: MxTextField.m +enableAllTextFields:(BOOL)enable InViews:(__weak UIView*) view { @try { NSArray* textFields = view.subViews; ...
sam18's user avatar
  • 641
0 votes
0 answers
137 views

stringByStandardizingPath EXC_BAD_ACCESS?

I am using Cocos2D 3.1 and I am also using SpriteBuilder 1.1 to make a game for the iPhone. In one of my ccbi's however, every time I try to load it and present it on screen there is a crash in ...
SimplyKiwi's user avatar
  • 12.4k
2 votes
0 answers
2k views

EXC_BAD_ACCESS KERN_INVALID_ADDRESS for iOS App - Not All Users

We have a small but significant percentage of our iPad app users crashing from an error that we can't replicate on either our simulators or any of our devices here. Not sure if this makes a difference,...
CalBru's user avatar
  • 21
0 votes
1 answer
124 views

EXC_BAD_ACCESS error in Objective-C app - stack overflow?

In my Objective-C app I am receiving a EXC_BAD_ACCESS error (code = 2) in building a wordsearch app, and am using ARC in my project - but I cannot resolve the issue - could this be due to a stack ...
user1309044's user avatar
0 votes
0 answers
46 views

What is restoreLevelAfterRunningModal and why is it being sent to my destroyed NSWindow?

I have a modal window, which was causing problems when destroyed. I learned how to use Zombies and I got this error message:-[NSWindow _restoreLevelAfterRunningModal]: message sent to deallocated ...
PopKernel's user avatar
  • 4,240
2 votes
1 answer
201 views

Why is a UINavigationController failing to take ownership of a block callback parameter using ARC

Given the following code example (iOS 7, Xcode 5): /** * SampleProvider Class */ typedef void(^RequestCallback)(UIViewController *result); static NSString * const cControllerRequestNotification = @"...
Mike Fay's user avatar
  • 886
1 vote
1 answer
754 views

EXC_BAD_ACCESS using ARC when poping back to view controller

to begin with, here is some code: - (void)viewDidLoad { [super viewDidLoad]; FirstViewController *first = [[FirstViewController alloc] init]; SecondViewController *second = [[...
Jacob's user avatar
  • 1,310
1 vote
2 answers
179 views

NSZombie that won't die

I am desperately reaching out for help on something that is PLAGUING me... This is all under ARC, BTW. I have a Profile screen (UserProfileVC) and then you click a button on that screen it presents ...
Raconteur's user avatar
  • 1,391
3 votes
4 answers
2k views

UITableView reloadData EXC_BAD_ACESS code=2

I have this code for loading the UITableView: - (int)numberOfSectionsInTableView:(UITableView *)tableView { if (tableView == self.peopleTableView) return [self.people count]; else ...
carloabelli's user avatar
  • 4,349
0 votes
1 answer
130 views

EXC_BAD_ACCESS with ARC using KZColorPicker

I'm trying to incorporate a colorpicker into my app. I've copied over the KZColorPicker library into my project from https://github.com/alexrestrepo/KZColorPicker The problem is that the library ...
sscode's user avatar
  • 137
-3 votes
1 answer
482 views

EXC_BAD_ACCESS with ARC-based app, no ideas

I'm stuck on this bad memory access error. I've tried to look for "zombies" as I read in other posts, but with no luck! I'm using automatic reference counting. The only thing that makes me suspect is ...
Benz's user avatar
  • 463

15 30 50 per page