{"id":6763,"date":"2014-04-23T02:59:53","date_gmt":"2014-04-23T02:59:53","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/iosmemorycrashinstrumentsprofilerrelated-issues-collection-of-common-programming-errors\/"},"modified":"2014-04-23T02:59:53","modified_gmt":"2014-04-23T02:59:53","slug":"iosmemorycrashinstrumentsprofilerrelated-issues-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/iosmemorycrashinstrumentsprofilerrelated-issues-collection-of-common-programming-errors\/","title":{"rendered":"ios,memory,crash,instruments,profilerRelated issues-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/52a2ffb44b1c11ab9001cb67e0a0021c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBrad Larson<br \/>\nios core-graphics cgbitmapcontext<br \/>\nif I&#8217;ll test a function of my app in the ios-simulator the simullator crashes. This is the error: Apr 12 22:18:57 Pattis-MacBook-Pro.local CameraAPP[12374] : CGBitmapContextCreateImage: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.Hope<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/d1c5a.jpg?s=32&amp;g=1\" \/><br \/>\nAmar<br \/>\nios xcode5<br \/>\nMy application is properly working on iPad and simulator. It doesn&#8217;t show any error and builds successfully.Problem: When I am archiving my project it&#8217;s giving me this error.\/Users\/synapse\/Desktop\/myProject\/myProject_Prefix.pch:15:13: fatal error: &#8216;BoxSDK\/BoxSDK.h&#8217; file not found #import &lt;BoxSDK\/BoxSDK.h&gt;^ 1 error generated. Command \/Applications\/Xcode5-DP3.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/bin\/clang failed with exit code 1How can I resolve this issue?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3cff5b26601caf848f016f2f5083fae3?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nuser3344322<br \/>\nios objective-c<br \/>\nI&#8217;m using this code for hide focus on UITextField:-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{[CampoDeTexto resignFirstResponder]; }When I click on the screen, the code hide the virtual keyboard, but when I click in the UITextField I receive this messange:UITextField[1260] : CGContextSetBlendMode: invalid context 0x0.This is a serious error. This application, or a library it uses, isusing an invalid context and is thereby contributing to an overalldegradation of system stabi<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/50d9c49c4cc22aef5eea2e42f793331a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nneilco<br \/>\nios objective-c<br \/>\nI have been working on this project for the last week and everything has been running fine in the simulator. Just this evening when I went to run it, I got this whole raft of brand new errors, and the only code that I have added since the last smooth build \/ simulation was the following to add a dictionary from a file that I just created. I am definitely in the steep part of the learning curve on Objective-C and Xcode, and these errors do not ring a bell at all because I haven&#8217;t used any of the<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/361PK.jpg?s=32&amp;g=1\" \/><br \/>\nshaik riyaz<br \/>\nios objective-c xcode core-data<br \/>\nThe Xcode compiler keeps on telling me that I am missing a bracket before the F in FATAL (error commented out), but I can&#8217;t make sense of this. Can you tell me what&#8217;s missing or needs to change?-(void)viewDidLoad {\/\/ 1NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];\/\/ 2NSEntityDescription *entity = [NSEntityDescriptionentityForName:@&#8221;Location&#8221;inManagedObjectContext:self.managedObjectContext];[fetchRequest setEntity:entity];\/\/ 3NSSortDescriptor *sortDescriptor = [NSSortDescriptor so<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0dd6ac4bc51b19c9c70108590056a7d9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1134797<br \/>\niphone ios gcc monotouch<br \/>\nI have developed a MonoTouch iPhone application. Currently it works by parsing a large amount of xml data that generates all of my objects. I tried to improve the start speed by serialising these objects and storing in an sql lite database. But this was actually slower. What I have done instead is to write a program that pre-parses this xml and in turn writes out class files that can simply be compiled and the objects instantiated at runtime.This works and is a huge speed increase, but I can on<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/bbc6ef7d2a8388ac327dd3fb230a915e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nconnor<br \/>\nios xcode facebook cordova sdk<br \/>\neveryone!So&#8230; I just made an app using cordova to compile an xcode project. Ok.The app works fine, when the facebookSDK.framework isn&#8217;t in the project. The pages does not load just because the user has to be logged into facebook. Whatever&#8230; But when I insert the facebookSDK.framework (downloaded from developers.facebook.com), I got a Build Fail and the following error:ld: 475 duplicate symbols for architecture i386clang: error: linker command failed with exit code 1 (use -v to see invocation)I<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0bfba0ecbddd589e61c0a023f7605dd5?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\niOS<br \/>\niphone ios xcode<br \/>\ni am working on iphone app, at once it started showing me error, with no exception, i am really afraid of this error, can any one tell me why this is happening?&lt;Error&gt;: CGContextSaveGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming up<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/368fb99f86e2264ceec0539a3746b9d3?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJules<br \/>\nios objective-c cocoa-touch<br \/>\nI&#8217;m getting the following error from the code below and I&#8217;m not sure why.Fatal Exception NSRangeException -[__NSCFString replaceOccurrencesOfString:withString:options:range:]: Range {0, 7} out of bounds; string length 6I wondered if someone could explain ?Is it just that I need to new NSRange variable to cater for the different string length ?+(double)removeFormatPrice:(NSString *)strPrice {NSNumberFormatter *currencyFormatter = [[NSNumberFormatter alloc] init];[currencyFormatter setNumberStyle:<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1f02b85dadcbeaf373860d3b4de743fe?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJuan David Saab<br \/>\nios cordova xcode5 phonegap-build command-line-tool<br \/>\nI installed NodeJS and phonegap to start working on version 3.0. The first time I tried, I successfully run the sample app on the iOS simulator. Later I try to replace the contents of the \/www directory on the Xcode project and it never runs again. Since that I have tried to build the sample &#8220;Hello World&#8221; a lot of times but I always got this error:In file included from \/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneSimulator.platform\/Developer\/SDKs\/iPhoneSimulator7.0.sdk\/System\/Libra<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/127de007b889b1675e3be5af84f5ee5a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nIason<br \/>\ndatabase wordpress memory<br \/>\nFatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 81 bytes) in \/public_html\/wp-includes\/functions.php on line 3559Has anybody any idea what this could be and why it appears when I hit the login button on the WordPress admin panel? Also the website doesn&#8217;t behave like before, it seams like the database is corrupted or something is terribly broken. It shows only the front page correct moste other pages are broken?I found some more error&#8217;s no idea what the error is ab<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d2eca1389cbe85c56db4367a7e2c8483?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nNoam<br \/>\nphp memory<br \/>\nThis question already has an answer here:PHP: Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted (CodeIgniter + XML-RPC)11 answersI&#8217;m getting this error Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4194304 bytes)How come he tried to allocate 4194304 (which is smaller than the limit he specifies 134217728) and is exhausted?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8b128bd0ec9a4f124d1557195775bbc2?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTorrrd<br \/>\nphp memory amazon-s3<br \/>\nOk, I know how this question has been asked and all. But, heres the thing.I&#8217;m already using ini_set(&#8216;memory_limit&#8217;, &#8216;400M&#8217;); The file I&#8217;m trying to transfer (to Amazon S3) is 245MB The error msg is weird, says allowed mem of 400MB exhausted when it was trying to allocate 239MB.. isnt that the other way round?The script I&#8217;m using is a library out there, to communicate with the Amazon S3Help please!EDIT Ok heres the code, as you can see I&#8217;m not doing much, its all about the script I&#8217;m using.. That<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e2f0a7ce7f735c126236e53a954c65dc?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nEugene Shmorgun<br \/>\nmemory joomla<br \/>\nI have site on Joomla, which was installed from another server : I copied all files, transfered their to var\/www and discovered. After this I add MySQL-dump from another server to new MySQL database. That&#8217;s OK &#8211; I can enter to admin-panel and even see the my materials that I need.But when I try to see the site &#8211; I found 500 Error, that was misundstanding for me. Then I added ini_set(&#8216;display_errors&#8217;,&#8217;On&#8217;); error_reporting(E_ALL); to index.php to check what&#8217;s happenng with my site and was shocke<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3cf7a8ab0bccee5b65d39b50a170a555?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nOcramius<br \/>\napache memory heap fatal-error<br \/>\nSince today all websites that are running on our Linux VPS are randomly showing an error like:Fatal error: Out of memory (allocated 12345) (tried to allocate 123456789 bytes) in \/home\/path\/file.ext on line 123When refreshing the page it disappears and everything seems to work fine again. But after a while it shows up again.The error log of Apache:[Fri Feb 15 16:21:07 2013] [error] (12)Cannot allocate memory: fork: Unable to fork new process[Fri Feb 15 16:21:17 2013] [error] (12)Cannot allocate m<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6aeaf34ff1ac23c1c4f566e87f59553a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBurhan Ali<br \/>\nphp memory csv memory-management phpexcel<br \/>\nIm trying to implement Converting single sheet in an XLS file to CSV with PHPExcel &#8211; Memory exhausted but im still running into memory problems.Think @BT643 code &#8211; which I used &#8211; includes most of the golden rules explained by @Mark Baker in various posts compiled in his answer (phpexcel Allowed memory size of 134217728 bytes exhausted).My excel file has 61 columns and about 8000 lines, so some half a million cells. Size 5561KB. I would not expect it require reading &#8220;chunks&#8221;.What am I missing?Her<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/nZEUQ.png?s=32&amp;g=1\" \/><br \/>\nPeeHaa<br \/>\nimage wordpress memory php<br \/>\nPlease can you help me. I&#8217;ve got this fatal error in WordPress. My site has been on for years and worked until a few days ago, This happened when I updated the network and my wordpress multi user install? It only does it on the main site, as it works fine on the sub sites.Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 4890018 bytes) in \/home\/artygirl\/public_html\/wp-includes\/media.php on line 258It can&#8217;t be the memory limit as I fixed that ages ago.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d763dd2245c721b5d41f92b2dbaae934?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nKenny<br \/>\nphp memory ini sqlanywhere<br \/>\nAt first, I&#8217;ve already looked at this, this and this.I&#8217;ve received the following error:Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 220 bytes)I&#8217;m working with php 5.4and sql Anywhere 11.The solution to this is according to this is putting ini_set(&#8216;memory_set&#8217;,-1); in my php-file, but after doing this I get another error:Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 3 bytes)EDIT: my code is&lt;?phpini_set(&#8216;memory_set&#8217;,-1);$con<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3c448146cc10087c31a564800bdb6ca6?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nanimuson<br \/>\nphp memory<br \/>\nPossible Duplicate:Allowed memory size of 33554432 bytes exhausted (tried to allocate 43148176 bytes) in php Hi,In my php page, I got the error as follows,Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) I tried to set memory limit using ini_set(&#8216;memory_limit&#8217;, &#8216;128M&#8217;);But still I got the error.Any help would be really appreciated.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/96a2256f25725459fd851a4c0833971f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAdham<br \/>\nphp algorithm memory<br \/>\nI am using Dijkstra algorithm in PHP. But I got this error Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 35 bytes) in C:\\AppServ\\www\\direction\\dijkstra.php on line 100how can I optimize this algorithm to reduce memory consumption &lt;?php ini_set(&#8216;memory_limit&#8217;, &#8216;1M&#8217;); \/\/Raise to 512 MB ini_set(&#8216;max_execution_time&#8217;, &#8217;60&#8217;); \/\/Raise to 512 MB class Dijkstra { var $visited = array(); var $distance = array(); var $previousNode = array(); var $startnode =null; var $<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/graph.facebook.com\/100000416889610\/picture?type=large\" \/><br \/>\nkaichi<br \/>\ncrash catalyst xserver vga floating-point-exceptions<br \/>\nI&#8217;m not really sure, but i think the problem is in VGA driver (AMD Catalyst). Everytime i drag something like, i try to change positions of docky application launcher to left or right or to erased the application launcher, and when i want to create buttons or other things (make an application) with drag the widget list on palette (in this case with Eclipse)http:\/\/i.imgur.com\/eJQoqb2.pngJust for Docky and Eclipse that caused my screen will be logout suddenly (X server crashes) when i dragged (lik<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/252cbfab6634a22f9b1e3c407b4a6f28?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1344545<br \/>\njava android crash deserialization kryo<br \/>\nI used normal serializing and deserializing so far, which worked fine in my Android Project. I now like to use kryo serializing\/deserializing to have better performance. I simply changed my code to use kryo. Following code I use and seems to works and my object (ThemeCache) is properly deserialized. I can see the data in debugmode. but after some miliseconds during a Log.v(&#8220;DEBUG&#8221;,&#8221;deserialized&#8221;) statement I get a 04-17 07:24:28.609: A\/libc(12577): Fatal signal 7 (SIGBUS) at 0x00000000 (code=12<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a9f437c2cfc04c49ba437dd5985363f7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJoris Weimar<br \/>\nandroid crash drawing samsung-mobile android-4.3-jelly-bean<br \/>\nI get a Fatal signal 11 (SIGSEGV) code=1 whenever I draw a filled polygon that crosses the screen bounds. This happens on OS 4.3 on a Samsung Note 10.1. What could cause this? I assume the OS should be able to clip polygons.The offending code:public SplashStarShape(Context context, int x, int y, int size) {super(context);paint = new Paint();star = new Path();star.setFillType(Path.FillType.WINDING);paint.setAntiAlias(true);paint.setStrokeWidth(DS.scale(10));paint.setColor(EslColors.WHITE);int k =<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0d30dfb4a79fbeb45242979f90aa4cd5?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSoapBox<br \/>\niphone objective-c crash<br \/>\nI&#8217;m writing an iPhone App with a webserver in it. To handle a web request, I take the web request and write() to it the data that I want to send back.When I try to download a moderately sized file (3-6MB) it works fine, but if I cancel the download halfway through, the app crashes and leaves no trace of an error. I&#8217;m thinking that the file descriptor becomes invalid halfway through the write, and causes the crash. I really don&#8217;t know if this is what causes the crash, i&#8217;m just assuming.I&#8217;m basing<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/577576590cafc0aba2f3708855bb6876?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nuser2812829<br \/>\nandroid c memory crash android-ndk<br \/>\nI am using this project to code a music streaming-application on android devices: https:\/\/github.com\/spotify\/psyonspotifyUnfortunately, my app crashes randomly. I have tried to debug the c-code with ndk-stack. According to the output the problem lies in the following line:assert(SL_RESULT_SUCCESS != result);(l.92 in sounddriver.cpp). I have tried to change and\/or comment this line out, but the error still remains&#8230;It seems to be some kind of problem related to incorrect memory allocation but it<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f90a75032f542f11befc936bfd27e614?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBryce Thomas<br \/>\nkernel-panic crash<br \/>\nI&#8217;m running an Ubuntu 12.04 machine with an Intel i7 CPU. Every now and then, it freezes up completely &#8212; the machine and display stay on for a minute or so, the audio that was playing (if any happened to be playing) starts looping and then it reboots. While this typically happens under moderate to high load, it also happens occasionally when nothing is running. The crash occurs regardless of whether the Intel XMP 1333 MHz boosted to 1600 MHz memory setting is turned on in the BIOS. I haven&#8217;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2d9356fed01ef70e512fbbcee3095f9a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\npranay<br \/>\njava memory-leaks crash stack-trace jre<br \/>\nI am using an open source JAVA based crawler which juggles millions of URI objects between the memory and disk. Basically the program is memory intensive. The crash occurs once in a blue moon, I haven&#8217;t been able to find the reason.Pasting a part of the error-log, any pointers what possibly is causing this?# A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00002b97ee1a07df, pid=1445, tid=1102055744 # # JRE version: 6.0_18-b07 # Java VM: Java HotSpot(TM)<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/587c0207612ea3cdcca321f56906b373?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmagicandre1981<br \/>\nwindows-7 memory crash<br \/>\nJust bought this PC used from a guy, it has the following config:AMD FX-8120 HD 7850 2GB Core Edition (4x) OCZ Gold Edition 2GB DDR3 1066Mhz Asus M5A78L LEThis PC should run games like GTA IV and Skyrim without lag, according to benchmarks. But it lags. It&#8217;s playable, but there&#8217;s a LOT of FPS drops everytime. Temperatures are low. This is my first issue. The second is the random crashes.Ran MemTest for 10 hours, results:THE BSOD that pops up from time to time:MEMORY_MANAGEMENT (most frequent) IR<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/616f7a1cbb20fe949d883393657c039a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJan Hudec<br \/>\nwindows crash<br \/>\nI have a windows service (CI server) that runs some programs. They have console output (captured by the service), but some are console or gui depending on options and most display the standard system &#8220;fatal application error&#8221; dialog if they crash.Now when running from the service, something occasionally hangs. Is there:A way to find whether it crashed and is hanged in the &#8220;fatal application error&#8221; dialog? A way to prevent those dialogs and have the application instead simply return with non-zero<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/acd6c34bf8bc793b8e6faa1fc5804c6d?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nDGDD<br \/>\nlion macbook-pro crash<br \/>\nOut of nowhere, my MacBook Pro 2011 unibody running 10.7.5 began to crash. After the crashes, in the boot sequence you could see very thin horizontal red lines. The red lines were so thin that I can&#8217;t take a picture as the lines won&#8217;t show up in photos. While you could see the red lines across the screen, the computer will not boot up, not even to recovery. After leaving the computer off for a few hours, it will boot-up like nothing happened.After diagnosis of the whole comp, it turned out I had<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/53b57a892e7255ed19bb499aa8202f77?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nuser2713004<br \/>\nios testing air automation instruments<br \/>\nI have an AIR application, that I can package and install and run on the iPhone simulator via the ADT&#8217;s.I want the use the xcode instruments automation, however, when I target the MyApp.app file that was packaged for the simulator, it will not work. ANY HELP WILL BE GREAT.Here is some info on what happens when the instruments trys to run:info: [INST STDERR] 2013-10-10 13:11:00.320 instruments[4735:707] * Assertion failure in -[UIAInstrument _startAgentForApp:withPID:], \/SourceCache\/AutomationIn<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/Hs3uM.jpg?s=32&amp;g=1\" \/><br \/>\nMark Bernstein<br \/>\nxcode cocoa debugging instruments<br \/>\nFrom time to time, one of my apps experiences a delay of 2-10sec whilst dragging an object in a complex view. In some cases, the delay is sufficient to cause the wait cursor (spinning pizza of death) to appear.Time Profiler reveals nothing very remarkable &#8212; just the expected drawing calls to update the view as the object is dragged. (This is a lot of computation, but I see no obvious difference in the profile during pauses and between pauses.)Memory profiler reveals nothing special about the pa<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/dc18a7074ca1d3f16d35f1a86c3a87c1?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nnschum<br \/>\niphone ios4 instruments ios-ui-automation<br \/>\nI 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\/Framework\/UIATargetElements.m line 437,Here is the &#8220;Script&#8221; I was trying to runfunction iDontDoAnything() {var target = UIATarget.localTarget();var app = target.frontMostApp();var<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c7ed65fb7a7bfd0365aa6c329d6048ad?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nbenwad<br \/>\niphone objective-c memory-management memory-leaks instruments<br \/>\nFrom using the Allocations instrument to track my app&#8217;s memory usage I&#8217;ve noticed that throughout the runtime of the app the memory usage keeps going up. Looking through the heapshots I can see that the largest chunks of memory are being allocated by a method called CJPEGCreateImageDataWithData in the library GMM. I can&#8217;t find anything online about this happening, but it certainly looks like this is responsible for my app&#8217;s memory-hogging. Here&#8217;s a screenshot of the pertinent part of the Allocat<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/15818a82d5e6bc2172da8650f96c4928?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nqnoid<br \/>\nlinker clang instruments<br \/>\nclang &#8211;versionApple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)Target: x86_64-apple-darwin13.0.0Thread model: posixI&#8217;m looking to compile a file linking it against a &#8220;plugin&#8221; under \/Applications\/Xcode.app\/Contents\/Applications\/Instruments.app\/Contents\/PlugIns\/Running file \/Applications\/Xcode.app\/Contents\/Applications\/Instruments.app\/Contents\/PlugIns\/MemoryPlugin.bundle\/Contents\/MacOS\/MemoryPluginReturns \/Applications\/Xcode.app\/Contents\/Applications\/Instruments.app\/Contents\/PlugIns\/<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/5874df7e73b4aec91c6599d53cb30eb1?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nStan Sieler<br \/>\niphone console leak instruments xcode-instruments<br \/>\nI&#8217;m running the Mac OS &#8220;Instruments&#8221; app, using the &#8220;Leaks Instrument&#8221; to monitor an iPhone app. The major pane is titled &#8220;Leaked Blocks&#8221;, but if you click on that you get a choice of three: &#8220;Leaked Blocks&#8221;, &#8220;Call Tree&#8221;, and &#8220;Console&#8221;. Click on &#8220;Console&#8221;.You now have a blank pane &#8230; click in it and hit . In my case, I get:foo (4259) &gt;which is my app name and, presumably, the PID it&#8217;s running as.I can enter commands\/text (e.g., ls, help, exit) &#8230; they get echoed after awhile but nothing else<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6d53507494cadf3a930696364e634992?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDan Abramov<br \/>\nmonotouch instruments xamarin dsym<br \/>\nI want to profile a MonoTouch application in Instruments without an iPad. I am able to profile an app compiled for Simulator but it&#8217;s no fun without the symbols:There is no option to generate IPA with dSYM in project build settings-looks like they&#8217;re only available when compiling for the device.All I want is a MonoTouch-aware dSYM for Simulator. Is this possible?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9207dac1a08f23791251e6170b787646?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmiddaparka<br \/>\niphone xcode profiling instruments<br \/>\nI&#8217;ve been experimenting with Instruments off and on for a while and and I still can&#8217;t do the following (with any sensible results): determine or estimate the average runtime of a function that&#8217;s called many times.For example if I&#8217;m driving my gameLoop at 60 Hz with a CADisplayLink I&#8217;d like to see how long the loop takes to run on average&#8230; 10 ms? 30 ms etc. I&#8217;ve come close with the &#8220;CPU activity&#8221; instrument but the results are inconsistent or don&#8217;t make sense. The time profiler seems promisi<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9d089cbc72ff8d846459129d150978e1?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJojas<br \/>\nobjective-c ios xcode testing instruments<br \/>\nI wonder how the professional application that provided to customer is such elegant , smooth and less or no application crash. because I always see the problem is mostly about memory leaking, NSZombie or not good enough performance.I see it&#8217;s great to fix some problem with Instruments Tool. But I just be familiar with memory leaks and zombie template. Of course, I think there are other interesting tool to trace and fix our application better. (System usage, Automation Testing, etc.. Any ideas?)M<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8fa2ee57b716de0997bc6b133ea5f1e9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ndommer<br \/>\niphone profiling monotouch instruments<br \/>\nI&#8217;m trying to use Instruments to look at resource usage in my Monotouch app. However, I can&#8217;t get the app to launch through Instruments.When I hit the record button in Instruments, the app launches on my iPhone, buzzes (signifying it&#8217;s a debug build), then crashes &#8211; and Instruments reports:Target failed to run: Remote exception encountered : &#8216;Failed to get task for pid 384&#8217;The app runs fine when I launch it directly on the phone.I&#8217;ve tried it with debug builds and ad hoc builds (using the parame<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c9e92e0aad97e560d8674d3e9010db7e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nGeeKay<br \/>\njava multithreading profiler jconsole jstack<br \/>\nI am trying to profile my java application running on eclipse using &#8216;jconsole&#8217;. But i am unable to do so and i get the following exception Exception in thread &#8220;VMPanel.connect&#8221; java.lang.InternalError: Remote thread failed for unknown reasonat sun.tools.attach.WindowsVirtualMachine.enqueue(Native Method)at sun.tools.attach.WindowsVirtualMachine.execute(WindowsVirtualMachine.java:96)at sun.tools.attach.HotSpotVirtualMachine.executeCommand(HotSpotVirtualMachine.java:217)at sun.tools.attach.HotSpot<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/78a0a4bb106d07b6c6f33a51988155e3?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nPeter Mortensen<br \/>\nc++ visual-studio-2008 profiler<br \/>\nAre there any good, free (or at least reasonably cheap) profilers for at least native C++ that can integrate with Visual Studio 2008 Professional?I looked at DevPartner community edition but they seem to only support Visual Studio 2003 and Visual Studio 2005.Failing that are there any good free\/cheap profilers in general that I can get working with VS with relativly little friction?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/76aa5ba88e0d95b6480113239fe50008?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ndjechlin<br \/>\njava profiler<br \/>\nI run:~\/dan\/java\/hello $ java -javaagent:shiftone-jrat.jar -cp &#8216;..&#8217; hello.helloand get (within longer trace output):Exception in thread &#8220;main&#8221; java.lang.VerifyError: Expecting a stackmap frame at branch target 35 in method hello.hello.main([Ljava\/lang\/String;)V at offset 14at java.lang.Class.getDeclaredMethods0(Native Method)at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)at java.lang.Class.getMethod0(Class.java:2685)at java.lang.Class.getMethod(Class.java:1620)at sun.launcher.Launc<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/29bba377a2365fdd0db216c0aab942b2?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAlex Glazunov<br \/>\njava profiler<br \/>\nI&#8217;m just curious really, there doesn&#8217;t seem to be any counter arguments. So should a profiler be used for everything? I&#8217;d imagine the performance gain would require make it beneficial every time.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d324c86fa21fc9b2087dac11d1c3ec29?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMaxim Veksler<br \/>\njava profiler ctags dynamic-invoke<br \/>\nToday&#8217;s world of dynamic invoke, reflection and runtime injection just doesn&#8217;t play well with traditional tools such as ctags, doxygen and CDOC.I am searching for a method call hierarchy visualization tool that can display both static and dynamic method invocations. It should be easy to use, light during execution and provide helpful detailed information about the recorded runtime session.Now I guess Callgrind could be considered a valid solution for the family C.What tool \/ technique could you<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ec9385dc533f1a6a93769077f852503e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nunwind<br \/>\nprofiler<br \/>\nI need a tool to measure a program&#8217;s running time, like gprof. But the resolution of gprof is not good enough (about 0.01 second). oprofile seems can do it, I will try to learn how to get the data about the time info, but I can&#8217;t.So, who can tell me the steps how to do it, or anyone knows other tool can do the same thing?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/34c71224eb79c521621d17b07bc43f2f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nthkala<br \/>\njava profiler hprof<br \/>\nI am trying to selectively monitor\/profile a Java application when certain runtime conditions are met. I am already able to dump the heap on-the-fly using the HotSpotDiagnosticMXBean, which has been quite useful.I am now trying to do something similar with CPU profiling, hoping to more effectively target specific code paths. I have some experience with the command-line HPROF interface and the NetBeans profiler, but both need to be started beforehand.Is there a way to activate the HPROF profiler<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/eca2f62e2552d985611fc192b664d0fa?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nL\u00e1szl\u00f3 Citrus Nagy<br \/>\nc profiler<br \/>\ncan you tell me please, what is wrong with this code http:\/\/pastebin.com\/A2upK4Lx? Cause it gives me Runtime: 0.00000, and that is weird, because I didnt spot an error there. Is it possible, that the code is fine, but the code executes so fast, that even C cant print it out (but I think that is highly unlikely)?thank you guys for answer.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/69e56ba57db6774aa70eca1d8d5684aa?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJimbo<br \/>\nsql sql-server-2008 profiler sqlprofiler<br \/>\nI have to debug a long running SQL Server stored procedure which dynamically builds and executes queries at runtime. I want to run a trace so I can see all of the individual pieces of SQL that are executed.Which events will provide that level of detail?I&#8217;ve been advised to use Stored Proc: RPC Completed; Batch Completed and Batch Started. But that&#8217;s only bringing back the initial execution statement. ie. literally &#8220;exec MyStoredProcName&#8221;.Any ideas?Thanks In Advance.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/61d2a0f034915fa9d2acd6f6b145bba8?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJoel Coehoorn<br \/>\nc++ .net profiler<br \/>\nI run Windows XP SP3 on my virtual machine. There I use Visual C++ Express a CLR profiler for .net 2.0 I run x86 profiler(choosing between x86 and x64), choose simple Visual C++ application which outputs 1000 times &#8220;Hello world&#8221; string.What the profiler does is shows the message &#8220;Waiting for application to start command language runtime&#8221; and nothing more.So, what&#8217;s the problem?<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Brad Larson ios core-graphics cgbitmapcontext if I&#8217;ll test a function of my app in the ios-simulator the simullator crashes. This is the error: Apr 12 22:18:57 Pattis-MacBook-Pro.local CameraAPP[12374] : CGBitmapContextCreateImage: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6763","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6763"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6763\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}