Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-1515

race condition in jalview.js on Firefox/Java8/OSX

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.8.0b1, 2.8.1
    • Fix Version/s: None
    • Component/s: JVL-Ajax
    • Labels:
      None
    • Environment:
      Seen in Firefox aurora and 26.0 OSX 10.9.3 Java 1.8b5

      Description

      JalviewLite^2 example can fail to register listeners due to an exception like:

      Calling oninit callback 'lJvFollow'.
      Calling oninit callback 'lJvApp'.
      netscape.javascript.JSException: JavaScript error while calling "lJvApp"
      netscape.javascript.JSException: JavaScript error while calling "lJvApp"
      at sun.plugin2.main.client.MessagePassingJSObject.newJSException(Unknown Source)
      at sun.plugin2.main.client.MessagePassingJSObject.waitForReply(Unknown Source)
      at sun.plugin2.main.client.MessagePassingJSObject.call(Unknown Source)
      at jalview.h.b.run(Unknown Source)
      at jalview.h.a.run(Unknown Source)
      at java.lang.Thread.run(Thread.java:745)
      netscape.javascript.JSException: JavaScript error while calling "lJvFollow"
      netscape.javascript.JSException: JavaScript error while calling "lJvFollow"
      at sun.plugin2.main.client.MessagePassingJSObject.newJSException(Unknown Source)
      at sun.plugin2.main.client.MessagePassingJSObject.waitForReply(Unknown Source)
      at sun.plugin2.main.client.MessagePassingJSObject.call(Unknown Source)
      at jalview.h.b.run(Unknown Source)
      at jalview.h.a.run(Unknown Source)
      at java.lang.Thread.run(Thread.java:745)

      This is caused by:
      TypeError: applet.setMouseoverListener is not a function (jalview.js:139)
      --> applet.setMouseoverListener("mouseover");

      It seems that the browser plugin doesn't manage to initialise the applet's javascript proxy by the time the applet has been started. Wait for patches to see if this issue is resolved in future releases.

        Attachments

          Activity

            People

            Assignee:
            jprocter James Procter
            Reporter:
            jprocter James Procter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: