Questions tagged [nszombie]

NSZombie is an Apple OS-specific (OSX and iOS) tool for debugging issues with reference-counting.

NSZombie is an Apple OS-specific (OSX and iOS) tool for debugging issues with reference-counted objects. In particular, it helps you track down objects that are over-released by recording a history of all -retain and -release messages sent to all objects created during execution.

When NSZombie is enabled, unbalanced -retain and -release messages cause the application to immediately halt and break into the debugger. This allows you to examine the problematic message to determine if there is an extraneous -release (or -autorelease), or a missing -retain.

Resources

223 questions
0
votes
1 answer

iOS - Diagnosing EXC_BAD_ACCESS with NSZombie

My app has started crashing due to EXC_BAD_ACCESS, but does not give my any useful information as to where the crash is happening. So I enabled NSZombies. Now I get this: *** Terminating app due to uncaught exception of class…
soleil
  • 12,133
  • 33
  • 112
  • 183
0
votes
1 answer

How to handle NSZombies in an asynchronous NSURLConnection?

I'm currently asynchronously using NSURLConnection with several UIViews (every view handles NSURLConnection as delegate). The problem I have is when user switches views too fast and the delegate becomes NSZombie the app crashes - that is…
cocoapriest
  • 1,869
  • 3
  • 22
  • 36
0
votes
1 answer

UIWebView loadHTMLString NSZombie

I'm making a news reading app. I have a ArticleDetailPagingVC which functions as a paging controller. This has a UIScrollView with multiple ArticleDetailViewController's. Inside the ArticleDetailViewController is a UIWebView which handles the…
Jasper
  • 7,031
  • 3
  • 35
  • 43
0
votes
0 answers

An object is being double deallocated unintentionally?

I have a tab bar application where in one tab bar, there are 7 separate UISwitch instances. When I run the application and go to the tab bar with the switches, I then call [self dismissModalViewControllerAnimated:YES completion:nil]; Then I call…
user1626438
  • 133
  • 5
  • 14
0
votes
1 answer

After reload of tableview app crashes with zombie exception

I have a tableView that uses the ODRefreshControl. When the view loads everything works fine, the data is loaded into the tableview. But when I reload the tableview using the ODRefreshControl, it crashes. This is how I'm…
Steaphann
  • 2,797
  • 6
  • 50
  • 109
0
votes
0 answers

Getting Error :malloc: *** error for object 0x1107e790: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug

I am getting the following Output in NSZombie, I don't know How to solve it: I am using the Following Code : AsyncronousUIImage *image=[[AsyncronousUIImage alloc] init]; [image loadImageFromURL:imageURL inImageView:templateView]; …
Kunal
  • 83
  • 1
  • 2
  • 11
0
votes
1 answer

iPad app crashes on receiving multiple notifications

I have an iPad app in which users can share images and receive notifications. When the user sure something twice simultaneously with another user, the receiver gets two notifications, each one regarding the share. It then asks if it has to ignore or…
user1982519
  • 515
  • 5
  • 24
0
votes
2 answers

Understanding zombie trace in Instruments

I am kind of new at ios development and my app crashes because of EXEC_BAD_ACCESS. To detect problem i enabled Zombies and trace Allocations by using Instruments in xCode 4.5 After it detects Zombie Messaged i am having trouble to find which part…
cagryInside
  • 790
  • 2
  • 15
  • 41
0
votes
1 answer

Huge memory usage - can't find source of issue

When tracking zombies in my app using instruments, almost immediately after the app starts, the number of live bites increases at a very rapid rate. The responsible caller for this memory usage is -[NSPlaceholderString…
Fitzy
  • 1,871
  • 6
  • 23
  • 40
0
votes
1 answer

Found Zombie Object, but Cannot Find Responsible Caller

I am so confused by this problem. I used Instruments to find a Zombie in my code. Usually I would just go through the list of responsible callers and fix it. The only problem is one of the responsible caller methods doesn't exist in my code. I can't…
user1873837
  • 23
  • 1
  • 4
0
votes
2 answers

A NSZombie of an odd type

so i am getting a NSzombie and it says this -[__NSArrayI _cfTypeID]: message sent to deallocated instance Any idea what that is? assumably an array although i thought if it were an NS type it would say.
Genhain
  • 1,937
  • 1
  • 19
  • 38
0
votes
1 answer

NSZombie Enabled but Still No Debug Info

All of a sudden an app I've been developing is no longer outputting debug info to the console even though NSZombie is properly configured. I'm on Xcode 4.5 and tried this on iOS 5 and 6. Any clues what may be wrong here?
VinnyD
  • 3,500
  • 9
  • 34
  • 48
0
votes
2 answers

UIAlertView cancel button crashes app

Okay, so I have just started iOS development. I'll start by explaining the flow of my app : 1. A view called "appViewController" is loaded. 2. [self presentViewController: controller animated: YES completion:nil]; this loads a webview 3. After I am…
Ayush Chaudhary
  • 716
  • 1
  • 8
  • 20
0
votes
1 answer

Unable to release viewcontroller

I need some help with releasing a controller in xcode ..im not using ARC ..take a look at this simple code from my main delegate controller: LoginViewController *login = [[LoginViewController alloc] init]; [window addSubview:login.view]; [window…
j2emanue
  • 60,549
  • 65
  • 286
  • 456
0
votes
2 answers

How Does NSZombies Really Work?

I cannot find any detailed apple documentation on how the NSZombie really functions. I understand that its designed to not actually release objects and just maintain a count of references to catch any extra releases, but how would something like…
MrHappyAsthma
  • 6,332
  • 9
  • 48
  • 78
1 2 3
14
15