Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
1 vote
0 answers
47 views

How can I Intentionally create a Zombie Object in Swift [duplicate]

Just like the title says I'd like to know how I can create a Zombie Object in swift. The reason I ask is because I'm trying to learn how to use the Zombie Instrument. I have a sneaking suspicion that ...
dubbeat's user avatar
  • 7,857
2 votes
1 answer
662 views

iOS 14 crash zombie when use dispatch_semaphore

I handle some old code, it runs well, but now crash only on ios 14 here is the demo static NSData *DownloadWithRange(NSURL *URL, NSError *__autoreleasing *error) { NSMutableURLRequest *request = [[...
John Shaw's user avatar
3 votes
1 answer
305 views

~500 NSZombie warnings on Xcode memory graph from iOS 13 application

When I build a memory graph of my app I see ~500 memory warnings. When I look these are all in the Malloc Blocks category and are all (mostly) prefixed with NSZombie. I'm assuming this is what it ...
user avatar
4 votes
2 answers
743 views

Why does object become NSZombie only when inherit from NSObject?

I created a new project, enabled Zombie Objects (Edit Scheme -> Diagnostics). I initialized two objects: ZombieTest and ZombieTest2(inherit from NSObject). After running the app, I opened debug memory ...
Hen Shabat's user avatar
0 votes
2 answers
118 views

Why dose the NSString become NSZomie in this code?

I just ran into a problem.I use NSMutableArray to keep the Ad ids that need to be loaded. When one id is preloaded, I remove it from the array. Then I find out that, after remove, the unit id became ...
Eagle Lau's user avatar
  • 123
1 vote
1 answer
1k views

Why NSInvocation return value creates a zombie?

I am trying to build a JavaScript to Native communication. For that purpose I need to execute dynamically a method on some class when JavaScript calls it. I have a problem with NSInvocation getting ...
h3dkandi's user avatar
  • 1,195
-1 votes
1 answer
74 views

In what situation will a NSZombie be created in an ARC environment?

In what situation will a NSZombie be created in an ARC environment? That is, in ARC environment, how can an object be accessed or over-released after released?
allenlinli's user avatar
  • 2,174
-1 votes
1 answer
261 views

Crashing MapKit

I am currently working on a MapKit app, which puts custom annotations (locations) on a MapKit MapView. However, something is going wrong with placing the pins. The pins are in fact displayed on the ...
Jamie Coenen's user avatar
6 votes
4 answers
6k views

How can I demonstrate a zombie object in Swift?

I've read How to demonstrate memory leak and zombie objects in Xcode Instruments? but that's for objective-c. The steps don't apply. From reading here I've understood zombies are objects which are: ...
mfaani's user avatar
  • 36.6k
0 votes
1 answer
58 views

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....
Deepak Sharma's user avatar
0 votes
1 answer
1k views

Enabling Zombie Objects causing memory pressure crashing

My app is crashing when its deallocating a ViewController. I believe there is an object in there causing it - I am getting a EXC_BAD_ACCESS crash. It happens usually after finishing a level of the ...
Mark A.'s user avatar
  • 1,093
0 votes
0 answers
254 views

Over release a object in an dictionary that cause EXC_BAD_ACCESS error?

I have a object ECClient, it is retained by a dictionary in ECSignalingChannel and also by ECRoom. Unfortunatly, ECClient crashes when it's being released. I guess the reason it crashes is because it'...
allenlinli's user avatar
  • 2,174
9 votes
4 answers
1k views

THREAD 1: EXC_BREAKPOINT CALayer removeAllAnimations message sent to deallocated

There are a lot of question with the same title but somehow I felt that every case is different as my problem is still not resolved and I've no clue why and also there are not enough solutions for ...
Chaudhry Talha's user avatar
3 votes
1 answer
332 views

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 ...
Manuel's user avatar
  • 15.1k
1 vote
3 answers
960 views

iOS Swift EXC_BAD_ACCESS code 2 SearchTextField (UITextField subclass)

I am relatively new to iOS development with Swift (I actually have 3 years of experience with Android development with Java, trying to learn a new technology). I am creating an app that requires the ...
darkterbears's user avatar

15 30 50 per page
1
2 3 4 5
17