• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: R: Running out of VM
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: R: Running out of VM


  • Subject: Re: R: Running out of VM
  • From: Jeff LaMarche <email@hidden>
  • Date: Sun, 25 Dec 2005 14:37:58 -0500


On Dec 25, 2005, at 9:42 AM, Jonathan del Strother wrote:

Perhaps. The only crashes I'm hearing about are from vague descriptions on MacUpdate and through Smart Crash Reports. I'm struggling to actually pin down a reliable user who can reproduce these. However, if I artificially persuade my app to take up an extra couple of gig of memory, things get very, very slow, but I do get crashes looking fairly similar to these users' crashes. So, I'm *guessing* that perhaps the users seeing crashes are running with, say, 256MB of RAM and not much free disk space.

I had something similar to this in an app I wrote a while back. Don't know enough about your situation to know if it might be comparable, but what was happening in mine is that I had code working in a separate thread with its own autorelease pool. Inside the thread, I had a loop which looped through the frames of a movie and processed them in a variety of ways, which ate up memory. Because I had declared my own autorelease pool, my objects, when I was done with them, were not being released and the memory footprint of the app kept growing until it hit the maximum memory for my application.

I resolved the problem by declaring an additional autorelease pool inside my loop, which caused that the memory used while processing a single frame would get released when I was done working with that thread. _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Re: R: Running out of VM (From: Markus Hitter <email@hidden>)
 >Re: R: Running out of VM (From: Alastair Houghton <email@hidden>)
 >Re: R: Running out of VM (From: Jonathan del Strother <email@hidden>)
 >Re: R: Running out of VM (From: Finlay Dobbie <email@hidden>)
 >Re: R: Running out of VM (From: Jonathan del Strother <email@hidden>)

  • Prev by Date: Adding Shadow to NSTextFieldCell text
  • Next by Date: NeXT Pictures from WWDC
  • Previous by thread: Re: R: Running out of VM
  • Next by thread: Re: R: Running out of VM
  • Index(es):
    • Date
    • Thread