Griffon
  1. Griffon
  2. GRIFFON-417

SwingPad fails because of Threading issue - maybe within RSyntaxTextArea

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.3
    • Fix Version/s: 0.9.4
    • Component/s: samples
    • Labels:
      None
    • Environment:
      All
    • Number of attachments :
      0

      Description

      If you select Script > Samples > Effect > JExplose or any other
      samplescript the application runs into a deadlock
      and hangs itself up.
      This can be stopped by commenting SwingPadController:59

      text: bind('code', source: model, mutual: true),
      

      But this of cause is needed.

      Further investigating shows, that it has something to do with
      Threadhandling, because changing SwingPadController:191

      model.code = model.samples[model.currentSampleId]
      

      to

      execSync {
         model.code = model.samples[model.currentSampleId]
      }
      

      helps.

      But this doesn't look right as is changing a model variable should be
      done outside of the UI Thread.

      So maybe the problem lies in the rsyntaxTextArea or its binding ?

        Activity

        Hide
        Andres Almiray added a comment -

        Fixed with Groovy 1.8.2. The model property needs to be updated inside the EDT however 1.8.2 will make this update transparently, no need to wrap the call with execSync.

        Show
        Andres Almiray added a comment - Fixed with Groovy 1.8.2. The model property needs to be updated inside the EDT however 1.8.2 will make this update transparently, no need to wrap the call with execSync .

          People

          • Assignee:
            Andres Almiray
            Reporter:
            Alexander Klein
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: