Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Your mac os x startup disk has no more space available for application memory

So after running my Objective-C application for about 8 hours, eventually my machine WILL display this error message. But after 24 hours using Instruments, it has only completed about 1% of what the app can do in 8 hours without instruments.

My application basically takes input geometry and creates a navigational mesh.

My question: How can I figure out where my issue is? I'm sure somewhere in my application I'm requesting memory and never freeing it. I ran analyze, which found one leak, but not significant and I've fixed it.

I'm running Instruments right now for allocations/leaks but after 16 minutes I don't see anything glaring (I'm going to let it keep going).

Here is a snapshot of where it's at thus far: Instruments

Anyone have any ideas on how else I can debug this? I'd like to be able to run this for about 20 hours so it can complete vs. it inevitably dying :/

Thanks in advance!

like image 832
Geesu Avatar asked Nov 06 '12 19:11

Geesu


1 Answers

You be leaking the memory like a champ!

  • turn on "only track live allocations" in the Allocations instrument

  • turn on "track reference counting events" (or whatever it is called)

  • re-run your session and sort by the "Overall Bytes" column

  • start at the top, the most memory hungry allocation, and click through the little arrow to see where all those allocations are coming from, continue down the list...

It is a lot like Heapshot analysis and, thus, this weblog article I wrote a while ago might be helpful.

like image 175
bbum Avatar answered Oct 21 '22 17:10

bbum