Skip to main content
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,847
2 votes
1 answer
648 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
293 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
718 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
114 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,165
-1 votes
1 answer
72 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,126
-1 votes
1 answer
247 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
5k 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
  • 35.8k
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
253 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,126
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
1 vote
3 answers
939 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
0 votes
1 answer
267 views

EXC_BAD_ACCESS when closing NSDocument window (ARC enabled)

I'm working on converting a document-based application from Garbage Collection (it ran fine under 10.6) to Automatic Reference Counting (trying to get it to compile and run for 10.12). I'm getting a ...
Curious Yogurt's user avatar
1 vote
1 answer
388 views

EXC_BAD_ACCESS on long press; no zombie activity

EDIT: I have determined that the following happens only on an iPad Retina simulator and on my iPad Mini 3 test device. It happens 100% of the time on those targets and never on any other iPad or ...
Ted Hopp's user avatar
  • 234k
0 votes
1 answer
461 views

An Objective-C message was sent to a deallocated 'NSThread' object (zombie) at address:

I follow this answer to trace my app for EXC_BAD_ACCESS. Yes, I got a zombie object. When I'm trying to figure out which line of my code is wrong, I found that all of the Responsible Libraries are ...
Chien's user avatar
  • 23
2 votes
1 answer
385 views

Perhaps the weirdest EXC_BAD_ACCESS I've seen Swift generate

I have a set of classes forming a decorator pattern so that I can do some layered caching. I have an abstract class which provides the core processing of images and contains a number of overridable ...
drekka's user avatar
  • 21.7k
1 vote
3 answers
863 views

-[NSError retain]: message sent to deallocated instance

With Zombies enabled, I'm getting the error in the title (message sent to deallocated instance of NSError) on the following saveToURL call: [aDocument saveToURL:aDocument.fileURL forSaveOperation:...
Bradley Thomas's user avatar
0 votes
1 answer
123 views

Objective c circular import in Singleton class

I have two singleton classes which are defined like that SingletonClassA.h @interface SingletonClassA : NSObject + (SingletonClassA*) sharedInstance; @end SingletonClassA.m #import "...
John smith's user avatar
0 votes
0 answers
441 views

Locating NSZombie in code with instruments

I have an error, that appears in 100% of use cases in certain scenario. Current state: Exception breakpoint is enabled. Zombie objects are enabled in run schemes. I use Instruments Zombie tool to ...
ashvardanian's user avatar
1 vote
1 answer
341 views

An Objective-C message was sent to a deallocated 'UIActivityIndicatorView' object

When running my app on device, it crashes right when I initiate my AvPlayer to stream an mp3. However, it works fine on simulator. I have tried to run it through Zombie and I get the following error ...
Ekzel Dest's user avatar
0 votes
0 answers
328 views

App crash NSDate message sent to deallocated instance?

When I launch my app it crashes and I'm getting this error : and after enabling Zombies object I get this error in log : -[__NSDate dealloc]: message sent to deallocated instance 0x16765ce0 ...
YouSS's user avatar
  • 570
3 votes
1 answer
1k views

UITextField textInputView message sent to deallocated instance

I have crashes which occur when I tap on UITextField. I have two controllers, let's say A and B. When I show controller B modally in controller A, and tap on UITextField everything is OK. Then I ...
Shyngys Kassymov's user avatar
0 votes
1 answer
893 views

I've detected a zombie.. now what?

I have the following navigation flow in my app: View controller A is embedded in a navigation controller. A presents B modally. Right before user dismisses B, the navigation controller's view ...
Ivan Lesko's user avatar
  • 1,304
1 vote
0 answers
85 views

iOS: how to localize line in source code from dissasembly log

Console info: 2015-11-15 23:26:42.824 SWPi2[1564:476501] *** -[__NSCFConstantString length]: message sent to deallocated instance 0x110d868a0 bt: * thread #1: tid = 0x74555, 0x0000000110a9beaf ...
theWalker's user avatar
  • 2,020
0 votes
1 answer
50 views

Inconsistant NSZombie allocation log

I'm working on old code now imported into Xcode 7. My problem is I have a random crash when changing a master/detail view controller that is pretty basic. The crash happens in main() so, not really ...
Yann Bizeul's user avatar
0 votes
0 answers
86 views

Object are becoming zombies

I've two variables that are becoming zombies. They are declared like this: @interface SyncPoolController : NSObject { NSString *lastUploadQueryTime; NSString *lastDownloadQueryTime; ...
Rashad's user avatar
  • 11.2k
2 votes
0 answers
64 views

App is crashing because of a zombie when switching tabs

I have an app with a TabBarNavigationController and a NavigationController. The views of the navigation Controller are HomeViewController CharacterViewController FinalViewController I have a ...
Zablah's user avatar
  • 332
2 votes
1 answer
119 views

EXC_BAD_ACCESS SpriteKit scene transition, no Zombies

I am having a crash caused by EXC_BAD_ACCESS. It is not caught by setting the NSZombieEnabled to YES, indicating it isn't a freed object. (boy, do I really wish it was) The stack trace is less than ...
bshirley's user avatar
  • 8,347
5 votes
2 answers
484 views

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 ...
Alex Crist's user avatar
  • 1,099
4 votes
1 answer
3k views

What does "Class _NSZombie_OS_voucher is implemented in both ?? and ??" mean?

I got the following message in Xcode when I had both Address Sanitizer and Zombie Objects enabled in my scheme's diagnostics options, and ran the project: objc[656]: Class _NSZombie_OS_voucher is ...
Emil Laine's user avatar
  • 42.5k
0 votes
1 answer
151 views

Swift - Model from Core Data release and exc bad access

I have EXC_BAD_ACCESS at this line: self.accountControl.baseInfo = base When I enabled NSZombies I get this error: -[CFString release]: message sent to deallocated instance 0x1478cbc0 I found ...
Libor Zapletal's user avatar
-1 votes
1 answer
612 views

Objective-C weak reference zombie

I'm trying to create a zombie object to detect sending messages to a deallocated object. Say i have a strong property object A with a weak reference to object B. When B is deallocated my weak ...
stefos's user avatar
  • 1,235
1 vote
0 answers
157 views

Swift 1.2 crashes in release mode

When an app is built with -O (fastest) setting , crashes occur very quickly at seemingly random places. Occurs in latest beta as well as final. How would one track those down? Tried allocations ...
Ron's user avatar
  • 1,640
0 votes
1 answer
693 views

Instruments crashes at zombie

I am regularly experiencing EXC_BAD_ACCESS on the same line of code, leading me to believe there is a zombie, when I run the app on a device or on a simulator. In an attempt to debug this exception, ...
HGDev's user avatar
  • 2,232
0 votes
1 answer
104 views

Why is my UILabel getting deallocated?

Im trying to track down the source of a crash. I've profiled the app to look for zombies and it appears to be related to updating the text in one of my UILabels. I don't think I am setting the text ...
Youngin's user avatar
  • 261
1 vote
1 answer
3k views

iOS app crashes with objc_release EXC_BAD_ACCESS on startup

My app keeps (which uses ARC) crashes right after startup, with the following backtraces of the threads: The weird thing is that when I try to run the app with Instruments-Zombie tool, the app works ...
Ohad's user avatar
  • 1,480
1 vote
0 answers
140 views

iOS: Zombie Messaged when accessing NSUserDefaults

While profiling the app for Zombies, I get the error below: Stack: Code: When the app is launched, we access several NSUserDefaults properties using similar code as below. Sometimes the app ...
user1107173's user avatar
  • 10.6k
0 votes
0 answers
401 views

Debugging EXC_BAD_ACCESS with NSZombie

I am getting a rather peculiar issue of EXC_BAD_ACCESS. In an inventory based app, when creating a receipt..the app works fine if the vehicle already exists in the database and crashes when a receipt ...
Gaurav Wadhwani's user avatar
0 votes
1 answer
56 views

EXC_BAD_ACCESS from Apple Subthread

All of a sudden, I receive this EXC_BAD_ACCESS and NSZombie isn't saying anything. Anyone have an effective way to debug and eliminate this issue?
Hedam's user avatar
  • 2,239
1 vote
1 answer
412 views

Swift - message sent to a deallocated object - in swift optimalization level fastest

my bug appears only when I change optimalization level to fastest (in none works good). I reacreate dateSource of collectionView with new layout, new fetch request (with other sort on sections) on ...
Marcin's user avatar
  • 21
5 votes
2 answers
294 views

Alternative to NSZombie

I'm trying to debug an EXC_BAD_ACCESS crash using NSZombie. My app creates lots of large objects though and with NSZombie enabled they aren't getting released causing the app to crash in seconds. This ...
user avatar
2 votes
0 answers
207 views

App crash logs not generated in device

My app is behaving in a similar way has NSZombie enabled.it is crashing but crash logs are not generated. I have cross checked many times Nszombie is not enabled.So pls let me know how to fix this ...
Agarathi's user avatar
  • 149
2 votes
0 answers
757 views

Random crash: message sent to deallocated instance

I have a crash that randomly appears... I'm using this library for a tutorial: https://github.com/MatthewYork/MYBlurIntroductionView Since the error is not so obvious, and placing several NSLog in my ...
Vico's user avatar
  • 1,256
11 votes
1 answer
11k views

Enable and Debug Zombie objects in iOS using Xcode 5.1.1

I have an iOS(7.1) app which crashes due to EXC_BAD_ACCESS. If I am not wrong, this happens due to the use of an object which is already de-allocated. After a bit of searching, I found out that ...
Sibir's user avatar
  • 313
0 votes
2 answers
2k views

how to fix over released objects

NSZombie detected that one of the objected is over released in my app and that is causing the app to crash every time when a button is pressed. However, after inspecting the source code of where the ...
forseqn's user avatar
  • 39
0 votes
2 answers
934 views

EXC_BAD_ACCESS in Swift when adding a SKSpriteNode

I am creating a little game in Swift for OS X to practise but I encountered an error unkonwn to me. It appears when I try to create two new SKSpriteNodes: var battleBegan:Bool = false let beginButton =...
P1kachu's user avatar
  • 1,077
0 votes
1 answer
533 views

Crash after a popToRootViewControllerAnimated

I have a crash when trying to switch to another VC. Here is the structure: TabBarController [Home, Tab2, Result tab] from these tabs, I can push a new viewController called addVC which contains a ...
Vico's user avatar
  • 1,256
0 votes
0 answers
164 views

zombie not showing up in instrumentation on xcode 5

Enabled NSZombieEnable Run App in ios 7 sim Went to a specific operation that crashes Boom -[Not A Type _cfTypeID]: message sent to deallocated instance 0xe1852f80 I fire up instrument Choose Zombie ...
Mehdi's user avatar
  • 782
0 votes
0 answers
169 views

Weird NSZombie error in nsmutuablearray

I had faced a weird error for a few days ago. Luckly, i had solved this error about in 4-5 day. However, i just wonder that the error why happen. First of all, i will describe the situation with ...
Binus's user avatar
  • 99

1
2 3 4 5