Questions tagged [nszombies]

NSZombies is an Apple OS-specific (OSX and iOS) reference to the zombie process. Similar to other zombie processes, when enabled, NSZombies represents an object that has completed execution and has been released, but is later accessed again, usually causing an EXC_BAD_ACCESS error.

NSZombies is an Apple OS-specific (OSX and iOS) reference to the zombie process. Similar to other zombie processes, when enabled, NSZombies represents an object that has completed execution and has been released, but is later accessed again, usually causing an EXC_BAD_ACCESS error.

21 questions
5
votes
2 answers

Objective-c example code that intentionally messages a deallocated object

I'm new to objective-c and xcode and an app I'm currently writing is receiving the infamous EXC_BAD_ACCESS error. Almost everybody recommends starting to solve the problem using NSZombies. I think I have NSZombies working but xcode isn't giving me…
Alex Crist
  • 1,059
  • 2
  • 12
  • 22
4
votes
1 answer

How can I set NSZombiesEnabled in XCode4?

How can I enable NSZombiesEnabled in XCode4? I used to use this argument to debug EXC_BAD_ACCESS in XCode3. Not sure where to do it in XCode4.
Sheehan Alam
  • 60,111
  • 124
  • 355
  • 556
4
votes
2 answers

UIPickerView crashes when scrolling 2 components together

Actually, I asked a same question before, but I have not found a way to fix it yet, so here I comes again. My situation: I have a UIPickerView with 2 related components, and the number and content of the rows in the 2nd or right components changes…
Wang Liang
  • 941
  • 2
  • 15
  • 34
3
votes
1 answer

Do system object delegates in ARC need to be set to nil?

An app crashes sometimes with error objc_object::release(). The Apple Developer Technical Support mentioned this: Remember that you should always do something like _tableView.delegate = nil; in your -dealloc methods, even if you are using ARC.…
Manuel
  • 14,274
  • 6
  • 57
  • 130
3
votes
0 answers

Allocations tracking library was not loaded in time - doesn't work on ios 7

I'm trying to run zombies instrument with an ios 7.1 simulator but I receive the error "Allocation tracking library was not loaded in time". When I try to run zombie with an ios 8.3 simulator it works. I'm working with xcode 6.3.1, and zombie is…
Nachum
  • 233
  • 1
  • 2
  • 10
3
votes
0 answers

UITextField crashing app on resume

I have a UITextField that I am presenting inside a modal dialog. Upon touching the UITextField, the ABPeoplePicker (contact selector) is presented (also modally). If I then dismiss the ABPeoplePicker AND the originally presented modal dialog THEN…
moliveira
  • 798
  • 8
  • 17
2
votes
2 answers

EXC_BAD_ACCESS of an UIKit and QuartzCore shared CALayer

I am experimenting an EXC_BAD_ACCESS error that I can not solve, so here I am introducing it to you hoping to get some help :) Normally I use to solve this kind of errors using instruments-zombies, but this time it doesn't seem that easy... As you…
Ricard Pérez del Campo
  • 2,387
  • 1
  • 19
  • 22
1
vote
1 answer

How to debug Cocos2d removal of sprite memory issue

Have been working on a Tower Defense game for iOS for some time now. I am using Cocos2d (v0.99.5 not to sure). Recently started to get into some problems when I started remove sprites. Have profiles using instruments and Zombies and here's what I…
Sunkas
  • 9,542
  • 6
  • 62
  • 102
1
vote
0 answers

Properly manage memory to prevent deallocated 'CFString (immutable)' object (zombie)

I have a situation where I have copied a string in an instance of a helper class, retained it, and later released it during the dealloc of the view controller instance that alloc'd the helper class. This results in the dreaded EXC_BAD_ACCESS. I then…
JeffB6688
  • 3,782
  • 5
  • 38
  • 58
1
vote
1 answer

How do I make my image cover the background html?

I want to make my image a cover background, but it doesn't work for me. Here's my code:
1
vote
1 answer

UITapGestureRecognizer Causing Crash With Differing Error Messages

I have a major issue that I am stuck with at work and would REALLY appreciate some help on. This has cost me 2 days already. What I am trying to do is have a special image class fire it's assigned callback when it's touched. Thats it. But when I…
Aggressor
  • 13,323
  • 24
  • 103
  • 182
0
votes
1 answer

EXC_BAD_ACCESS issue debugging

I sometimes get EXC_BAD_ACCESS without knowing the source.I enabled Zombies and this is now what I get on the console: 2018-08-27 18:37:41.785523+0530 MyProject[3419:1228271] *** -[MyProject.VideoLibrary retain]: message sent to deallocated instance…
Deepak Sharma
  • 5,577
  • 7
  • 55
  • 131
0
votes
1 answer

What is the cause of the zombies in the following code

I have the following class for collecting device motion data: class MotionManager: NSObject { static let shared = MotionManager() private override init() {} // MARK: - Class Variables private let motionManager =…
doovers
  • 8,545
  • 10
  • 42
  • 70
0
votes
1 answer

How to fix message sent to deallocated error

I am passing two string using delegate to the parent controller while I pop to the parent controller. if (![clientIdd length] == 0) { [self.clientIdDelegate passClientId:clientIdd andCouncelorId:councelorId]; …
jerfin
  • 803
  • 1
  • 13
  • 28
0
votes
0 answers

Message Sent to Deallocated instance on method dequeuereusablecellwithidentifier

I receive the following error while my UITableView is loading: *** -[NSObject respondsToSelector:]: message sent to deallocated instance 0x23fa7cff0 I've used NSZombies to track down the error to the line: SHFeedCell *cell = (SHFeedCell…
cph2117
  • 2,651
  • 1
  • 28
  • 41
1
2