Well,<br><br>It steadily creeps up in memory used until I have approx 140 mb of free memory on the computer.  And although I noticed that it occasionally flashed all the way down to only 6 - 9 MB of free memory at some points for a flickering moment, when it finally crashed it was listing free memory at around 133 mb.  It took almost two hours for this to occur.  I should note that the Pd-extended 0.41.4 version that is running the camera input/record/pix_share_write runs steadily at 139 MB both during and after the crash.  In fact nothing but the version of Pure Data running video playback crashes....  So, not really sure where things can go from here.  I&#39;m really frustrated that this is happening since PD has always been my go to performer.<br>
<br>J<br><br><div class="gmail_quote">On Fri, Aug 28, 2009 at 1:13 PM, Hans-Christoph Steiner <span dir="ltr">&lt;<a href="mailto:hans@at.or.at">hans@at.or.at</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style=""><div><br></div><div>Check it right before it crashes.  If its not close to 3gb, then its not the 32/64-bit issue that I mentioned.  Since the error mentions <span style="color: rgb(84, 0, 0);">std::bad_alloc, which points to C++.  I&#39;m guessing it might be a Gem bug then.</span></div>
<div><br></div><div>.hc</div><div><div></div><div class="h5"><br><div><div>On Aug 28, 2009, at 12:10 PM, james murray wrote:</div><br><blockquote type="cite">Hi,<br><br> I&#39;m generally around 1.34 GB real memory for PD-Extended running video playback and 139.81 MB real memory for the camera input patch.  (which of course means that I have two versions of PD-Extended running, both are 0.41.4 PD-Extended).  I should note that I&#39;ve got pix_share_read and write objects moving video from one copy of PD to the other... running it into a buffer on the playback patch.<br>
 <br>Virtual memory is 1.52 GB for one version of PD, while the other is at 1.19 GB VM... I&#39;m running one version of PD for the camera and one for the playback.  If other info is needed, I&#39;m happy to supply it.<br>
 <br>Thanks<br>J<br><br><div class="gmail_quote">On Fri, Aug 28, 2009 at 10:56 AM, Hans-Christoph Steiner <span dir="ltr">&lt;<a href="mailto:hans@at.or.at" target="_blank">hans@at.or.at</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 <div><div><br></div><div>Did you run Activity Monitor to see how much memory &#39;pd&#39; is using?</div><div><br></div><div>.hc</div><div><div></div><div><br><div><div>On Aug 28, 2009, at 10:48 AM, james murray wrote:</div>
 <br><blockquote type="cite">I let PD-extended 0.41.4 run again the programming with a reduction from 4 GB of memory to 2 GM of memory... and it returned the same error on both machines... I&#39;m still getting the malloc error.... I&#39;m not really sure what options there are....  Does anyone have ideas about this being a 64 bit to 32 bit issue?  Is there something else to try?  I&#39;m at wits end with PD constantly crashing and while competent in programming, malloc errors are definitely beyond my scope of expertise or knowledge.  Any help would be huge.<br>
 <br>Again, I&#39;m running PD Extended 0.41.4 on It happens every time without variation... I&#39;ve tried it on two machines, one is:<br><br>MacPro Quad-Core Intel Xeon, 2.93 GHz processor, 4 GB memory, ATI Radeon 4870 (the apple tweaked version, not the ATI version), BlackMagic Intensity Pro video card... and it&#39;s mac 10.5.8.<br>
 <br>The other computer is identical, but is running on 10.5.6.<br><br>The error I get is:<br><br>8/25/09 1:38:48 PM    [0x0-0x18018].org.puredata.pd.<div>wish[271]    pd(272,0xa03ce720) malloc: *** mmap(size=4149248) failed (error code=12)    <br>
 8/25/09 1:38:48 PM    [0x0-0x18018].org.puredata.pd.wish[271]    *** error: can&#39;t allocate region    <br>8/25/09 1:38:48 PM    [0x0-0x18018].org.puredata.pd.wish[271]    *** set a breakpoint in malloc_error_break to debug    <br>
 8/25/09 1:38:48 PM    [0x0-0x18018].org.puredata.pd.wish[271]    terminate called after throwing an instance of &#39;std::bad_alloc&#39;</div><br><br>Thanks in advance<br>J<br><br><br><div class="gmail_quote">On Thu, Aug 27, 2009 at 5:46 PM, Hans-Christoph Steiner <span dir="ltr">&lt;<a href="mailto:hans@at.or.at" target="_blank">hans@at.or.at</a>&gt;</span> wrote:<br>
 <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div><br></div><div>FYI, you&#39;ll want to keep this on the pd-dev list.  There are others there who know more about it than me.</div>
 <div><br></div><div>.hc</div><div><div></div><div><div><br></div><div><div>On Aug 27, 2009, at 4:16 PM, james murray wrote:</div><br><blockquote type="cite">Hi,<br><br>I switched out the RAM and replaced the 4 GB with two 1 GB modules.  Unfortunately the same crash happen with the same malloc error.  So, not sure what that means entirely, but, unfortunately it appears to still be an issue.  <br>
 <br>J<br><br><div class="gmail_quote">On Thu, Aug 27, 2009 at 12:53 PM, james murray <span dir="ltr">&lt;<a href="mailto:james.n.murray@gmail.com" target="_blank">james.n.murray@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 That makes sense... I&#39;ll give it a try and sort it out and see what happens...  Thanks for the insight and clarity.<br><font color="#888888"><br>J</font><div><div></div><div><br><br><div class="gmail_quote"> On Thu, Aug 27, 2009 at 12:45 PM, Hans-Christoph Steiner <span dir="ltr">&lt;<a href="mailto:hans@at.or.at" target="_blank">hans@at.or.at</a>&gt;</span> wrote:<br>
 <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div><br></div><div>A 32-bit computer can only handle 3 gigs of RAM.  That&#39;s the big deal with 64-bit computers, they handle a lot more.  While your computer is 64-bit and your OS is 64-bit, the build of Pd you are running is 32-bit.  That means that your Pd cannot use more than 3 gigs of RAM no matter how much is in the machine.</div>
 <div><br></div><div>My guess is that your Pd patch wants to use more than 3gb of RAM, then crashes.  Try running Activity Monitor and seeing how much memory &#39;pd&#39; is using.</div><div><br></div><div>I could be wrong that this is the cuase of hte problem tho...</div>
 <div><br></div><div>.hc</div><div><div></div><div><br><div><div>On Aug 27, 2009, at 1:41 PM, james murray wrote:</div><br><blockquote type="cite"><br>Okay... I&#39;d run across this before when trying to research this issue... Sorry to be so dull-witted about this, but does this mean a physical reduction of my RAM itself from 4 GB to 3 GB? Or am I missing the point and I need to do something else?<br>
  <br><br>Thanks again for looking into this so quickly, I really appreciate it, getting confirmation about all of this is really huge.<br><br>J<br><br><div class="gmail_quote">On Thu, Aug 27, 2009 at 12:27 PM, Hans-Christoph Steiner <span dir="ltr">&lt;<a href="mailto:hans@at.or.at" target="_blank">hans@at.or.at</a>&gt;</span> wrote:<br>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div><br></div><div>So it is not the GUI, but &#39;pd&#39; itself having the issue: pd(272,0xa03ce720)  My guess is that maybe its a 32-bi/64-bit issue.  I think that a 32-bit app can only address 3 gigs of RAM.  Pd is buildable has 64-bit, but there isn&#39;t a release for Mac OS X built as 64-bit yet.</div>
  <div><br></div><div>.hc</div><div><div></div><div><div><br></div><div><br></div><div><div>On Aug 27, 2009, at 12:53 PM, james murray wrote:</div><br><blockquote type="cite">It happens every time without variation... I&#39;ve tried it on two machines, one is:<br>
  <br>MacPro Quad-Core Intel Xeon, 2.93 GHz processor, 4 GB memory, ATI Radeon 4870 (the apple tweaked version, not the ATI version), BlackMagic Intensity Pro video card... and it&#39;s mac 10.5.8.<br> <br>The other computer is identical, but is running on 10.5.6.<br>
  <br>Thanks for getting back to me s quickly... I&#39;ve been definitely hitting my head on this for a few days.<br><br>J<br><br><div class="gmail_quote">On Thu, Aug 27, 2009 at 11:42 AM, Hans-Christoph Steiner <span dir="ltr">&lt;<a href="mailto:hans@at.or.at" target="_blank">hans@at.or.at</a>&gt;</span> wrote:<br>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div><br></div><div>Hmm, never seen that one.  Can you reproduce it, does it happen every time? The &quot;org.puredata.pd.wish&quot; part makes me think that make its the Tcl/Tk GUI side that&#39;s crashing.</div>
  <div><br></div><div>Which exact version of mac os x are you running?  Which hardware?</div><div><br></div><div>.hc</div><br><div><div><div></div><div><div>On Aug 27, 2009, at 12:27 PM, james murray wrote:</div> <br></div>
  </div><blockquote type="cite"><div><div></div><div>Hi List,<br><br>I&#39;m currently running into issues with getting PD Extended 0.41.4 to run on Leopard 10.5. If I let the software run for an extended period of time (say, 30 minutes to a couple of hours) PD/Gem crashes without an error report.  I&#39;m running 1920 x 1080 video playback when this happens and I&#39;ve tested the programming with both two and three layers of video running.<br>
  <br>This is happening on a quad core Intel-Xeon Mac with 4 GB of memory (although the same issue is happening if I cannibalize an additional 4 GB), an ATI Radeon card and Blackmagic Intensity for capture.  While I can&#39;t get an error report from PD/Gem, Console is giving me the following:<br>
  <br>8/25/09 1:38:48 PM    [0x0-0x18018].org.puredata.pd.wish[271]    pd(272,0xa03ce720) malloc: *** mmap(size=4149248) failed (error code=12)    <br>8/25/09 1:38:48 PM    [0x0-0x18018].org.puredata.pd.wish[271]    *** error: can&#39;t allocate region    <br>
  8/25/09 1:38:48 PM    [0x0-0x18018].org.puredata.pd.wish[271]    *** set a breakpoint in malloc_error_break to debug    <br> 8/25/09 1:38:48 PM    [0x0-0x18018].org.puredata.pd.wish[271]    terminate called after throwing an instance of &#39;std::bad_alloc&#39;<br>
  <br>This is definitely not an area that I&#39;m overly familiar/confident about and would really love to have at least some sort of idea of what could be causing this to happen.  This error is the only error I get with my programming and it&#39;s frustrating since I can&#39;t downgrade to Leopard or run it on another operating system.  Any insight into this issue would be greatly appreciated.  I&#39;ve altered my programming dramatically and stripped it down to the bare bones and still, I have this error occuring.<br>
  <br>So, I suppose my question is this... is this a PD/Gem issue with Leopard?  Or something on my side that I&#39;m just not seeing... Any insight into this would be hugely appreciated....<br><br>Thank you,<br>J<br><br>
 <br> <br></div></div> _______________________________________________<br>Pd-dev mailing list<br><a href="mailto:Pd-dev@iem.at" target="_blank">Pd-dev@iem.at</a><br><a href="http://lists.puredata.info/listinfo/pd-dev" target="_blank">http://lists.puredata.info/listinfo/pd-dev</a><br>
  </blockquote></div><br><div> <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><br>
  <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>
  <br></div><div>----------------------------------------------------------------------------<br></div><div><br></div><div>News is what people want to keep hidden and everything else is publicity.          - Bill Moyers</div>
  <br></span></span> </div><br></div></blockquote></div><br></blockquote></div><br></div></div><div> <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>
  <br><div><br></div><div>----------------------------------------------------------------------------</div><div><br style="font-family: Tahoma;"></div><div>                  ¡El pueblo unido jamás será vencido!</div><br>
 </div> </span> </div><br></div></blockquote></div><br></blockquote></div><br></div></div><div> <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><br>
 <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>
 <br></div><div>----------------------------------------------------------------------------</div><div><br></div><div>I have the audacity to believe that peoples everywhere can have three meals a day for their bodies, education and culture for their minds, and dignity, equality and freedom for their spirits.     <span> </span>- Martin Luther King, Jr.</div>
 <br></span></span> </div><br></div></blockquote></div><br> </div></div></blockquote></div><br></blockquote></div><br></div></div><div> <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><br>
 <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>
 <br></div><div>----------------------------------------------------------------------------</div><div><br></div><div>If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of everyone, and the receiver cannot dispossess himself of it.            - Thomas Jefferson</div>
 <br></span></span> </div><br></div></blockquote></div><br> _______________________________________________<br>Pd-dev mailing list<br><a href="mailto:Pd-dev@iem.at" target="_blank">Pd-dev@iem.at</a><br><a href="http://lists.puredata.info/listinfo/pd-dev" target="_blank">http://lists.puredata.info/listinfo/pd-dev</a><br>
 </blockquote></div><br></div></div><div> <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>
 <br><div><br></div><div>----------------------------------------------------------------------------</div><div><br></div><div>Terrorism is not an enemy.  It cannot be defeated.  It&#39;s a tactic.  It&#39;s about as sensible to say we declare war on night attacks and expect we&#39;re going to win that war.  We&#39;re not going to win the war on terrorism.        - retired U.S. Army general, William Odom</div>
 <br></div></span> </div><br></div></blockquote></div><br></blockquote></div><br></div></div><div> <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><br>
<span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>
<br></div><div>----------------------------------------------------------------------------</div><div><br></div><div>Looking at things from a more basic level, you can come up with a more direct solution... It may sound small in theory, but it in practice, it can change entire economies.<span> </span>    - Amy Smith</div>
<br></span></span> </div><br></div></blockquote></div><br>