<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Georgia">I'll think about this some more, but my current
      suspicion centers on:<br>
      <br>
      styleInBackgroundProcess: aText<br>
      <br>
      &nbsp;&nbsp;&nbsp; self terminateBackgroundStylingProcess.<br>
      &nbsp;&nbsp;&nbsp; stylingEnabled ifTrue:[<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; text := aText copy.<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; self monitor critical: [<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sem := Semaphore new. <br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [sem notNil<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ifTrue: [<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sem wait.<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; view ifNotNil:[view stylerStyledInBackground:
      text]]<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ] forkAt: Processor activePriority.<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; backgroundProcess := <br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [self privateStyle: text.<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sem signal]<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; forkAt: Processor userBackgroundPriority] ]<br>
      &nbsp;&nbsp;&nbsp; <br>
      I'm a little concerned about the <br>
    </font><br>
    <font face="Georgia">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ] forkAt: Processor activePriority.<br>
      <br>
      resulting in a process (1) running at the same priority as the UI
      process and (2) that will modify the state of a text morph on the
      screen. If such a modification is interrupted by a higher-priority
      process, the resumed process will not be the interrupted one, but
      the UI process which may proceed to display the world, includeing
      the partially modified text morph.<br>
      <br>
      If you can figure out how to make the error happen easily, then
      things to try:<br>
      - increase the priority a bit</font><br>
    <font face="Georgia"><font face="Georgia">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [sem notNil<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ifTrue: [<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sem wait.<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; view ifNotNil:[view
        stylerStyledInBackground: text]]<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ] forkAt: Processor activePriority+1.<br>
      </font>- use <br>
      &nbsp;&nbsp;&nbsp; WorldState addDeferredUIMessage: [</font><font face="Georgia"><font
        face="Georgia">view ifNotNil:[view stylerStyledInBackground:
        text]</font>]<br>
      instead of a separate process<br>
      - disable background styling<br>
      <br>
      One or more of these might make the problem go away. Assuming you
      can force the problem to happen reliably. ;-)<br>
      <br>
      <br>
      Cheers,<br>
      Bob<br>
      <br>
    </font>
    <div class="moz-cite-prefix">On 9/23/13 8:53 PM, Nicolas Cellier
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAKnRiT4x5fuUUkC8cSgs4s_vPKb_SNuFgFfyfj8kff8xMXg_jg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>I was trying to merge tim's change with mine, so the
                image was definitely not clean.<br>
                This involved many action, correcting SyntaxError,
                etc... breaking an image, killing the process, and
                restarting all over again.<br>
              </div>
              If I remember, I got such error first in a MC merge
              window.<br>
            </div>
            I also remember some strange warning 'This modal dialog was
            interrupted, please close it'... This could be from MCTool
            answer:<br>
          </div>
          Generally, the red squeare is not solitary, they like to burst
          in flock, so I suspect some ill state of the World, like
          having several UI processes? But currently my image show no
          extra Process in the ProcessBrowser<br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">2013/9/24 Bob Arning <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:arning315@comcast.net"
              target="_blank">arning315@comcast.net</a>&gt;</span><br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> <font face="Georgia">One
                more question:<br>
                <br>
                - Were there any processes running other than those
                standard in all Squeaks?<br>
                <br>
                Cheers,<br>
                Bob<br>
                <br>
              </font>
              <div class="im">
                <div>On 9/23/13 7:43 PM, Nicolas Cellier wrote:<br>
                </div>
              </div>
              <div>
                <div class="h5">
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div>After replacing doOneCycle with
                        displayWorldSafely, I got much more stable
                        morphs...<br>
                      </div>
                      But see yet another red square attached...<br>
                      <br>
                      <br>
                    </div>
                    <div class="gmail_extra"><br>
                      <br>
                      <div class="gmail_quote"> 2013/9/18 Bob Arning <span
                          dir="ltr">&lt;<a moz-do-not-send="true"
                            href="mailto:arning315@comcast.net"
                            target="_blank">arning315@comcast.net</a>&gt;</span><br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div bgcolor="#FFFFFF" text="#000000"> <font
                              face="Georgia">So, the question is do they
                              really need #doOneCycle or something less,
                              like #displayWorldSafely<br>
                              <br>
                              Cheers,<br>
                              Bob<br>
                              <br>
                            </font>
                            <div>
                              <div>On 9/17/13 6:36 PM, Nicolas Cellier
                                wrote:<br>
                              </div>
                              <blockquote type="cite">
                                <div>
                                  <div>Ah we cross posted, good find!<br>
                                    <br>
                                  </div>
                                  Those guys messing with World <font
                                    face="Georgia">doOneCycle</font> are
                                  just like the sorcerer's apprentice...<br>
                                </div>
                              </blockquote>
                              <br>
                            </div>
                          </div>
                          <br>
                          <br>
                          <br>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
            <br>
            <br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">
</pre>
    </blockquote>
    <br>
  </body>
</html>