<div dir="ltr">Hi Chris,<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 5, 2014 at 11:17 AM, Chris Muller <span dir="ltr">&lt;<a href="mailto:ma.chris.m@gmail.com" target="_blank">ma.chris.m@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Magma performance is definitely affected by #flush -- it takes care<br>
care to not flush more than once every 5 seconds.<br>
<br>
I want to research whether this will affect that..<br></blockquote><div><br></div><div>I doubt it very much.  David&#39;s fix s to add a flush to nextChunkPut: and nextChunkPut: is used exclusively to write source code to sources/changes files.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
On Mon, May 5, 2014 at 11:48 AM, David T. Lewis &lt;<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>&gt; wrote:<br>
&gt; On Sat, May 03, 2014 at 02:01:57PM -0400, David T. Lewis wrote:<br>
&gt;&gt; On Sat, May 03, 2014 at 11:18:11AM -0500, Chris Muller wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Fri, May 2, 2014 at 4:38 PM, David T. Lewis &lt;<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; On Thu, Apr 10, 2014 at 10:06 AM, David T. Lewis &lt;<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; On Wed, 09 Apr 2014 16:52:54 -0700 David T. Lewis &lt;<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt;&gt; Create a new class, attempt to edit the class comment ==&amp;gt; Error:<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt;&gt; RemoteString past end of file<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt;&gt; Surely I cannot be the first person to have edited a class comment in<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt;&gt; the<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt;&gt; last month or so ... I hope.<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; WriteStream&gt;&gt;nextChunkPut<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; add a self flush at the end will fix it.<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; Discussion several months ago fingered the gcc 4 compiler so something.<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; cheers.<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; tty<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt; Ah, right, thank you! I do recall the discussion now that you mention it.<br>
&gt;&gt; &gt;&gt;&gt;&gt; I use VMs compiled on my own machine, which happens to be a new Ubuntu<br>
&gt;&gt; &gt;&gt;&gt;&gt; system at the moment. It probably has the buggy gcc library.<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt; Thanks a lot,<br>
&gt;&gt; &gt;&gt;&gt;&gt; Dave<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Okay, I was just getting this again in our release image.  Strange --<br>
&gt;&gt; &gt;&gt;&gt; it happens on one laptop but not the other..!  The suggested patch<br>
&gt;&gt; &gt;&gt;&gt; seemed to work for me, don&#39;t we need to push this fix to trunk and<br>
&gt;&gt; &gt;&gt;&gt; squeak45?<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; I should double check to be sure, but I think this was a bug in the run<br>
&gt;&gt; &gt;&gt; time libraries of the operating system, as opposed to something in the VM<br>
&gt;&gt; &gt;&gt; or the image. I can&#39;t say I like the idea of putting a kludge into the<br>
&gt;&gt; &gt;&gt; image to work around a bug in Ubuntu, although it might be worthwhile in<br>
&gt;&gt; &gt;&gt; this case just to prevent new users from having a bad experience.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Come to think of it, we should be able to write a unit test that would<br>
&gt;&gt; &gt;&gt; detect this problem when running Squeak on a buggy OS.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Dave<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt; Strange I encountered the bug on Ubuntu 14.04 instead of 12.04 instead<br>
&gt;&gt; &gt; of the other way around..  Actually not, Ubuntu seems to be getting<br>
&gt;&gt; &gt; worse in some ways..<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; I am having a hard time reducing this problem to something I can put into<br>
&gt;&gt; a unit test. I can&#39;t see any obvious problem in the way the writes are being<br>
&gt;&gt; performed on a file stream, and the actual failure seems to be happening<br>
&gt;&gt; when creating the initial RemoteStream for a class comment. When a new class<br>
&gt;&gt; is created without a class comment, the classComment in the ClassOrganizer<br>
&gt;&gt; is nil. When accepting a new comment in a browser for the first time, a<br>
&gt;&gt; RemoteStream is created to reference the comment that will be saved in the<br>
&gt;&gt; changes file. Something gets out of whack at that point, but I have not yet<br>
&gt;&gt; spotted the cause.<br>
&gt;<br>
&gt; I pushed the fix^h^h^hworkaround for this to the inbox. I bothers me a bit that<br>
&gt; I can&#39;t come up with a reproduceable test case for this, but the change seems<br>
&gt; harmless.<br>
&gt;<br>
&gt; If no objections, this will go into trunk.<br>
&gt;<br>
&gt; Dave<br>
&gt;<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>
</div></div>