Questions tagged [nszombieenabled]

NSZombieEnabled is an Apple OS-specific (OSX and iOS) boolean reference to whether the zombie process has been enabled. See NSZombie for information about the Apple OS-specific zombie process.

NSZombieEnabled is an Apple OS-specific (OSX and iOS) boolean reference to whether the zombie process has been enabled. See NSZombie for information about the Apple OS-specific zombie process.

In Xcode 4, this feature can be activated by choosing edit scheme, then choosing the arguments tab, then adding NSZombieEnabled and the value YES to the Environment Variables section.

42 questions
2
votes
1 answer

NSZombieEnabled without debugger

We have a EXC_BAD_ACCESS crash in our iOS application but it happens only when certain external accessory is connected. Unfortunately this accessory doesn't allow debugging (no pass-through connection). Is it possible to permanently enable…
2
votes
1 answer

Does NSZombieEnabled only work on Objective-C code?

In an Objective-C project, if I am incorporating some C code, does the environmental variable NSZombieEnabled help me debug accidentally de-allocated region which I've done with C code, or does it only work for the Objective-C part?
huggie
  • 17,587
  • 27
  • 82
  • 139
2
votes
1 answer

Is it possible that NSZombie doesn't point out EXC_BAD_ACCESS with ARC?

i'm currently working on an ios project with some people, one of us decided to use ARC in a part of the app. Unfotunatly, we are currently experiencing some crashes when coming back from background. Here are the steps we follow to crash the…
1
vote
1 answer

iOS NSZombiesEnabled = YES

I found this bit of code online to check if my NSZombiesEnabled is on or off if( getenv("NSZombieEnabled") || getenv("NSAutoreleaseFreedObjectCheckEnabled") ) { NSLog(@"NSZombieEnabled/NSAutoreleaseFreedObjectCheckEnabled enabled!"); } The…
Nick
  • 205
  • 3
  • 14
1
vote
3 answers

message sent to released object (never released manually)

Removed release statements. Some of them seemed to be okay, but that was probably just because other things were exploding first. - (void)handleNowPlayingItemChanged:(id)notification { MPMediaItem *item = self.musicPlayer.nowPlayingItem; …
Thromordyn
  • 1,581
  • 4
  • 17
  • 45
1
vote
1 answer

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 fine and doesn't crash, but I get no zombie…
Ohad
  • 1,450
  • 4
  • 18
  • 27
1
vote
1 answer

Disabling Zombies causes EXC_BAD_ACCESS

I am getting a crash in the app with the following stack trace- Thread : Crashed: com.apple.main-thread 0 libobjc.A.dylib 0x39dfa66a objc_release + 9 1 libobjc.A.dylib 0x39dfb0d7 (anonymous…
Devang
  • 1,531
  • 3
  • 22
  • 38
1
vote
1 answer

Unkown Exc_Bad_ACCESS (Code=1)

I am using OpenTok Framework and it cause crash when my app goes to background and foreground multiple times. May be it is due to memory loss but i have tried on instrument and enabled zombie objects and malloc guard but nothing helps me out. Here…
1
vote
0 answers

How to diagnose a EXC_BAD_ACCESS while my App running - objective-C

I'm working on a 2d OpenGL ES game. I've used Clang and Instruments to find and eliminate all leaks. My app's memory usage (Live Bytes in ObjectAlloc) holds steady at around 1.5MB. However, long play sessions result in an eventual EXC_BAD_ACCESS.…
Shaun Inman
  • 1,968
  • 1
  • 19
  • 28
1
vote
1 answer

how do i set up NSZombieEnabled,SAutoreleaseFreedObjectCheckEnabled,MallocStackLoggingNoCompact,those values though code

how do I set up NSZombieEnabled,SAutoreleaseFreedObjectCheckEnabled,MallocStackLoggingNoCompact these values though code. I don't want to set up these values though Xcode edit scheme.Any idea?
ganvinalix
  • 65
  • 5
0
votes
1 answer

NSZombieEnabled stops app from crashing

I enabled NSZombieEnabled and my app stopped from crashing. The debugger isn't outputting anything that could help me so this was my only hope. Do you have any suggestions to why this is happening? Thanks.
flaviusilaghi
  • 677
  • 3
  • 10
  • 27
0
votes
1 answer

Xcode - Setting Zombie enabled in two different places?

I've set to enable Zombies (NSZombieEnabled) in the Arguments tab in the scheme. But I just recently noticed that there is a tab called Diagnostics where you can tick a box called "Enable Zombie Objects". Are these two equivalent ways of enabling…
Peter Warbo
  • 11,136
  • 14
  • 98
  • 193
0
votes
5 answers

iPhone App Crashing - NSZombie Output Issue

My application is crashing when I use popViewController. When using NSZombie I get the following: 2011-07-15 13:20:03.334 Question[27412:207] *** -[CFString release]: message sent to deallocated instance 0x4c8a090 I'm not entirely sure how to…
user559142
  • 12,279
  • 49
  • 116
  • 179
0
votes
3 answers

how to using NSZombieEnabled on intrument Xcode 3.2.5

i have some problem in memory management, and then i try to fix it using intrument tool. Base on mark j video on you tube about using NSZombieEnabled in intrument, i try to do like that. The problem is i never find a checkbox to set NSZombieEnabled…
R. Dewi
  • 4,141
  • 9
  • 41
  • 66
0
votes
0 answers

Getting error "libobjc.A.dylib`objc_assign_strongCast_non_gc(objc_object*, objc_object**)"

I have a huge set of data, those are displayed in a customized NSOutlineView. Sometime my app gets crashed and gives me this error, while running in Xcode: libobjc.A.dylibobjc_assign_strongCast_non_gc(objc_object*, objc_object**)` Any idea about…
Anoop Vaidya
  • 46,283
  • 15
  • 111
  • 140