Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8118807

Using HTML5 workers cause JavaVM to crash

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 8
    • javafx
    • Windows 7 x64
      JDK 8 b106, x86

    • web

      Let's start some test for workers:

      That's output we see:
      ....
      -do-test-run-single:
          [junit] Testsuite: com.sun.fx.webnode.tests.webworkers.AccessingTest
          [junit] Loading jemmy properties from C:\Users\aurora\.jemmy.properties
          [junit] Property file C:\Users\aurora\.jemmy.properties does not exists. Ignoring.
          [junit] Testsuite: com.sun.fx.webnode.tests.webworkers.AccessingTest
          [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
          [junit]
          [junit] Testcase: com.sun.fx.webnode.tests.webworkers.AccessingTest:accessParent: Caused an ERROR
          [junit] Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.
          [junit] junit.framework.AssertionFailedError: Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.
          [junit]
          [junit]
          [junit] Test com.sun.fx.webnode.tests.webworkers.AccessingTest FAILED (crashed)
      ....
      _________

      The code, which crashes JVM:
      engine.load(getAbsolutePathToResource("resources/documentAccessingPage.html"));

      _________

      Content of the page:
      <!DOCTYPE html>
      <html>
          <head>
              <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
              <script>
                  var worker = new Worker('documentAccessingWorker.js');
                  worker.addEventListener('message', function(event) {
                      document.getElementById("result").innerHTML = event.data;
                  }, false);
                  worker.postMessage();
              </script>
          </head>
          <body>
              <div id="result"></div>
          </body>
      </html>

            peterz Peter Zhelezniakov
            dginzbur Dmitry Ginzburg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: