<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,&nbsp;<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 23 Apr 2016, at 01:10, Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com" class="">eliot.miranda@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Yuriy, Hi Esteban,<div class="gmail_extra"><br class=""><div class="gmail_quote">On Fri, Apr 22, 2016 at 12:17 AM, Yuriy Tymchuk <span dir="ltr" class="">&lt;<a href="mailto:yuriy.tymchuk@me.com" target="_blank" class="">yuriy.tymchuk@me.com</a>&gt;</span> wrote:<br class=""><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">&nbsp;<br class=""><div style="word-wrap:break-word" class=""><div class="">The script can be still used to reproduce the issue with the latest vm</div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On 07 Mar 2016, at 22:32, Yuriy Tymchuk &lt;<a href="mailto:yuriy.tymchuk@me.com" target="_blank" class="">yuriy.tymchuk@me.com</a>&gt; wrote:</div><br class=""><div class=""><div style="word-wrap:break-word" class="">Dear vm developers,<div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class="">curl <a href="http://get.pharo.org/50+vm" target="_blank" class="">get.pharo.org/50+vmLatest</a> | bash</div><div class=""><br class=""></div><div class="">./pharo Pharo.image --no-default-preferences eval --save \</div><div class="">&nbsp; "Smalltalk globals at: #ReallyBigArray put: (ByteArray new: 1024*1024*1000). 'Done'"</div><div class=""><br class=""></div><div class="">./pharo Pharo.image printVersion</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">Also here are my system &amp; hardware specs:</div><div class=""><br class=""></div><div class=""><div style="margin:0px 0px 0px 160.7px;font-size:11px;line-height:normal;font-family:'Helvetica Neue'" class="">System Version:<span style="white-space:pre-wrap" class="">        </span>OS X 10.11.3 (15D21)</div></div><div class=""><div style="margin:0px 0px 0px 140.5px;font-size:11px;line-height:normal;font-family:'Helvetica Neue'" class=""><span class="">Model Identifier:</span><span style="white-space:pre-wrap" class="">        </span><span class="">MacBookPro11,5</span></div><div style="margin:0px 0px 0px 140.5px;font-size:11px;line-height:normal;font-family:'Helvetica Neue'" class="">Processor Name:<span style="white-space:pre-wrap" class="">        </span>Intel Core i7</div><div style="margin:0px 0px 0px 140.5px;font-size:11px;line-height:normal;font-family:'Helvetica Neue'" class="">Processor Speed:<span style="white-space:pre-wrap" class="">        </span>2.8 GHz</div><div style="margin:0px 0px 0px 140.5px;font-size:11px;line-height:normal;font-family:'Helvetica Neue'" class="">Total Number of Cores:<span style="white-space:pre-wrap" class="">        </span>4</div><div style="margin:0px 0px 0px 140.5px;font-size:11px;line-height:normal;font-family:'Helvetica Neue'" class="">Memory:<span style="white-space:pre-wrap" class="">        </span>16 GB</div></div><div style="margin:0px 0px 0px 140.5px;font-size:11px;line-height:normal;font-family:'Helvetica Neue'" class=""><br class=""></div><div style="margin:0px 0px 0px 140.5px;font-size:11px;line-height:normal;font-family:'Helvetica Neue'" class="">Cheers!</div><div style="margin:0px 0px 0px 140.5px;font-size:11px;line-height:normal;font-family:'Helvetica Neue'" class="">Uko</div></div></div></blockquote></div></div></blockquote><div class=""><br class=""></div><div class="">I've reproduced this with the pharo vm.&nbsp; I see an issue not with the image but with the platform subsystem.&nbsp; Here's the error message I see after the image is successfully saved with the ~ 1Gb byte array:</div><div class="">&nbsp;</div></div><div class="gmail_extra"><font face="comic sans ms, sans-serif" class="">McStalker.Pharo$ ls -lh Pharo.image&nbsp;</font></div><div class="gmail_extra"><font face="comic sans ms, sans-serif" class="">-rw-r--r--@ 1 eliot &nbsp;staff &nbsp; 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" class="">McStalker.Pharo$ ./pharo-vm/Pharo.app/Contents/MacOS/Pharo Pharo.image&nbsp;</font></div><div class="gmail_extra"><font face="comic sans ms, sans-serif" class="">objc[44476]: autorelease pool page 0x21ce000 corrupted</font></div><div class="gmail_extra"><font face="comic sans ms, sans-serif" class="">&nbsp; magic 0x0100040b 0x03000000 0x214a9d00 0x00000003</font></div><div class="gmail_extra"><font face="comic sans ms, sans-serif" class="">&nbsp; pthread 0x9f75b00</font></div><div class="gmail_extra"><font face="comic sans ms, sans-serif" class=""><br class=""></font></div><div class="gmail_extra"><font face="comic sans ms, sans-serif" class="">Illegal instruction: 4</font></div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">but if I start the image with a "Pharo" 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 class=""></div><div class="gmail_extra"><div class="gmail_extra"><font face="comic sans ms, sans-serif" class="">McStalker.Pharo$ pharocfvm -version</font></div><div class="gmail_extra"><font face="comic sans ms, sans-serif" class="">/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" class="">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" class="">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" class="">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" class="">VM: r3678 <a href="http://www.squeakvm.org/svn/squeak/branches/Cog" class="">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" class="">Plugins: r3639 <a href="http://squeakvm.org/svn/squeak/trunk/platforms/Cross/plugins" class="">http://squeakvm.org/svn/squeak/trunk/platforms/Cross/plugins</a></font></div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">I can confirm that the problem is with the Pharo platforms/iOS subsystem, and not for example,e, plugins.&nbsp; 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 class=""></div><div class="gmail_extra">Somehow we need to merge the two subsystems. &nbsp;i.e. we need to merge&nbsp;<a href="http://www.squeakvm.org/svn/squeak/branches/Cog/platforms/iOS" class="">http://www.squeakvm.org/svn/squeak/branches/Cog/platforms/iOS</a> with the pharo equivalent.&nbsp; For example, Pharo's tree supports -headless but the Cog branch does not,&nbsp;the Cog branch&nbsp;supports 64-bits and -version, Pharo's does not.&nbsp; Volunteers?</div></div></div></div></div></div></blockquote><div><br class=""></div><div>I agree that we need to converge (too many waist of efforts), and I’m slowly working on that (you’d be surprised how few our changes are now compared to last year(s))…&nbsp;</div><div>iOS is a bit more difficult because we changed some important things, but it will be done anyway…&nbsp;</div><div>Anyway, anyone willing to help is very welcome :)</div><div><br class=""></div><div>… as I told before, it would help me HUGE if the announced migration to git/github happens soon :)</div><div>I’m willing to help in that migration if you want, it should be an easy task (I saw Fabio is doing some tests already…)</div><div><br class=""></div><div>cheers!</div><div>Esteban</div><div><br class=""></div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_extra"><div class="gmail_extra"><div class="gmail_extra"><br class=""></div></div></div><div class="gmail_signature"><div dir="ltr" class=""><div class=""><span style="font-size:small;border-collapse:separate" class=""><div class="">_,,,^..^,,,_<br class=""></div><div class="">best,&nbsp;Eliot</div></span></div></div></div>
</div></div>
</div></blockquote></div><br class=""></div></body></html>