[Vm-dev] We need help from VM experts. Re: Freeze after Morph& nbsp; & nbsp; & nbsp; & nbsp; Activity

Juan Vuletich JuanVuletich at zoho.com
Fri Mar 3 18:55:52 UTC 2017


Hi Folks,

Today, I was able to get closer to the origin of the problem. The 
problem is when Morphic tries to do a Delay (inter-cycle-pause) of 1 or 
two milliseconds. (Usually they are quite larger, and the problem does 
not appear). With the 64-bit VM, sometimes very short delays hang the 
complete system. I don't know why, but this:

waitDelay _ Delay forMilliseconds: 50.
[ true ] whileTrue: [
     1000 atRandom print.
     waitDelay setDelay: 1; wait ].

is enough to hang Cuis in a short time. When trying to reproduce the 
problem in Squeak I had mixed results. It doesn't seem to hang there, 
but if I let this run for a couple of minutes and then try to halt with 
alt-. , then the hang occurs, and Squeak becomes irresponsibe. As a 
workaround, in Cuis in the inter cycle pause, I'm avoiding very short 
delays.

I'm not sure if the bug is in the VM, in  the image, or both, but it is 
still there, and it also affects Squeak. I haven't tried it, but Pharo 
might also have the problem (if not, it can show a possible solution).

BTW, Bert, I guess Squeak never does short delays in #interCyclePause: ...

Thanks,

On 2/6/2017 12:28 PM, Bert Freudenberg wrote:
>   
>
>
> Yes, I tried with Spur64. Have not seen it freeze yet on Mac in 
> Squeak, but we possibly have not replicated the test well enough yet.
>
> It *did* freeze in Cuis Spur64 on Mac too.
>
> - Bert -
>
> On Mon, Feb 6, 2017 at 2:08 PM, Juan Vuletich <juanvuletich at zoho.com 
> <mailto:juanvuletich at zoho.com>> wrote:
>
>
>     Were you usig Spur64? On Debian it does not freeze with CogV3 or
>     Spur32. Only with Spur64.
>
>     Thanks,
>     Juan
>
>     Sent using Zoho Mail <https://www.zoho.com/mail/>
>
>
>         ---- On Mon, 06 Feb 2017 09:19:48 -0300 *bert at freudenbergs.de
>         <mailto:bert at freudenbergs.de> * wrote ----
>
>         On Mon, Feb 6, 2017 at 3:15 AM, David T. Lewis
>         <lewis at mail.msen.com <mailto:lewis at mail.msen.com>> wrote:
>
>             It would be interesting to try reproducing this in a
>             Squeak image, but I
>             have not quite figured out how to make the Tokenish
>             example work in Squeak.
>
>
>         See attachment. Did not freeze on Mac with 10 Tokenish jumping.
>         - Bert -
>
>
>


-- 
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
@JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20170303/8f38605b/attachment.html>


More information about the Vm-dev mailing list