instruments

[Memory leak] - Not seeing stacktrace in Instruments

Hey Guys, I am using Instruments to find memory leaks in my iPhone application. I saw a few leaks in the application however the extended details view is not showing the stacktrace. It just says "No stack trace available for this block". I am sure I have missed some settings which resulted in this behavior. Any help would be greatly ap...

How to determine where this memory leak is coming from?

How can I determine where this memory leak is coming from in my code? It doesn't reference anything but the "main" function in my application. ...

iPhone app running in Instruments fails with unrecognized selector

I have an app that appears to run without problems in normal use. The Clang Static Analyzer reports no problems either. When I try to run it in Instruments, it fails with an unrecognized selector exception. The offending line is a simple property setter of the form: self.bar = baz; To figure out what's going on, I added an NSLog(...

Shark & MallocDebug for iPhone Applications

I'm trying to optimize an iPhone game that I am developing which uses the Cocos2D-iphone framework. I want to use Shark to measure performance but "Run->Start with Performance Tool->Shark" is disabled in XCode (Instruments Leaks works fine). I've configured the build to "Generate Profiling Code", tried building for both the device and t...

iPhone Object Allocation, GeneralBlock-24 & GeneralBlock-48

Hi All, I'm finishing up my third iPhone App. Cleaning up code and such. I have 3 memory leaks after the launch of the application. These remain constant no matter what I do in the App (no more leaks). The issue is that my Net Object Allocation keeps growing up. There are two blocks in particulat, GeneralBlock-24 & GeneralBlock-48 that ...

Symbol not found: _CFXMLNodeGetInfoPtr when start Instruments

Hi guys, I am developing a iPhone app and everything works fine so far. I can build and start the app in the simulator. But when I now start the app with Instruments I got the error: Dyld Error Message: Symbol not found: _CFXMLNodeGetInfoPtr Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security Expected in:...

Exiting Instruments "Full Screen"

I was doing a memory profile in Instruments for my iPhone app and I pressed the "Full Screen" button in the lower left. The screen went black and I can't make it do anything else. When I power cycle the box I get the splash screen appearing, and then it goes back to black. Please help. Here's a doc showing the button in the lower lef...

What does the Tiler Utilization statistic mean in the iPhone OpenGL ES instrument?

I have been trying to perform some OpenGL ES performance optimizations in an attempt to boost the number of triangles per second that I'm able to render in my iPhone application, but I've hit a brick wall. I've tried converting my OpenGL ES data types from fixed to floating point (per Apple's recommendation), interleaving my vertex buff...

How to remove NSString Related Memory Leaks?

in my application this method shows memory leak how do i remove leak? -(void)getOneQuestion:(int)flashcardId categoryID:(int)categoryId { flashCardText = [[NSString alloc] init]; flashCardAnswer=[[NSString alloc] init]; //NSLog(@"%s %d %s", __FILE__, __LINE__, __PRETTY_FUNCTION__, __FUNCTION__); sqlite3 *MyDatabase;...

Understanding the Instrument for memory leak checking - iPhone

Above given images is of my application leaks. Here I want to understand that, in Extended Detail - you can see different colors like light green, light pink, light brown, light purple. What does each color indicates? Now the other confusion is "How to locate the code which is creating a memory leak?" Upto what limit of memory leak...

Objective C NSCFString Leaks with NSMutableArrays

I am cleaning up my code in a phonebook iPhone application and the Leaks tool in Instruments is reporting that I am leaking NSCFString objects. Here is the pattern that I am following: I have a Person class in my application that has nothing more than local NSString members and associated properties for first name, last name, etc. My ...

What could a leaked UIImage of size 16 Bytes indicate?

16 Bytes is pretty small, right? None of the UIImages I create in my app are that small, yet the Leaks Instrument is reporting a leaked UIimage of size 16 Bytes... Any clues on what this could be? Incidentally, there was also a leaked CALayer object of 48 bytes... ...

What does GeneralBlock mean in the ObjectAlloc Instrument?

I am trying to free up some unused resources in my app. I have a couple MBs of an (object?) of category GeneralBlock and I have no clue what this is or how I should be approaching the freeing up of this GeneralBlock. GeneralBlock has no apparent use. When I start my app there is a MENU screen at which point in time I have about 300kb o...

Core Data Leaking Memory?

I keep seeing what appears to be a memory leak - but I can't tell what to do. It looks like a memory leak in Core Data. I can see the LAST method I explicitly invoke in Objective-C, but I'm not creating any object there. I'm saving something and Core Data is leaking memory according to Leaks. Am I reading this incorrectly? ...

Unable to run instruments on my iphone app on the device

I'm trying everything i can to get instruments to profile my app on the actual iphone device, but it won't work no matter what i do. I tried the solution from http://stackoverflow.com/questions/379983/does-instruments-objectalloc-leaks-require-the-simulator but that didn't work. Most of the time i get nothing of use from the console, b...

Can't run Instruments from Xcode

I recently upgraded to Snow Leopard and since then I am having difficulty running Instrument to instrument my app from Xcode. The Record button would be grayed out, and nothing happens. There is no message in Xcode's console telling me what's wrong either. I used to be able to attach it to process or launch the process from Instrument...

Instruments refuse to run

I am having problem running my Instruments on my iPhone app, below is the message I got. Any idea what's causing this and what I can do? ...

Instruments point a memory leak !

Hi, i'm have this code for initialize my class. - (id)initWithSize:(int)size { self = [super init]; if( self != nil ) { [self setMyVector:[[NSMutableArray alloc] initWithCapacity:size]]; for ( int i = 0; i < size; i++ ) { [myVector addObject: [[NSMutableArray alloc] initWithCapacity:size]]; } ...

How to run iPhone program with Zombies instrument?

I'm running XCode 3.2 on Snow Leopard and I'm trying to run the Zombies instrument against my app but the selection is grayed out and I don't know why. I know about the NSZombieEnabled environment variable. I have that set to YES on my application. I'm not sure if this matters, but, the app is an app that I started developing on Leopard ...

iPhone programming: avaudioplayer leaks memory on play

I'm new to using avadioplayer and I seems to have a memory when ever I play a sound. I cannot figure out what I am missing to get rid of it inside Instrument. could this be a false positive? ViewController.h : @interface ISpectatorViewController : UIViewController <UIAccelerometerDelegate>{ AVAudioPlayer *massCheerSoundID; } @proper...