I'm new to iPhone development, and I've just run my iPhone app throught the Intruments Leaks tool for the first time, and discovered a leak with my ListViewController dataArray method.
When I click on the listing it shows the code, and a few lines have percentages next to them. Presumably they're the lines that are leaking memory. I've ...
Hey all, I have a problem and I'd like some advice.
I'm working on a document viewer that's composed of the following major parts:
zip library which unpacks the document container (minizip)
xml library which parses the document (libxml2)
UI code which renders the document on screen
Nothing too complicated or fancy.
On the emulato...
Hi,
I have written a universal app that's working fine on both iPhone (iPod Touch) and the iPad. The only difference for either platform are the nib files and the launch page graphics. Both iPad and iPhone nib files have the same functionality, just the graphics, buttons and text are bigger on the iPad.
When I run Instruments on both a...
Hi @ all
Can anyone please tell me why the following code leaks? Instruments tells me about 2 leaks. The 2 lines that obviously cause the leak are:
Person *pers = [[Person alloc] init];
and
NSMutableDictionary *dict = [[NSMutableDictionary alloc] initWithContentsOfFile:path];
The whole is listed below:
PersonViewController *perso...
Hello!
I am experiencing problem and can't find what's wrong.
As usual when I saw EXC_BAD_ACCESS message I turned on Instruments with NSZombie activated. When the error occurs and the NSZombie show message: "An Objective-C message was sent to a deallocated object (zombie) at address: 0x10083560" I click on arrow and see empty list. NSZo...
Quick question, Instruments is reporting a leak here...
MyViewController *myVC = [[MyViewController alloc] initWithNibName:@"myView" bundle:nil];
[self.navigationController pushViewController:myVC animated:YES]; //<<<<---- !00% leak according to Instruments
[myVC release];
I understand the myVC is retained by the nav controller,...
Instruments is failing to start on my iPad and iPhone. Both are correctly provisioned and I can debug code on them from xcode with no problems, but Instruments fails to start.
All I get is a beep. I looked in the Mac Console logs and I see several of these:
8/18/10 5:46:27 PM Instruments[1406] -[NSCFArray length]: unrecognized select...
Hi there,
I am currently using IOS SDK 4.0.2 and learning how to do UIAutomation. Unfortunately I found that in the Simulator, when I try running a simple Java script test (that just assigns variables) I get the following error.
Unexpected error in -[UIATarget_0x5d04f60 frontMostApp], /SourceCache/UIAutomation_Sim/UIAutomation-37/Frame...
Hi,
I want to export my instruments data. But the menu item is gray. I tried everything. How does it work? Is there any way to export CPU Sampler data?
Thanks!
...
Hi,
Is there a way to use jquery when scripting in Apples UI Test Automation. When, in Intruments, I try:
#import "jquery-1.4.2.js"
I get a warning regarding undefined object window, which is expected since there are no window objects defined, like it would have been in a browser.
But, when I try the same on the Rhino JavaScript eng...
I'm seeing my app being jettisoned due to low memory. In trying to track down the problem, I ran the app through the Allocations instrument. Unfortunately, I couldn't see any problem with the memory usage when it was killed.
At the time of ejection, the app was playing a video, and had been for about 45 seconds. There were no touches or...
the app I've installed on an iPhone 3G device periodically crashes. I'm wondering if it's the device or the code. the code works fine on the simulator.
I have other apps from the app store that do the same thing. e.g. the stackoverflow app - whenever I do a search the app crashes. I've even had the iPod app crash too.
I've restored th...
if i run an application with the performance test, the "cpu monitor" show me some informations like process ID/Name or CPU Time. But in which unit of time does it measure ?
An example: if i get 05.04 , what does mean for me
Best Regards
...
Update
I have update the planets.m/h files to reflect the suggestions made by the commentors (thank you bbum and DarkDust.
my factory methods now all call autorelease and look like this:
- (Planet *) initWithName: (NSString *)name;
+ (Planet *) planetWithNameAndMoons:(NSString *)name moons:(id)firstObj, ... NS_REQUIRES_NIL_TERMINATI...
Using
UIATarget.localTarget().frontMostApp().logElementTree;
when I know that there is a keyboard present (after tapping a text field) shows that there is a UIAKeyboard element in the hierarchy. However, it does not have a name. I'd like to get a ref to that so that I can dismiss it from the script.
My best guess is to use something li...
XCode's Instruments make me feel physically I'll. They're based on DTrace - which has some loose equivalents in Windows - but the GUI Apple made for them makes them usable in a day to day way.
Visual Studio just doesn't seem to have tools to compete. It has an attempt at a profiler that requires a lot of command line mojo and parsing of...
I'm loading a lot of textures as part of my app. I load them on a "load-thread" and use them on my main thread using another GL context and the 'shareContext' mechanism. I'm using the OpenGL ES instrument to see what's going on and it is reporting that over 2x the number of textures I've actually allocated are resident. In other words...
I'm trying to debug in XCode using the instruments but most of them are not showing any data. I tried this from my home machine and it worked fine, but on my work iMac the following instruments report no data at all:
Activity Monitor
Allocations
Memory Monitor
The Leaks instrument seems to be working fine.
I am developing an iPad a...
Heres the problem. I have an app that is essentially an image gallery, it pulls images down from an xml feed, and archives them locally, then gradually loads 5 images at a time into the scroll view to be displayed.
I have had thousands of problems with using [UIImage imageNamed:...] and NSURLRequest/NSData as both cause the app to cach...
In Xcode3, out of all options under "Run" -> "Run with Performance Tool", I can only select:
Leaks
CPU Sampler
Allocations
Activity monitor
I cannot select any other option including "Zombies", "UI Recorder", etc., or most importantly for me, "OpenGL ES". I think this is consistent in all iOS projects on the machine, but I did not c...