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

VM crash when call a method from within javascript code present in a page loaded in webEngine

XMLWordPrintable

    • web

        See original bug in the links below.

        Steps to reproduce:

        Download FatalError.java and index.html, modify the path to index.html in FatalError.java, compile and run and it will crash.

        -----

        [copied the following from the original bug report]

        J2SE Version (please include all output from java -version flag):
        C:\Users\angelo>javac -version
        javac 1.8.0_20-ea

        C:\Users\angelo>java -version
        java version "1.8.0_20-ea"
        Java(TM) SE Runtime Environment (build 1.8.0_20-ea-b21)
        Java HotSpot(TM) Client VM (build 25.20-b20, mixed mode)


        Does this problem occur on J2SE 7ux? Yes / No (pick one)
        not known


        Operating System Configuration Information (be specific):
        Windows 7 SP1 32 bits


        Hardware Configuration Information (be specific):
        AMD Athlon X2 64


        Bug Description:
        In a javaFX application, a public method is defined so as to be callable from within
        the javascript code present in a page loaded in a webEngine. That method throws an
        exception, which makes the VM abort.


        Steps to Reproduce (be specific):
        Compile and run the attached java file.
        A window is displayed with a web page in it. Click on the button.
        The following error appears on the console:

        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (thread.cpp:1541), pid=10248, tid=4468
        # guarantee(cur_sp > stack_yellow_zone_base()) failed: not enough space to reguard - increase StackShadowPages
        #
        # JRE version: Java(TM) SE Runtime Environment (8.0_20-b21) (build 1.8.0_20-ea-b21)
        # Java VM: Java HotSpot(TM) Client VM (25.20-b20 mixed mode, sharing windows-x86 )
        # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
        #
        # An error report file with more information is saved as:
        # D:\nodewebkit\webview\hs_err_pid10248.log

        Steps to Reproduce (be specific):
        Compile the attached program (after having adjusted the path of the index.html file in it).
        Run it, and click on the button.
        The following stack trace appears:

        Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: hhhhh
                at FatalError.delstring(FatalError.java:53)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at sun.reflect.misc.Trampoline.invoke(Unknown Source)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at sun.reflect.misc.MethodUtil.invoke(Unknown Source)
                at com.sun.webkit.Utilities$1.run(Unknown Source)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sun.webkit.Utilities.fwkInvokeWithContext(Unknown Source)
                at com.sun.webkit.WebPage.twkProcessMouseEvent(Native Method)
                at com.sun.webkit.WebPage.dispatchMouseEvent(Unknown Source)
                at javafx.scene.web.WebView.processMouseEvent(Unknown Source)
                at javafx.scene.web.WebView.access$2500(Unknown Source)
                at javafx.scene.web.WebView$14.handle(Unknown Source)
                at javafx.scene.web.WebView$14.handle(Unknown Source)
                at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
                at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
                at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
                at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
                at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
                at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
                at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
                at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
                at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
                at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
                at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
                at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
                at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
                at javafx.event.Event.fireEvent(Unknown Source)
                at javafx.scene.Scene$MouseHandler.process(Unknown Source)
                at javafx.scene.Scene$MouseHandler.access$1800(Unknown Source)
                at javafx.scene.Scene.impl_processMouseEvent(Unknown Source)
                at javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
                at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
                at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
                at com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
                at com.sun.glass.ui.View.notifyMouse(Unknown Source)
                at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
                at com.sun.glass.ui.win.WinApplication.access$300(Unknown Source)
                at com.sun.glass.ui.win.WinApplication$4$1.run(Unknown Source)
                at java.lang.Thread.run(Unknown Source)

        D:\nodewebkit\webview>java FatalError
        aaa
        loading

          1. FatalError.java
            2 kB
            Kevin Rushforth
          2. hs_err_pid10248.log
            1.0 kB
            Kevin Rushforth
          3. index.html
            0.5 kB
            Kevin Rushforth

              ant Anton Tarasov (Inactive)
              cbensen Chris Bensen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported: