<div dir="ltr">Hi Yuriy, Hi Esteban,<div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 22, 2016 at 12:17 AM, Yuriy Tymchuk <span dir="ltr">&lt;<a href="mailto:yuriy.tymchuk@me.com" target="_blank">yuriy.tymchuk@me.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> <br><div style="word-wrap:break-word"><div>The script can be still used to reproduce the issue with the latest vm</div><br><div><blockquote type="cite"><div>On 07 Mar 2016, at 22:32, Yuriy Tymchuk &lt;<a href="mailto:yuriy.tymchuk@me.com" target="_blank">yuriy.tymchuk@me.com</a>&gt; wrote:</div><br><div><div style="word-wrap:break-word">Dear vm developers,<div><br></div><div>I’ve encountered multiple times an issue when my images cannot be opened after saving (only on spur). I think that this happens when image is large, and the following script results in a corrupt image almost 100%:</div><div><br></div><div><br></div><div><div>curl <a href="http://get.pharo.org/50+vm" target="_blank">get.pharo.org/50+vmLatest</a> | bash</div><div><br></div><div>./pharo Pharo.image --no-default-preferences eval --save \</div><div>  &quot;Smalltalk globals at: #ReallyBigArray put: (ByteArray new: 1024*1024*1000). &#39;Done&#39;&quot;</div><div><br></div><div>./pharo Pharo.image printVersion</div></div><div><br></div><div><br></div><div>The last line is there just to make image do something and for me it fails all the times. I hope that this can help to troubleshoot the issue with the vm.</div><div><br></div><div>Also here are my system &amp; hardware specs:</div><div><br></div><div><div style="margin:0px 0px 0px 160.7px;font-size:11px;line-height:normal;font-family:&#39;Helvetica Neue&#39;">System Version:<span style="white-space:pre-wrap">        </span>OS X 10.11.3 (15D21)</div></div><div><div style="margin:0px 0px 0px 140.5px;font-size:11px;line-height:normal;font-family:&#39;Helvetica Neue&#39;"><span>Model Identifier:</span><span style="white-space:pre-wrap">        </span><span>MacBookPro11,5</span></div><div style="margin:0px 0px 0px 140.5px;font-size:11px;line-height:normal;font-family:&#39;Helvetica Neue&#39;">Processor Name:<span style="white-space:pre-wrap">        </span>Intel Core i7</div><div style="margin:0px 0px 0px 140.5px;font-size:11px;line-height:normal;font-family:&#39;Helvetica Neue&#39;">Processor Speed:<span style="white-space:pre-wrap">        </span>2.8 GHz</div><div style="margin:0px 0px 0px 140.5px;font-size:11px;line-height:normal;font-family:&#39;Helvetica Neue&#39;">Total Number of Cores:<span style="white-space:pre-wrap">        </span>4</div><div style="margin:0px 0px 0px 140.5px;font-size:11px;line-height:normal;font-family:&#39;Helvetica Neue&#39;">Memory:<span style="white-space:pre-wrap">        </span>16 GB</div></div><div style="margin:0px 0px 0px 140.5px;font-size:11px;line-height:normal;font-family:&#39;Helvetica Neue&#39;"><br></div><div style="margin:0px 0px 0px 140.5px;font-size:11px;line-height:normal;font-family:&#39;Helvetica Neue&#39;">Cheers!</div><div style="margin:0px 0px 0px 140.5px;font-size:11px;line-height:normal;font-family:&#39;Helvetica Neue&#39;">Uko</div></div></div></blockquote></div></div></blockquote><div><br></div><div>I&#39;ve reproduced this with the pharo vm.  I see an issue not with the image but with the platform subsystem.  Here&#39;s the error message I see after the image is successfully saved with the ~ 1Gb byte array:</div><div> </div></div><div class="gmail_extra"><font face="comic sans ms, sans-serif">McStalker.Pharo$ ls -lh Pharo.image </font></div><div class="gmail_extra"><font face="comic sans ms, sans-serif">-rw-r--r--@ 1 eliot  staff   1.0G Apr 22 15:52 Pharo.image</font></div><div class="gmail_extra"><div class="gmail_extra"><font face="comic sans ms, sans-serif">McStalker.Pharo$ ./pharo-vm/Pharo.app/Contents/MacOS/Pharo Pharo.image </font></div><div class="gmail_extra"><font face="comic sans ms, sans-serif">objc[44476]: autorelease pool page 0x21ce000 corrupted</font></div><div class="gmail_extra"><font face="comic sans ms, sans-serif">  magic 0x0100040b 0x03000000 0x214a9d00 0x00000003</font></div><div class="gmail_extra"><font face="comic sans ms, sans-serif">  pthread 0x9f75b00</font></div><div class="gmail_extra"><font face="comic sans ms, sans-serif"><br></font></div><div class="gmail_extra"><font face="comic sans ms, sans-serif">Illegal instruction: 4</font></div><div class="gmail_extra"><br></div><div class="gmail_extra">but if I start the image with a &quot;Pharo&quot; VM compiled from the Cog source tree (Pharo in quotes because the VM is missing a number of plugins) the system starts up and is usable.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra"><font face="comic sans ms, sans-serif">McStalker.Pharo$ pharocfvm -version</font></div><div class="gmail_extra"><font face="comic sans ms, sans-serif">/Users/eliot/oscogvm/build.macos32x86/pharo.cog.spur/CocoaFast.app/Contents/MacOS/Pharo</font></div><div class="gmail_extra"><font face="comic sans ms, sans-serif">5.0 5.0.3678 Mac OS X built on Apr 22 2016 11:40:09 PDT Compiler: 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57) [Production Spur VM]</font></div><div class="gmail_extra"><font face="comic sans ms, sans-serif">CoInterpreter VMMaker.oscog-eem.1832 uuid: 3e4d6e88-f60d-4a01-930d-7c5895b8a86a Apr 22 2016</font></div><div class="gmail_extra"><font face="comic sans ms, sans-serif">StackToRegisterMappingCogit VMMaker.oscog-eem.1832 uuid: 3e4d6e88-f60d-4a01-930d-7c5895b8a86a Apr 22 2016</font></div><div class="gmail_extra"><font face="comic sans ms, sans-serif">VM: r3678 <a href="http://www.squeakvm.org/svn/squeak/branches/Cog">http://www.squeakvm.org/svn/squeak/branches/Cog</a> Date: 2016-04-22 11:26:57 -0700</font></div><div class="gmail_extra"><font face="comic sans ms, sans-serif">Plugins: r3639 <a href="http://squeakvm.org/svn/squeak/trunk/platforms/Cross/plugins">http://squeakvm.org/svn/squeak/trunk/platforms/Cross/plugins</a></font></div><div class="gmail_extra"><br></div><div class="gmail_extra">I can confirm that the problem is with the Pharo platforms/iOS subsystem, and not for example,e, plugins.  If I include the plains from the official pharo-vm in the Pharo VM built from the Cog branch sources, the image loads.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Somehow we need to merge the two subsystems.  i.e. we need to merge <a href="http://www.squeakvm.org/svn/squeak/branches/Cog/platforms/iOS">http://www.squeakvm.org/svn/squeak/branches/Cog/platforms/iOS</a> with the pharo equivalent.  For example, Pharo&#39;s tree supports -headless but the Cog branch does not, the Cog branch supports 64-bits and -version, Pharo&#39;s does not.  Volunteers?</div><div class="gmail_extra"><br></div></div></div><div class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>