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

Crash caused by jfxwebkit after calling a JS function multiple times

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 7u80, 8, 9
    • Fix Version/s: 9
    • Component/s: javafx
    • Subcomponent:
      web
    • CPU:
      x86_64
    • OS:
      windows_7

      Description

      FULL PRODUCT VERSION :
      Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
      Java HotSpot(TM) Client VM (build 24.80-b11, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Windows 7 Enterprise 64bit

      A DESCRIPTION OF THE PROBLEM :
      I'm developing an HTML app served by a JavaFX webengine. Business logic is mainly implemented in Javascript which calls Java code for persistence tasks. We found that the app crashed after some calls from Javascript to some Java methods which return data.

      The crash occours always after constant number of calls to a Java method which returns always the same amount of data. So we can say the total amount of data transmitted is a constant in this case. Even though the total amount of data transmitted increases as we decrease the amout of data returned by a single call to the Java method. The crash doesn't reproduce if this method return null.

      The crash occours while executing some native jfxwebkit code as you can see in the report.

      I've been able to reproduce also with latest Java 8/9 releases:


      java version "1.8.0_74"
      Java(TM) SE Runtime Environment (build 1.8.0_74-b02)
      Java HotSpot(TM) Client VM (build 25.74-b02, mixed mode, sharing)


      java version "9-ea"
      Java(TM) SE Runtime Environment (build 9-ea+108-2016-03-02-174430.javare.4571.nc
      )
      Java HotSpot(TM) Client VM (build 9-ea+108-2016-03-02-174430.javare.4571.nc, mix
      ed mode)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Just execute the executable test case.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Shouldn't crash. Should release memory.
      ACTUAL -
      It seems memory is never released after each call and the app finally crashes.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x5d510c71, pid=4412, tid=5944
      #
      # JRE version: Java(TM) SE Runtime Environment (7.0_80-b15) (build 1.7.0_80-b15)
      # Java VM: Java HotSpot(TM) Client VM (24.80-b11 mixed mode, sharing windows-x86 )
      # Problematic frame:
      # C [jfxwebkit.dll+0x710c71]
      #
      # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.java.com/bugreport/crash.jsp
      # The crash happened outside the Java Virtual Machine in native code.
      # See problematic frame for where to report the bug.
      #

      --------------- T H R E A D ---------------

      Current thread (0x04e6dc00): JavaThread "JavaFX Application Thread" [_thread_in_native, id=5944, stack(0x058b0000,0x05900000)]

      siginfo: ExceptionCode=0xc0000005, writing address 0xbbadbeef

      Registers:
      EAX=0x00000000, EBX=0xffffffff, ECX=0x00000000, EDX=0x05900000
      ESP=0x058fdbe0, EBP=0x04f7e9c0, ESI=0x00000000, EDI=0x00000000
      EIP=0x5d510c71, EFLAGS=0x00210246

      Top of Stack: (sp=0x058fdbe0)
      0x058fdbe0: 00100000 5d5129b5 00200014 058fdc94
      0x058fdbf0: 00100000 00000000 5d5136d4 058fdc18
      0x058fdc00: 00100000 058fdc1c 22ae9a25 058fdc94
      0x058fdc10: 058fdc94 04e6dc00 225dad3f 04f7e9c0
      0x058fdc20: 00000000 058fdc58 5d6be331 ffffffff
      0x058fdc30: 5d51da5c 058fdc6c 7ec00020 00100000
      0x058fdc40: 22ae9a6d 0090d8c0 058fdc94 ffffffff
      0x058fdc50: 00000000 058fdc94 058fdcc8 5d6bedd1

      Instructions: (pc=0x5d510c71)
      0x5d510c51: 44 24 04 56 50 ff 15 80 61 6d 5d 8b f0 83 c4 04
      0x5d510c61: 85 f6 75 16 e8 36 a2 00 00 e8 b1 a2 00 00 33 c9
      0x5d510c71: 89 35 ef be ad bb ff d1 8b c6 5e c3 cc cc cc ff
      0x5d510c81: 25 58 61 6d 5d cc cc cc cc cc cc cc cc cc cc 8b


      Register to memory mapping:

      EAX=0x00000000 is an unknown value
      EBX=0xffffffff is an unknown value
      ECX=0x00000000 is an unknown value
      EDX=0x05900000 is pointing into the stack for thread: 0x04e6dc00
      ESP=0x058fdbe0 is pointing into the stack for thread: 0x04e6dc00
      EBP=0x04f7e9c0 is an unknown value
      ESI=0x00000000 is an unknown value
      EDI=0x00000000 is an unknown value


      Stack: [0x058b0000,0x05900000], sp=0x058fdbe0, free space=310k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C [jfxwebkit.dll+0x710c71]

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j com.sun.webpane.platform.WebPage.twkExecuteScript(JLjava/lang/String;)Ljava/lang/Object;+0
      j com.sun.webpane.platform.WebPage.executeScript(JLjava/lang/String;)Ljava/lang/Object;+107
      j javafx.scene.web.WebEngine.executeScript(Ljava/lang/String;)Ljava/lang/Object;+15
      j Browser2$1.changed(Ljavafx/beans/value/ObservableValue;Ljavafx/concurrent/Worker$State;Ljavafx/concurrent/Worker$State;)V+57
      j Browser2$1.changed(Ljavafx/beans/value/ObservableValue;Ljava/lang/Object;Ljava/lang/Object;)V+13
      j com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent()V+71
      j com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(Lcom/sun/javafx/binding/ExpressionHelper;)V+5
      j javafx.beans.property.ReadOnlyObjectWrapper$ReadOnlyPropertyImpl.fireValueChangedEvent()V+4
      j javafx.beans.property.ReadOnlyObjectWrapper.fireValueChangedEvent()V+11
      j javafx.beans.property.ObjectPropertyBase.markInvalid()V+17
      j javafx.beans.property.ObjectPropertyBase.set(Ljava/lang/Object;)V+31
      j javafx.scene.web.WebEngine$LoadWorker.updateState(Ljavafx/concurrent/Worker$State;)V+8
      j javafx.scene.web.WebEngine$LoadWorker.dispatchLoadEvent(JILjava/lang/String;Ljava/lang/String;DI)V+203
      j javafx.scene.web.WebEngine$LoadWorker.access$600(Ljavafx/scene/web/WebEngine$LoadWorker;JILjava/lang/String;Ljava/lang/String;DI)V+11
      j javafx.scene.web.WebEngine$PageLoadListener.dispatchLoadEvent(JILjava/lang/String;Ljava/lang/String;DI)V+32
      j com.sun.webpane.platform.WebPage.fireLoadEvent(JILjava/lang/String;Ljava/lang/String;DI)V+45
      j com.sun.webpane.platform.WebPage.fwkFireLoadEvent(JILjava/lang/String;Ljava/lang/String;DI)V+94
      v ~StubRoutines::call_stub
      j com.sun.webpane.webkit.Timer.twkFireTimerEvent()V+0
      j com.sun.webpane.webkit.Timer.fireTimerEvent(J)V+45
      j com.sun.webpane.webkit.Timer.notifyTick()V+25
      j javafx.scene.web.WebEngine$PulseTimer$2.pulse()V+3
      j com.sun.javafx.tk.Toolkit$5.run()Ljava/lang/Void;+4
      j com.sun.javafx.tk.Toolkit$5.run()Ljava/lang/Object;+1
      v ~StubRoutines::call_stub
      j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0
      j com.sun.javafx.tk.Toolkit.runPulse(Lcom/sun/javafx/tk/TKPulseListener;Ljava/security/AccessControlContext;)V+24
      j com.sun.javafx.tk.Toolkit.firePulse()V+165
      j com.sun.javafx.tk.quantum.QuantumToolkit.pulse()V+100
      j com.sun.javafx.tk.quantum.QuantumToolkit$9.run()V+4
      v ~StubRoutines::call_stub
      j com.sun.glass.ui.win.WinApplication._runLoop([Ljava/lang/String;Lcom/sun/glass/ui/Launchable;)V+0
      j com.sun.glass.ui.win.WinApplication.access$100(Lcom/sun/glass/ui/win/WinApplication;[Ljava/lang/String;Lcom/sun/glass/ui/Launchable;)V+3
      j com.sun.glass.ui.win.WinApplication$3$1.run()V+32
      j java.lang.Thread.run()V+11
      v ~StubRoutines::call_stub

      --------------- P R O C E S S ---------------

      Java Threads: ( => current thread )
        0x04f14800 JavaThread "Disposer" daemon [_thread_blocked, id=10656, stack(0x070f0000,0x07140000)]
        0x04ee0000 JavaThread "Thread-3" daemon [_thread_in_native, id=11180, stack(0x06ff0000,0x07040000)]
      =>0x04e6dc00 JavaThread "JavaFX Application Thread" [_thread_in_native, id=5944, stack(0x058b0000,0x05900000)]
        0x04e6d400 JavaThread "Thread-2" daemon [_thread_blocked, id=11072, stack(0x05830000,0x05880000)]
        0x04e7e800 JavaThread "Disposer" daemon [_thread_blocked, id=11260, stack(0x05540000,0x05590000)]
        0x04e7b800 JavaThread "QuantumRenderer-0" daemon [_thread_blocked, id=9940, stack(0x05310000,0x05360000)]
        0x04c28400 JavaThread "JavaFX-Launcher" [_thread_blocked, id=10244, stack(0x04ac0000,0x04b10000)]
        0x00978800 JavaThread "Service Thread" daemon [_thread_blocked, id=10324, stack(0x04a50000,0x04aa0000)]
        0x00973800 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=8204, stack(0x047e0000,0x04830000)]
        0x00972400 JavaThread "Attach Listener" daemon [_thread_blocked, id=7548, stack(0x04780000,0x047d0000)]
        0x00971800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=8632, stack(0x00b80000,0x00bd0000)]
        0x00902000 JavaThread "Finalizer" daemon [_thread_blocked, id=3288, stack(0x04680000,0x046d0000)]
        0x00900400 JavaThread "Reference Handler" daemon [_thread_blocked, id=9016, stack(0x00e10000,0x00e60000)]
        0x009de800 JavaThread "main" [_thread_blocked, id=5308, stack(0x00a90000,0x00ae0000)]

      Other Threads:
        0x008fec00 VMThread [stack: 0x00db0000,0x00e00000] [id=5744]
        0x00983800 WatcherThread [stack: 0x04ba0000,0x04bf0000] [id=2484]

      VM state:not at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: None

      Heap
       def new generation total 4928K, used 4124K [0x24400000, 0x24950000, 0x29950000)
        eden space 4416K, 93% used [0x24400000, 0x24807268, 0x24850000)
        from space 512K, 0% used [0x24850000, 0x248500a8, 0x248d0000)
        to space 512K, 0% used [0x248d0000, 0x248d0000, 0x24950000)
       tenured generation total 10944K, used 3880K [0x29950000, 0x2a400000, 0x34400000)
         the space 10944K, 35% used [0x29950000, 0x29d1a268, 0x29d1a400, 0x2a400000)
       compacting perm gen total 12288K, used 3741K [0x34400000, 0x35000000, 0x38400000)
         the space 12288K, 30% used [0x34400000, 0x347a7418, 0x347a7600, 0x35000000)
          ro space 10240K, 44% used [0x38400000, 0x3887d3a8, 0x3887d400, 0x38e00000)
          rw space 12288K, 52% used [0x38e00000, 0x39449a18, 0x39449c00, 0x39a00000)

      Card table byte_map: [0x00be0000,0x00c90000] byte_map_base: 0x00abe000

      Polling page: 0x001a0000

      Code Cache [0x02640000, 0x02760000, 0x04640000)
       total_blobs=618 nmethods=309 adapters=246 free_code_cache=31616Kb largest_free_block=32374784

      Compilation events (10 events):
      Event: 2.070 Thread 0x00973800 305 java.lang.ref.Reference::<init> (25 bytes)
      Event: 2.070 Thread 0x00973800 nmethod 305 0x0275f6c8 code [0x0275f7c0, 0x0275f870]
      Event: 2.183 Thread 0x00973800 306 java.util.logging.LogRecord::getLevel (5 bytes)
      Event: 2.183 Thread 0x00973800 nmethod 306 0x0275f8c8 code [0x0275f9c0, 0x0275fa40]
      Event: 2.311 Thread 0x00973800 307 java.lang.Long::<init> (10 bytes)
      Event: 2.312 Thread 0x00973800 nmethod 307 0x0275fa88 code [0x0275fb80, 0x0275fc10]
      Event: 2.523 Thread 0x00973800 308 java.nio.Buffer::position (5 bytes)
      Event: 2.523 Thread 0x00973800 nmethod 308 0x0275fc48 code [0x0275fd40, 0x0275fdc0]
      Event: 2.540 Thread 0x00973800 309 java.lang.ref.SoftReference::get (29 bytes)
      Event: 2.540 Thread 0x00973800 nmethod 309 0x0275fe08 code [0x0275ff00, 0x0275ffc0]

      GC Heap History (10 events):
      Event: 2.542 GC heap before
      {Heap before GC invocations=335 (full 0):
       def new generation total 4928K, used 4124K [0x24400000, 0x24950000, 0x29950000)
        eden space 4416K, 93% used [0x24400000, 0x24807268, 0x24850000)
        from space 512K, 0% used [0x248d0000, 0x248d00a8, 0x24950000)
        to space 512K, 0% used [0x24850000, 0x24850000, 0x248d0000)
       tenured generation total 10944K, used 3880K [0x29950000, 0x2a400000, 0x34400000)
         the space 10944K, 35% used [0x29950000, 0x29d1a268, 0x29d1a400, 0x2a400000)
       compacting perm gen total 12288K, used 3741K [0x34400000, 0x35000000, 0x38400000)
         the space 12288K, 30% used [0x34400000, 0x347a7418, 0x347a7600, 0x35000000)
          ro space 10240K, 44% used [0x38400000, 0x3887d3a8, 0x3887d400, 0x38e00000)
          rw space 12288K, 52% used [0x38e00000, 0x39449a18, 0x39449c00, 0x39a00000)
      Event: 2.543 GC heap after
      Heap after GC invocations=336 (full 0):
       def new generation total 4928K, used 0K [0x24400000, 0x24950000, 0x29950000)
        eden space 4416K, 0% used [0x24400000, 0x24400000, 0x24850000)
        from space 512K, 0% used [0x24850000, 0x248500a8, 0x248d0000)
        to space 512K, 0% used [0x248d0000, 0x248d0000, 0x24950000)
       tenured generation total 10944K, used 3880K [0x29950000, 0x2a400000, 0x34400000)
         the space 10944K, 35% used [0x29950000, 0x29d1a268, 0x29d1a400, 0x2a400000)
       compacting perm gen total 12288K, used 3741K [0x34400000, 0x35000000, 0x38400000)
         the space 12288K, 30% used [0x34400000, 0x347a7418, 0x347a7600, 0x35000000)
          ro space 10240K, 44% used [0x38400000, 0x3887d3a8, 0x3887d400, 0x38e00000)
          rw space 12288K, 52% used [0x38e00000, 0x39449a18, 0x39449c00, 0x39a00000)
      }
      Event: 2.548 GC heap before
      {Heap before GC invocations=336 (full 0):
       def new generation total 4928K, used 4124K [0x24400000, 0x24950000, 0x29950000)
        eden space 4416K, 93% used [0x24400000, 0x24807268, 0x24850000)
        from space 512K, 0% used [0x24850000, 0x248500a8, 0x248d0000)
        to space 512K, 0% used [0x248d0000, 0x248d0000, 0x24950000)
       tenured generation total 10944K, used 3880K [0x29950000, 0x2a400000, 0x34400000)
         the space 10944K, 35% used [0x29950000, 0x29d1a268, 0x29d1a400, 0x2a400000)
       compacting perm gen total 12288K, used 3741K [0x34400000, 0x35000000, 0x38400000)
         the space 12288K, 30% used [0x34400000, 0x347a7418, 0x347a7600, 0x35000000)
          ro space 10240K, 44% used [0x38400000, 0x3887d3a8, 0x3887d400, 0x38e00000)
          rw space 12288K, 52% used [0x38e00000, 0x39449a18, 0x39449c00, 0x39a00000)
      Event: 2.549 GC heap after
      Heap after GC invocations=337 (full 0):
       def new generation total 4928K, used 0K [0x24400000, 0x24950000, 0x29950000)
        eden space 4416K, 0% used [0x24400000, 0x24400000, 0x24850000)
        from space 512K, 0% used [0x248d0000, 0x248d00a8, 0x24950000)
        to space 512K, 0% used [0x24850000, 0x24850000, 0x248d0000)
       tenured generation total 10944K, used 3880K [0x29950000, 0x2a400000, 0x34400000)
         the space 10944K, 35% used [0x29950000, 0x29d1a268, 0x29d1a400, 0x2a400000)
       compacting perm gen total 12288K, used 3741K [0x34400000, 0x35000000, 0x38400000)
         the space 12288K, 30% used [0x34400000, 0x347a7418, 0x347a7600, 0x35000000)
          ro space 10240K, 44% used [0x38400000, 0x3887d3a8, 0x3887d400, 0x38e00000)
          rw space 12288K, 52% used [0x38e00000, 0x39449a18, 0x39449c00, 0x39a00000)
      }
      Event: 2.556 GC heap before
      {Heap before GC invocations=337 (full 0):
       def new generation total 4928K, used 4124K [0x24400000, 0x24950000, 0x29950000)
        eden space 4416K, 93% used [0x24400000, 0x24807268, 0x24850000)
        from space 512K, 0% used [0x248d0000, 0x248d00a8, 0x24950000)
        to space 512K, 0% used [0x24850000, 0x24850000, 0x248d0000)
       tenured generation total 10944K, used 3880K [0x29950000, 0x2a400000, 0x34400000)
         the space 10944K, 35% used [0x29950000, 0x29d1a268, 0x29d1a400, 0x2a400000)
       compacting perm gen total 12288K, used 3741K [0x34400000, 0x35000000, 0x38400000)
         the space 12288K, 30% used [0x34400000, 0x347a7418, 0x347a7600, 0x35000000)
          ro space 10240K, 44% used [0x38400000, 0x3887d3a8, 0x3887d400, 0x38e00000)
          rw space 12288K, 52% used [0x38e00000, 0x39449a18, 0x39449c00, 0x39a00000)
      Event: 2.556 GC heap after
      Heap after GC invocations=338 (full 0):
       def new generation total 4928K, used 0K [0x24400000, 0x24950000, 0x29950000)
        eden space 4416K, 0% used [0x24400000, 0x24400000, 0x24850000)
        from space 512K, 0% used [0x24850000, 0x248500a8, 0x248d0000)
        to space 512K, 0% used [0x248d0000, 0x248d0000, 0x24950000)
       tenured generation total 10944K, used 3880K [0x29950000, 0x2a400000, 0x34400000)
         the space 10944K, 35% used [0x29950000, 0x29d1a268, 0x29d1a400, 0x2a400000)
       compacting perm gen total 12288K, used 3741K [0x34400000, 0x35000000, 0x38400000)
         the space 12288K, 30% used [0x34400000, 0x347a7418, 0x347a7600, 0x35000000)
          ro space 10240K, 44% used [0x38400000, 0x3887d3a8, 0x3887d400, 0x38e00000)
          rw space 12288K, 52% used [0x38e00000, 0x39449a18, 0x39449c00, 0x39a00000)
      }
      Event: 2.563 GC heap before
      {Heap before GC invocations=338 (full 0):
       def new generation total 4928K, used 4124K [0x24400000, 0x24950000, 0x29950000)
        eden space 4416K, 93% used [0x24400000, 0x24807268, 0x24850000)
        from space 512K, 0% used [0x24850000, 0x248500a8, 0x248d0000)
        to space 512K, 0% used [0x248d0000, 0x248d0000, 0x24950000)
       tenured generation total 10944K, used 3880K [0x29950000, 0x2a400000, 0x34400000)
         the space 10944K, 35% used [0x29950000, 0x29d1a268, 0x29d1a400, 0x2a400000)
       compacting perm gen total 12288K, used 3741K [0x34400000, 0x35000000, 0x38400000)
         the space 12288K, 30% used [0x34400000, 0x347a7418, 0x347a7600, 0x35000000)
          ro space 10240K, 44% used [0x38400000, 0x3887d3a8, 0x3887d400, 0x38e00000)
          rw space 12288K, 52% used [0x38e00000, 0x39449a18, 0x39449c00, 0x39a00000)
      Event: 2.563 GC heap after
      Heap after GC invocations=339 (full 0):
       def new generation total 4928K, used 0K [0x24400000, 0x24950000, 0x29950000)
        eden space 4416K, 0% used [0x24400000, 0x24400000, 0x24850000)
        from space 512K, 0% used [0x248d0000, 0x248d00a8, 0x24950000)
        to space 512K, 0% used [0x24850000, 0x24850000, 0x248d0000)
       tenured generation total 10944K, used 3880K [0x29950000, 0x2a400000, 0x34400000)
         the space 10944K, 35% used [0x29950000, 0x29d1a268, 0x29d1a400, 0x2a400000)
       compacting perm gen total 12288K, used 3741K [0x34400000, 0x35000000, 0x38400000)
         the space 12288K, 30% used [0x34400000, 0x347a7418, 0x347a7600, 0x35000000)
          ro space 10240K, 44% used [0x38400000, 0x3887d3a8, 0x3887d400, 0x38e00000)
          rw space 12288K, 52% used [0x38e00000, 0x39449a18, 0x39449c00, 0x39a00000)
      }
      Event: 2.569 GC heap before
      {Heap before GC invocations=339 (full 0):
       def new generation total 4928K, used 4124K [0x24400000, 0x24950000, 0x29950000)
        eden space 4416K, 93% used [0x24400000, 0x24807268, 0x24850000)
        from space 512K, 0% used [0x248d0000, 0x248d00a8, 0x24950000)
        to space 512K, 0% used [0x24850000, 0x24850000, 0x248d0000)
       tenured generation total 10944K, used 3880K [0x29950000, 0x2a400000, 0x34400000)
         the space 10944K, 35% used [0x29950000, 0x29d1a268, 0x29d1a400, 0x2a400000)
       compacting perm gen total 12288K, used 3741K [0x34400000, 0x35000000, 0x38400000)
         the space 12288K, 30% used [0x34400000, 0x347a7418, 0x347a7600, 0x35000000)
          ro space 10240K, 44% used [0x38400000, 0x3887d3a8, 0x3887d400, 0x38e00000)
          rw space 12288K, 52% used [0x38e00000, 0x39449a18, 0x39449c00, 0x39a00000)
      Event: 2.569 GC heap after
      Heap after GC invocations=340 (full 0):
       def new generation total 4928K, used 0K [0x24400000, 0x24950000, 0x29950000)
        eden space 4416K, 0% used [0x24400000, 0x24400000, 0x24850000)
        from space 512K, 0% used [0x24850000, 0x248500a8, 0x248d0000)
        to space 512K, 0% used [0x248d0000, 0x248d0000, 0x24950000)
       tenured generation total 10944K, used 3880K [0x29950000, 0x2a400000, 0x34400000)
         the space 10944K, 35% used [0x29950000, 0x29d1a268, 0x29d1a400, 0x2a400000)
       compacting perm gen total 12288K, used 3741K [0x34400000, 0x35000000, 0x38400000)
         the space 12288K, 30% used [0x34400000, 0x347a7418, 0x347a7600, 0x35000000)
          ro space 10240K, 44% used [0x38400000, 0x3887d3a8, 0x3887d400, 0x38e00000)
          rw space 12288K, 52% used [0x38e00000, 0x39449a18, 0x39449c00, 0x39a00000)
      }

      Deoptimization events (0 events):
      No events

      Internal exceptions (10 events):
      Event: 0.144 Thread 0x04e6dc00 Threw 0x24661750 at C:\re\jdk7u80\2329\hotspot\src\share\vm\prims\jvm.cpp:1319
      Event: 0.144 Thread 0x04e6dc00 Threw 0x246664b8 at C:\re\jdk7u80\2329\hotspot\src\share\vm\prims\jvm.cpp:1319
      Event: 0.145 Thread 0x04e6dc00 Threw 0x2466bca8 at C:\re\jdk7u80\2329\hotspot\src\share\vm\prims\jvm.cpp:1319
      Event: 0.145 Thread 0x04e6dc00 Threw 0x24670bc0 at C:\re\jdk7u80\2329\hotspot\src\share\vm\prims\jvm.cpp:1319
      Event: 0.193 Thread 0x04e6dc00 Threw 0x247a18e0 at C:\re\jdk7u80\2329\hotspot\src\share\vm\prims\jvm.cpp:1319
      Event: 0.291 Thread 0x04e6dc00 Threw 0x247dec58 at C:\re\jdk7u80\2329\hotspot\src\share\vm\prims\jvm.cpp:1319
      Event: 0.317 Thread 0x04e6dc00 Threw 0x24606238 at C:\re\jdk7u80\2329\hotspot\src\share\vm\prims\jvm.cpp:1319
      Event: 0.318 Thread 0x04e6dc00 Threw 0x2460b320 at C:\re\jdk7u80\2329\hotspot\src\share\vm\prims\jvm.cpp:1319
      Event: 0.318 Thread 0x04e6dc00 Threw 0x24611448 at C:\re\jdk7u80\2329\hotspot\src\share\vm\prims\jvm.cpp:1319
      Event: 0.318 Thread 0x04e6dc00 Threw 0x24616838 at C:\re\jdk7u80\2329\hotspot\src\share\vm\prims\jvm.cpp:1319

      Events (10 events):
      Event: 2.542 Executing VM operation: GenCollectForAllocation
      Event: 2.543 Executing VM operation: GenCollectForAllocation done
      Event: 2.548 Executing VM operation: GenCollectForAllocation
      Event: 2.549 Executing VM operation: GenCollectForAllocation done
      Event: 2.556 Executing VM operation: GenCollectForAllocation
      Event: 2.556 Executing VM operation: GenCollectForAllocation done
      Event: 2.563 Executing VM operation: GenCollectForAllocation
      Event: 2.563 Executing VM operation: GenCollectForAllocation done
      Event: 2.569 Executing VM operation: GenCollectForAllocation
      Event: 2.569 Executing VM operation: GenCollectForAllocation done


      Dynamic libraries:
      0x00e70000 - 0x00e9f000 D:\usr\java\jdk1.7.0_80\jre\bin\javaw.exe
      0x77910000 - 0x77a90000 C:\windows\SysWOW64\ntdll.dll
      0x76b20000 - 0x76c30000 C:\windows\syswow64\kernel32.dll
      0x76f40000 - 0x76f87000 C:\windows\syswow64\KERNELBASE.dll
      0x75040000 - 0x750e1000 C:\windows\syswow64\ADVAPI32.dll
      0x76960000 - 0x76a0c000 C:\windows\syswow64\msvcrt.dll
      0x75020000 - 0x75039000 C:\windows\SysWOW64\sechost.dll
      0x750f0000 - 0x751e0000 C:\windows\syswow64\RPCRT4.dll
      0x74fc0000 - 0x75020000 C:\windows\syswow64\SspiCli.dll
      0x74fb0000 - 0x74fbc000 C:\windows\syswow64\CRYPTBASE.dll
      0x75650000 - 0x75750000 C:\windows\syswow64\USER32.dll
      0x76d90000 - 0x76e20000 C:\windows\syswow64\GDI32.dll
      0x75430000 - 0x7543a000 C:\windows\syswow64\LPK.dll
      0x76f90000 - 0x7702d000 C:\windows\syswow64\USP10.dll
      0x73640000 - 0x737de000 C:\windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18837_none_41e855142bd5705d\COMCTL32.dll
      0x763a0000 - 0x763f7000 C:\windows\syswow64\SHLWAPI.dll
      0x767b0000 - 0x76810000 C:\windows\system32\IMM32.DLL
      0x76400000 - 0x764cc000 C:\windows\syswow64\MSCTF.dll
      0x74e00000 - 0x74e38000 C:\Windows\SysWOW64\nvinit.dll
      0x748e0000 - 0x74926000 C:\PROGRA~2\Sophos\SOPHOS~1\SOPHOS~1.DLL
      0x753a0000 - 0x753a5000 C:\windows\syswow64\PSAPI.DLL
      0x72830000 - 0x728ef000 D:\usr\java\jdk1.7.0_80\jre\bin\msvcr100.dll
      0x5d970000 - 0x5dcfb000 D:\usr\java\jdk1.7.0_80\jre\bin\client\jvm.dll
      0x72270000 - 0x72277000 C:\windows\system32\WSOCK32.dll
      0x75440000 - 0x75475000 C:\windows\syswow64\WS2_32.dll
      0x767a0000 - 0x767a6000 C:\windows\syswow64\NSI.dll
      0x737e0000 - 0x73812000 C:\windows\system32\WINMM.dll
      0x749b0000 - 0x749bc000 D:\usr\java\jdk1.7.0_80\jre\bin\verify.dll
      0x74980000 - 0x749a1000 D:\usr\java\jdk1.7.0_80\jre\bin\java.dll
      0x73850000 - 0x73863000 D:\usr\java\jdk1.7.0_80\jre\bin\zip.dll
      0x74ab0000 - 0x74abd000 D:\usr\java\jdk1.7.0_80\jre\bin\prism-d3d.dll
      0x6d7f0000 - 0x6d9b3000 C:\windows\system32\d3d9.dll
      0x74ea0000 - 0x74ea9000 C:\windows\system32\VERSION.dll
      0x71a30000 - 0x71a36000 C:\windows\system32\d3d8thk.dll
      0x71a40000 - 0x71a53000 C:\windows\system32\dwmapi.dll
      0x71b80000 - 0x71c00000 C:\windows\system32\uxtheme.dll
      0x67ae0000 - 0x68cb3000 C:\windows\system32\igdumdim32.dll
      0x6b170000 - 0x6b4db000 C:\windows\system32\igdusc32.dll
      0x73320000 - 0x73347000 D:\usr\java\jdk1.7.0_80\jre\bin\glass.dll
      0x753b0000 - 0x7542b000 C:\windows\syswow64\COMDLG32.dll
      0x75750000 - 0x7639b000 C:\windows\syswow64\SHELL32.dll
      0x76c30000 - 0x76d8c000 C:\windows\syswow64\ole32.dll
      0x76710000 - 0x7679f000 C:\windows\syswow64\OLEAUT32.dll
      0x732a0000 - 0x7331c000 D:\usr\java\jdk1.7.0_80\jre\bin\libxml2.dll
      0x73270000 - 0x7329a000 D:\usr\java\jdk1.7.0_80\jre\bin\libxslt.dll
      0x5ce00000 - 0x5d961000 D:\usr\java\jdk1.7.0_80\jre\bin\jfxwebkit.dll
      0x74b70000 - 0x74b86000 C:\windows\system32\CRYPTSP.dll
      0x74b30000 - 0x74b6b000 C:\windows\system32\rsaenh.dll
      0x751e0000 - 0x75263000 C:\windows\syswow64\CLBCatQ.DLL
      0x6e7d0000 - 0x6e901000 C:\windows\system32\WindowsCodecs.dll
      0x72300000 - 0x7234c000 C:\windows\system32\apphelp.dll
      0x679f0000 - 0x67a21000 C:\windows\system32\EhStorShell.dll
      0x754b0000 - 0x7564d000 C:\windows\syswow64\SETUPAPI.dll
      0x75480000 - 0x754a7000 C:\windows\syswow64\CFGMGR32.dll
      0x76a70000 - 0x76a82000 C:\windows\syswow64\DEVOBJ.dll
      0x6f3c0000 - 0x6f4b5000 C:\windows\system32\PROPSYS.dll
      0x671d0000 - 0x675d9000 C:\PROGRA~2\MICROS~2\Office14\GROOVEEX.DLL
      0x74be0000 - 0x74c83000 C:\windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\MSVCR90.dll
      0x74c90000 - 0x74d1e000 C:\windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\MSVCP90.dll
      0x74d20000 - 0x74d4b000 C:\windows\WinSxS\x86_microsoft.vc90.atl_1fc8b3b9a1e18e3b_9.0.30729.6161_none_51cd0a7abbe4e19b\ATL90.DLL
      0x66db0000 - 0x671ca000 C:\PROGRA~2\COMMON~1\MICROS~1\OFFICE14\Cultures\office.odf
      0x66540000 - 0x66da5000 C:\PROGRA~2\MICROS~2\Office14\1033\GrooveIntlResource.dll
      0x67a70000 - 0x67ae0000 C:\windows\system32\ntshrui.dll
      0x74140000 - 0x74159000 C:\windows\system32\srvcli.dll
      0x71830000 - 0x7183b000 C:\windows\system32\cscapi.dll
      0x71590000 - 0x7159a000 C:\windows\system32\slc.dll
      0x73240000 - 0x73261000 C:\Program Files (x86)\Common Files\Microsoft Shared\Ink\rtscom.dll
      0x73200000 - 0x7323d000 D:\usr\java\jdk1.7.0_80\jre\bin\javafx-font.dll
      0x10000000 - 0x10038000 C:\Program Files\ThinkPad\Bluetooth Software\SysWOW64\BtMmHook.dll
      0x73940000 - 0x73954000 D:\usr\java\jdk1.7.0_80\jre\bin\net.dll
      0x730d0000 - 0x730f2000 C:\ProgramData\Sophos\Web Intelligence\swi_ifslsp.dll
      0x73090000 - 0x730cc000 C:\windows\system32\mswsock.dll
      0x71580000 - 0x71586000 C:\windows\System32\wship6.dll
      0x73840000 - 0x7384f000 D:\usr\java\jdk1.7.0_80\jre\bin\nio.dll

      VM Arguments:
      jvm_args: -Dfile.encoding=UTF-8 -Xbootclasspath:D:\usr\java\jdk1.7.0_80\jre\lib\resources.jar;D:\usr\java\jdk1.7.0_80\jre\lib\rt.jar;D:\usr\java\jdk1.7.0_80\jre\lib\jsse.jar;D:\usr\java\jdk1.7.0_80\jre\lib\jce.jar;D:\usr\java\jdk1.7.0_80\jre\lib\charsets.jar;D:\usr\java\jdk1.7.0_80\jre\lib\jfr.jar;D:\usr\java\jdk1.7.0_80\jre\lib\jfxrt.jar
      java_command: TestJFX2
      Launcher Type: SUN_STANDARD

      Environment Variables:
      JAVA_HOME=D:\usr\java\jdk1.7.0_80\jre
      PATH=C:/Program Files (x86)/Java/jre7/bin/client;C:/Program Files (x86)/Java/jre7/bin;C:/Program Files (x86)/Java/jre7/lib/i386;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Lenovo\Access Connections\;D:\usr\java\jdk1.7.0_71\bin;C:\Users\Albert.Guirao\AppData\Local\Atlassian\SourceTree\git_local\bin;D:\usr\tools\oracle\instantclient-basic;C:\Program Files\SourceGear\Common\DiffMerge\;C:\Program Files\Perforce;C:\Program Files\Perforce\DVCS\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\OpenVPN\bin;C:\Program Files (x86)\nodejs\;C:\Users\Albert.Guirao\AppData\Roaming\npm;D:\usr\ide\eclipseDGR;
      USERNAME=albert.guirao
      OS=Windows_NT
      PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel



      --------------- S Y S T E M ---------------

      OS: Windows 7 , 64 bit Build 7601 Service Pack 1

      CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 58 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, erms, ht, tsc, tscinvbit, tscinv

      Memory: 4k page, physical 8078996k(3668920k free), swap 16191396k(9421148k free)

      vm_info: Java HotSpot(TM) Client VM (24.80-b11) for windows-x86 JRE (1.7.0_80-b15), built on Apr 10 2015 13:33:35 by "java_re" with unknown MS VC++:1600

      time: Wed Mar 09 08:42:45 2016
      elapsed time: 2 seconds


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import java.util.logging.Level;
      import java.util.logging.Logger;

      import javafx.application.Application;
      import javafx.beans.value.ChangeListener;
      import javafx.beans.value.ObservableValue;
      import javafx.concurrent.Worker.State;
      import javafx.scene.Scene;
      import javafx.scene.layout.Region;
      import javafx.scene.paint.Color;
      import javafx.scene.web.WebEngine;
      import javafx.scene.web.WebView;
      import javafx.stage.Stage;
      import netscape.javascript.JSObject;


      public class TestJFX2 extends Application {

      @Override
      public void start(Stage stage) throws Exception {
      stage.setScene(new Scene(new Browser2(), 800, 600, Color.web("#666970")));
      stage.show();
      }

      public static void main(String[] args) {
      launch(args);
      }

      }

      class Browser2 extends Region {

      public Browser2() {
      WebView browser = new WebView();
      final WebEngine webEngine = browser.getEngine();

      webEngine.getLoadWorker().stateProperty().addListener(new ChangeListener<State>() {

      public void changed(ObservableValue<? extends State> arg0, State arg1, State newState) {
      if (newState == State.SUCCEEDED) {
      int size = 1024*1024;
      JSObject win = (JSObject) webEngine.executeScript("window");
      win.setMember("java", new JavaApp(size));
      for (int i=0;i<10000000;i++) {
      webEngine.executeScript("java.getString();");
      Logger.getLogger(getClass().getName()).log(Level.INFO, "Iteration: " + i + "; Loaded: " + (size/1024/1024)*(i+1) + " MB");
      }
      }
      }
      });

      webEngine.loadContent("<html><body></body></html>");

      getChildren().add(browser);
      }

      public class JavaApp {

      private String str;

      public JavaApp(int size) {
      StringBuilder sb = new StringBuilder(size);
      for (int i=0;i<size;i++) {
      sb.append('a');
      }
      str = sb.toString();
      }

      public String getString() {
      return str;
      }

      }

      }

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Didn't find any.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mbilla Murali Billa
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: