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

Using HTML5 workers cause JavaVM to crash

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 8
    • Fix Version/s: None
    • Component/s: javafx
    • Environment:

      Windows 7 x64
      JDK 8 b106, x86

    • Subcomponent:
      web

      Description

      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>

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: