<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: Max crash in getbytes</title>
		<atom:link href="http://cycling74.com/forums/topic/max-crash-in-getbytes/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/max-crash-in-getbytes/feed</link>
		<description></description>
		<pubDate>Thu, 20 Jun 2013 02:29:31 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/max-crash-in-getbytes/#post-33218</guid>
					<title><![CDATA[Max crash in getbytes]]></title>
					<link>http://cycling74.com/forums/topic/max-crash-in-getbytes/#post-33218</link>
					<pubDate>Sat, 11 Aug 2007 20:24:51 +0000</pubDate>
					<dc:creator>Peter Castine</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>While working on a large patch, the following sequence crashes Max pretty reliably: close patch, re-open, crash. The crash is always in getbytes(), with a log as follows</p>
<p>Thread 0 Crashed:<br />
0   com.cycling74.MaxMSP46         	0x00067c8f memoryheap_getbytes(_memoryheap*, short) + 171 (utilities.c:260)<br />
1   com.cycling74.MaxMSP46         	0x00067e2c getbytes + 42 (utilities.c:232)<br />
2   com.cycling74.MaxAPI           	0x01809b02 getbytes + 38<br />
3   com.cycling74.zl               	0x16e95e8d zl_new + 126<br />
[schnipp]</p>
<p>I don&#8217;t actually believe that zl is buggy, but suspect that some object is incorrectly deallocating memory when I close my patch.</p>
<p>The culprit could be anywhere in 500MB in subpatches using about 200 externals. Even a binary search is going to be pretty tedious. Does anyone have suggestions for tracking down getbytes/freebytes misbehavior more efficiently. I have the Apple developer tools installed.</p>
<p>I&#8217;d be happy to send a complete crash log, but if I&#8217;m right and the real problem is occurring microseconds before the crash, then it&#8217;s probably moot.</p>
<p>Thanks for any ideas,</p>
<p>P.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/max-crash-in-getbytes/#post-110379</guid>
					<title><![CDATA[Re: Max crash in getbytes]]></title>
					<link>http://cycling74.com/forums/topic/max-crash-in-getbytes/#post-110379</link>
					<pubDate>Sun, 12 Aug 2007 01:52:15 +0000</pubDate>
					<dc:creator>Olaf Matthes</dc:creator>

					<description>
						<![CDATA[
						<p>
Am 11.08.2007 um 22:24 schrieb Peter Castine:</p>
<p>> I don&#8217;t actually believe that zl is buggy, but suspect that some  <br />
> object is incorrectly deallocating memory when I close my patch.<br />
><br />
> The culprit could be anywhere in 500MB in subpatches using about  <br />
> 200 externals. Even a binary search is going to be pretty tedious.  <br />
> Does anyone have suggestions for tracking down getbytes/freebytes  <br />
> misbehavior more efficiently. I have the Apple developer tools  <br />
> installed.<br />
><br />
> I&#8217;d be happy to send a complete crash log, but if I&#8217;m right and the  <br />
> real problem is occurring microseconds before the crash, then it&#8217;s  <br />
> probably moot.</p>
<p>Hi Peter,</p>
<p>I have run into similar things before. This crashlog usually  <br />
indicates that there is a memory leak somewhere in on of the  <br />
externals being used, usually not the one that is actually crashing.  <br />
But this is what you already gussed.<br />
The only solution I know of is stripping down the patch be removing  <br />
one third-party external after the other until the problem goes away.  <br />
But since removing externals will render parts of the pach non- <br />
functional this will not necesserrally tell you who is the culprit.<br />
One thing that might help is observing when the crash happens. Since  <br />
you say it happens when you reload a previously opened patch I would  <br />
guess there is an external not freeing it&#8217;s memory correctly or at  <br />
least not doeing it&#8217;s cleanup in the right way. So maybe just  <br />
reopening each help patch for all the externals you use tells you  <br />
which external doesn&#8217;t like to be reloaded?</p>
<p>Olaf</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/max-crash-in-getbytes/#post-110380</guid>
					<title><![CDATA[Re: Max crash in getbytes]]></title>
					<link>http://cycling74.com/forums/topic/max-crash-in-getbytes/#post-110380</link>
					<pubDate>Tue, 14 Aug 2007 14:26:29 +0000</pubDate>
					<dc:creator>Peter Castine</dc:creator>

					<description>
						<![CDATA[
						<p>My problem seems to have stemmed from fiddle~.</p>
<p>To be precise: several fiddle~ objects without explicit initialization arguments.</p>
<p>Simply instantiating [fiddle~] w/out arguments used to do what one would expect: silently use sensible defaults. But at some stage (v1.2?) I started getting non-silent correction (ie, error messages about invalid npoint) and since updating to Max/MSP 4.6.3 I started getting the crash behavior described previously. Using an explicit first argument, as in [fiddle~ 1024] seems to solve the problem.</p>
<p>Who is actually maintaining the MSP version of fiddle~ nowadays? I would just like to send whomever a heads-up about the issue.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

