instruments

iPhone - Memory Leak - NSData dataWithContentsOfUrl & UIWebView

Please help! Have been staring at this for 12 hours; and have looked online and can't find solution. In my application, I use 2 UIView controls in separate pages/controllers: UIImageView (retrieve data via NSData dataWithContentsOfUrl) UIWebView Just to isolate my code, and make it easier to explain, I created a new view based proje...

Application crashes on iPhone OS 2.2, works fine on 2.1.

This is the trace of my app,when I updated my device to 2.2. any idea to get rid of this leak? because I think that's the culprit who keep crashing my application. This is trace when I run my application in os2.2,see the image which show the part which might be generating leak,and if you can give me some hints to resolve it, will be gre...

Does Instruments (ObjectAlloc/Leaks) require the simulator?

This may be a very stupid question so I apologize in advance. It seems that Instruments only works for me when using the iPhone Simulator. Is there something special to getting it working when tethering the application to the iPhone? Or is that even possible? I launch the application the normal way through the Run->Start with performace ...

Leak - GeneralBlock-3584

When i try to check leaks of my iPhone App using Instruments, everything is just fine. Same App on actual real device shows this leak for a few times during the app launch. It is pretty non-deterministic and it happens in system libraries. I tried to google down the solution without a luck. Anyone experiencing the same problems? Anyone k...

Analyzing Instruments readings

Leaks: None ObjectAlloc: Net Bytes: 4,332,512 # Net: 26,696 Overall Bytes: 103,769,552 # Overall: 738,987 Activity Monitor (MyApp): # Thread: 6 Real Memory: 63.65 MB Virtual Memory: 209.45 MB Memory monitor showed same readings as Activity Monitor. I don't know whether these readings are good or bad. Memory indicated by Activity...

Instruments - Target terminated too early to collect data

Hi I am using my iPhone as a development device. Whenever I run an application on the iPhone with Instruments (Instruments->Launch Executable->my app), the app is launched but I get the error mentioned in the subject in Instruments. I have tried removing the device from xcode and adding it again as a development device but I still get ...

Using Instruments Leaks & Object Alloc: Are autoreleased objects counted as leaks?

I have an iPhone app that's getting memory warnings and so I'm trying to find leaks, make more efficient use of memory, etc., with the help of Instruments. Amongst other things, I'm trying to take out any autoreleased objects and replace with manual alloc/init/release objects. However, some API calls don't appear to have an 'init' versio...

Instruments Leaks - Not showing my source code

I am attempting to analyze an iPhone application using the Leaks application and everything appears to be working fine, except for when I try to view detailed information about a particular memory leak. Leaks does not appear to be loading my source code. Looking at the stack view on the right, I can see calls that reference iPhone frame...

What is an "misaligned image" in terms of Core Animation in iPhone OS?

Instruments tells that there are "misaligned images" which are animated by core animation. What does that mean? UPDATE: I've seen that in Instruments.app > Core Animation. ...

What kind of indicators do I have to look at in Instruments app and ObjectAlloc, to see if I have memory leaks in my app?

I guess that the "# Net" column is the most interesting, although I don't really understand what that's supposed to mean. Total number of currently allocated objects? It changes all the time, even if I don't do anything. Are there any good "rules of thumb" to see if there is an memory leak? ...

How can I disable Instruments to automatically launch when I Build&Go to my device?

I've used instruments for searching for memory leaks. I did that through XCode Run > Start with performance tool > Leaks. Then I quit Instruments. And every time I Build&Go, Instruments automatically launches. Although that's cool, when just wanting to test the app, it's not needed. How can I turn that off? ...

How to change font for Apple's Instrument

Hi, Does anyone know how to change the font for the Performance Tool, Instruments, that comes with Xcode. Trying to trace down some memory issues in my iPhone app but just can't stand the default fonts for Instruments. :-) Any help would be great! Thanks. ...

Why do I get this strange Memory Leak when I touch my UIImageView?

It's really strange. I have a blank UIImageView subclass that implements the -touchesEnded:, -touchesMoved, and -touchesBegan: methods. The implementations of these methods are empty. They just do nothing. However, when I run Instruments with "Leaks", and I touch the UIImageView and move my finger outside of that UIImageView while still ...

Feedback on Apple instruments tool

Hi all, I was wondering if there are some video tutorials on using the instruments tool and / or good step by step tutorials with good illustrations. ...

Thousands of new 0 size objects being added to my net total every second, should I be worried?

I have just finished ridding my project of leaks, but there are still thousands of objects under the category "GeneralBlock-0". The number of net allocations is through the roof (its approaching a million as I type) but none of them are leaks and none of them have a size greater than 0 bytes. UPDATE & EDIT: QuartzCore is responsible f...

No leaks appearing in Instruments, even though I'm sure they exist

Hi, I'm checking for leaks in Instruments, and I've set to check every second, but no leaks are appearing. I'm sure there must be some in my app, is there anything which could stop these from appearing? Is there a good way I can create a leak so that I can test if leaks do show up in Instruments? Thanks! ...

Checking memory allocation in Instruments

Hello, I've cleared my app of leaks using the leaks tool, but I still notice that the objectalloc tool jumps up in the number of objects allocated and footprint when I switch views. I'm especially seeing high numbers of: GeneralBlock-16 with mostly Foundation responsible with caller NSLogv and GeneralBlock-0 with mostly QuartzCore re...

Where's the memory leak here?

Instruments tells me there's a mem leak in this code, but I can't seem to find it....any help? sorry or the newbie question. - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { int altoBufferCelda = 26; Mensaje *msg = (Mensaje *)[model.mensajes objectAtIndex:indexPath.row]; CGSiz...

Can't figure out where memory leak comes from.

Hello everyone! I'm somewhat of a cocoa newbie and I simply can't figure out why I'm getting a spike in the leaks graph in Instruments with this code. It seems to be a small leak (i.e. 16 Bytes and the Leaked Object is "Generalblock-16"; that is the only leaking object and says Self 100%) and it seems to remain that size regardless of wh...

How to interpret the output from the "Leaks" XCode performance tool?

I don't understand the output from the "Leaks" performance tool in XCode. How can I interpret this output? ...