<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I was not able so far to compile a VM. Yesterday I installed Cygwin with standard settings and MS VisualStudio, but Version 2022, maybe I need 2017. I do all the things described in the HowToBuild, but when I do ../common/MAKEDEBUG.bat I get only the one output line that it does the DEBUG, but the script immediately stops, nothing happens.<div class=""><br class=""></div><div class="">I used simply the latest debug build and attached it to VisualStudio. This is what I get, which means, exception raised, access violation at</div><div class=""><br class=""></div><div class="">Ausnahme ausgelöst bei 0x00007FF75DE1878B in Squeak.exe: 0xC0000005: Zugriffsverletzung beim Lesen an Position 0x00005AF973234C20.</div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">Am 10.02.2022 um 21:12 schrieb Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com" class="">eliot.miranda@gmail.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="content-type" content="text/html; charset=utf-8" class=""><div dir="auto" class=""><div dir="ltr" class=""><br class=""></div><div dir="ltr" class=""><blockquote type="cite" class="">On Feb 10, 2022, at 12:07 PM, Jörg Belger <<a href="mailto:unique75@web.de" class="">unique75@web.de</a>> wrote:<br class=""><br class=""></blockquote></div><blockquote type="cite" class=""><div dir="ltr" class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">There is no crash.dmp file<br class=""></div></blockquote><div class=""><br class=""></div>Then the only thing I can suggest is building a VM using the MSCV tool chain (see MSVC in opensmalltalk-vm/building/win64x64/HowToBuild), running that VM in the VisualStudio debugger, and seeing if that is more informative.<div class=""><br class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">Am 10.02.2022 um 20:58 schrieb Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com" class="">eliot.miranda@gmail.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><meta charset="UTF-8" class=""><div dir="ltr" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div dir="ltr" class=""><div class="gmail_default" style="font-size: small;">HI Jörg,</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 9, 2022 at 11:08 PM Jörg Belger <<a href="mailto:unique75@web.de" class="">unique75@web.de</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;">Hi Dave,<br class=""><br class="">I mean with „crash“ the Squeak process is exited unexpectedly, it is just fully gone away. Maybe it happens for me earlier because if have a 32 GB machine and I do not have so much swapping. It is not a hanging/locking/unresponsivness, it is a real crash :-)<br class=""></blockquote><div class=""><br class=""></div><div class="gmail_default" style="font-size: small;">Is there a crash.dmp file?  If so, can you post it? It should be in the same directory as either the image or the vm.</div><div class="gmail_default" style="font-size: small;"><br class=""></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;">Here are my machine details:<br class=""><br class="">Gerätename      timemachine<br class="">Prozessor       AMD Ryzen 9 3900X 12-Core Processor               3.80 GHz<br class="">Installierter RAM       32,0 GB<br class="">Geräte-ID       F6FA897B-DDB1-44D6-9BF3-8BD1110AA754<br class="">Produkt-ID      00326-10048-08575-AA867<br class="">Systemtyp       64-Bit-Betriebssystem, x64-basierter Prozessor<br class="">Stift- und Toucheingabe Für diese Anzeige ist keine Stift- oder Toucheingabe verfügbar.<br class=""><br class="">Edition Windows 10 Home<br class="">Version 20H2<br class="">Installiert am  ‎23.‎03.‎2021<br class="">Betriebssystembuild     19042.1526<br class="">Leistung        Windows Feature Experience Pack 120.2212.4170.0<br class=""><br class=""><br class="">> Am 10.02.2022 um 04:27 schrieb David T. Lewis <<a href="mailto:lewis@mail.msen.com" target="_blank" class="">lewis@mail.msen.com</a>>:<br class="">><span class="Apple-converted-space"> </span><br class="">> On Thu, Feb 03, 2022 at 10:30:49PM +0100, J??rg Belger wrote:<br class="">>> This leads to an image/VM crash too<br class="">>><span class="Apple-converted-space"> </span><br class="">>>      | oc |<br class="">>>      oc := OrderedCollection new.<br class="">>>      400000000 timesRepeat: [oc add: Object new]<br class="">>><span class="Apple-converted-space"> </span><br class="">>> This here is working for me:<br class="">>><span class="Apple-converted-space"> </span><br class="">>>      | oc |<br class="">>>      oc := OrderedCollection new: 400000000.<br class="">>>      400000000 timesRepeat: [oc add: Object new]<br class="">>><span class="Apple-converted-space"> </span><br class="">>> This here is working too for me:<br class="">>><span class="Apple-converted-space"> </span><br class="">>>      | oc |<br class="">>>      oc := OrderedCollection new.<br class="">>>      400000000 timesRepeat: [oc add: 1]<br class="">>><span class="Apple-converted-space"> </span><br class="">>> It seems there is possibly a memory problem in the VM.<br class="">>><span class="Apple-converted-space"> </span><br class="">>><span class="Apple-converted-space"> </span><br class="">><span class="Apple-converted-space"> </span><br class="">> I have tried to reproduce this on my PC with 8GB memory. I was not able<br class="">> to crash the VM but it certainly locked my system up in swapping as the<br class="">> test continued to use memory. Eventually I ran out of time and patience<br class="">> and killed the VM process.<br class="">><span class="Apple-converted-space"> </span><br class="">> If there is an actual VM crash involved then maybe there is a bug. But<br class="">> if you are seeing your Squeak image is just stalling out, then nothing<br class="">> is wrong except for a matter of basic arithmetic.<br class="">><span class="Apple-converted-space"> </span><br class="">> You are trying to allocate 400,000,000 individual objects, each of which<br class="">> requires 16 bytes of memory in the object memory, and you are storing<br class="">> each of those objects using an 8 byte object pointer to the object in<br class="">> the ordered collection. So just for the raw storage you are going to<br class="">> need for those "Object new" things, you need 400,000,000 * (16 + 8)<br class="">> = 9,600,000,000 bytes. On top of that you are putting the objects into<br class="">> an OrderedCollection that does not know that you are going to ask it<br class="">> to hold 400,000,000 object pointers, so it has to keep extending itself<br class="">> as the test proceeds.<br class="">><span class="Apple-converted-space"> </span><br class="">> When I tried to run this on my PC with a mere eight GB of real memory,<br class="">> the operating system had to start swapping out real memory make room<br class="">> for all of that activity. And every time the OrderedCollection needs<br class="">> to extend its space, it is accessing real memory that probably got<br class="">> swapped out to disk to make room in the 8GB of real memory space, so<br class="">> basically it puts the system into a death spiral that locks up the<br class="">> Squeak image (and pretty much everything else on my computer).<br class="">><span class="Apple-converted-space"> </span><br class="">> So I am able to reproduce the locked up image (as I would expect on my<br class="">> PC with only 8GB memory) but I have not been able to reproduce a crash.<br class="">><span class="Apple-converted-space"> </span><br class="">> Just to clarify, are you describing a "crash" in which the actual<br class="">> Squeak VM process exited unexpectedly, or was it a "crash" in the<br class="">> sense of the the image locking up and becoming unresponsive? If the<br class="">> latter, then most likely nothing is wrong.<br class="">><span class="Apple-converted-space"> </span><br class="">> Dave<br class="">><span class="Apple-converted-space"> </span><br class="">><span class="Apple-converted-space"> </span><br class=""><br class=""><br class=""></blockquote></div><br clear="all" class=""><div class=""><br class=""></div>--<span class="Apple-converted-space"> </span><br class=""><div dir="ltr" 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, Eliot</div></span></div></div></div></div></div></blockquote></div><br class=""><span class=""></span><br class=""></div></blockquote></div></div><br class=""></div></blockquote></div><br class=""></div></body></html>