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: ...


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@zoho.com> wrote:
Were you usig Spur64? On Debian it does not freeze with CogV3 or Spur32. Only with Spur64.


Sent using Zoho Mail

---- On Mon, 06 Feb 2017 09:19:48 -0300 bert@freudenbergs.de wrote ----

On Mon, Feb 6, 2017 at 3:15 AM, David T. Lewis <lewis@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