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

JVM crashes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7u15
    • javafx
    • win_86, win64_86, Java 1.7.0_17, SWT 3.7.2

    • web

      The problem is when embedding the WebView in javafx.embed.swt.FXCanvas.
      I tried the pdf.js (http://mozilla.github.com/pdf.js/web/viewer.html) pdf viewer of Mozilla. It works wonderfully on Mac Lion 64 bit. But it crashes on Windows 32 and 64.

      Here is the log and the 2 relevant java files (FXSWTBrowser and FXSWTBrowserDialog). I can provide an executable or the exported project if needed.

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d9b0362, pid=4140, tid=6432
      #
      # JRE version: 7.0_17-b02
      # Java VM: Java HotSpot(TM) Client VM (23.7-b01 mixed mode windows-x86 )
      # Problematic frame:
      # C [jfxwebkit.dll+0x370362] Java_com_sun_webpane_webkit_dom_JSObject_callImpl+0x1ba2
      #
      # 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.sun.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 (0x009c9800): JavaThread "JavaFX Application Thread" [_thread_in_native, id=6432, stack(0x00030000,0x00130000)]

      siginfo: ExceptionCode=0xc0000005, reading address 0x000002f8

      Registers:
      EAX=0x000002f8, EBX=0x1c6c4538, ECX=0x000002c8, EDX=0x6df4b854
      ESP=0x0012ee6c, EBP=0x0012eeb8, ESI=0x1bf3fc28, EDI=0x18f9fab8
      EIP=0x6d9b0362, EFLAGS=0x00010202

      Top of Stack: (sp=0x0012ee6c)
      0x0012ee6c: 8b8134f3 3fe8ee97 00000000 00000000
      0x0012ee7c: 1bf3fc28 6d92589d e63d3c38 1c5a1668
      0x0012ee8c: 1c1030bc 00000000 1c6c4538 cccccccd
      0x0012ee9c: 3feccccc 18fd9ef5 41d45472 0012ef04
      0x0012eeac: 0012ef04 6dec8728 00000000 00007ff2
      0x0012eebc: 6d92962c 00000090 1c1ba140 00007ff2
      0x0012eecc: 00007ff2 1c5a1668 1c1ba140 00000000
      0x0012eedc: 6d927e6b 1c5a1668 1c1ba140 00007ff2

      Instructions: (pc=0x6d9b0362)
      0x6d9b0342: e8 d8 d9 df e0 f6 c4 41 75 57 8b 46 08 8b 88 f8
      0x6d9b0352: 01 00 00 6a 00 83 ec 08 dd 1c 24 e8 7e 65 f5 ff
      0x6d9b0362: 8b 00 51 8b cc 89 64 24 14 89 01 85 c0 74 03 83
      0x6d9b0372: 00 02 8b 46 08 8b 90 14 03 00 00 8b 82 34 01 00


      Register to memory mapping:

      EAX=0x000002f8 is an unknown value
      EBX=0x1c6c4538 is an unknown value
      ECX=0x000002c8 is an unknown value
      EDX=0x6df4b854 is an unknown value
      ESP=0x0012ee6c is pointing into the stack for thread: 0x009c9800
      EBP=0x0012eeb8 is pointing into the stack for thread: 0x009c9800
      ESI=0x1bf3fc28 is an unknown value
      EDI=0x18f9fab8 is an unknown value


      Stack: [0x00030000,0x00130000], sp=0x0012ee6c, free space=1019k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C [jfxwebkit.dll+0x370362] Java_com_sun_webpane_webkit_dom_JSObject_callImpl+0x1ba2

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j com.sun.webpane.webkit.network.URLLoader.twkDidReceiveData(Ljava/nio/ByteBuffer;IIJ)V+0
      j com.sun.webpane.webkit.network.URLLoader.access$1200(Ljava/nio/ByteBuffer;IIJ)V+4
      j com.sun.webpane.webkit.network.URLLoader$5.run()V+35
      v ~StubRoutines::call_stub
      J org.eclipse.swt.internal.win32.OS.DispatchMessageW(Lorg/eclipse/swt/internal/win32/MSG;)I
      J org.eclipse.swt.widgets.Display.readAndDispatch()Z
      j org.eclipse.ui.internal.Workbench.runEventLoop(Lorg/eclipse/jface/window/Window$IExceptionHandler;Lorg/eclipse/swt/widgets/Display;)V+9
      j org.eclipse.ui.internal.Workbench.runUI()I+555
      j org.eclipse.ui.internal.Workbench.access$4(Lorg/eclipse/ui/internal/Workbench;)I+1
      j org.eclipse.ui.internal.Workbench$7.run()V+73
      j org.eclipse.core.databinding.observable.Realm.runWithDefault(Lorg/eclipse/core/databinding/observable/Realm;Ljava/lang/Runnable;)V+12
      j org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+18
      j org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2
      j test.javafx.Application.start(Lorg/eclipse/equinox/app/IApplicationContext;)Ljava/lang/Object;+12
      j org.eclipse.equinox.internal.app.EclipseAppHandle.run(Ljava/lang/Object;)Ljava/lang/Object;+135
      j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ljava/lang/Object;)Ljava/lang/Object;+103
      j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ljava/lang/Object;)Ljava/lang/Object;+29
      j org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+149
      j org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+183
      v ~StubRoutines::call_stub
      j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
      j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
      j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
      j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+57
      j org.eclipse.equinox.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+211
      j org.eclipse.equinox.launcher.Main.basicRun([Ljava/lang/String;)V+126
      j org.eclipse.equinox.launcher.Main.run([Ljava/lang/String;)I+4
      v ~StubRoutines::call_stub

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

      Java Threads: ( => current thread )
        0x1c04d800 JavaThread "URL-Loader-92" daemon [_thread_blocked, id=7872, stack(0x22af0000,0x22bf0000)]
        0x1c882c00 JavaThread "URL-Loader-91" daemon [_thread_blocked, id=7976, stack(0x229f0000,0x22af0000)]
        0x1bddc400 JavaThread "URL-Loader-90" daemon [_thread_blocked, id=5228, stack(0x228f0000,0x229f0000)]
        0x1c897c00 JavaThread "URL-Loader-89" daemon [_thread_blocked, id=6136, stack(0x227f0000,0x228f0000)]
        0x195e9000 JavaThread "URL-Loader-88" daemon [_thread_blocked, id=2112, stack(0x226f0000,0x227f0000)]
        0x1c60bc00 JavaThread "URL-Loader-87" daemon [_thread_blocked, id=500, stack(0x225f0000,0x226f0000)]
        0x1bfef400 JavaThread "URL-Loader-86" daemon [_thread_blocked, id=5120, stack(0x224f0000,0x225f0000)]
        0x1c071800 JavaThread "URL-Loader-85" daemon [_thread_blocked, id=1652, stack(0x223f0000,0x224f0000)]
        0x1c05d400 JavaThread "URL-Loader-84" daemon [_thread_blocked, id=7604, stack(0x222f0000,0x223f0000)]
        0x1c548c00 JavaThread "URL-Loader-83" daemon [_thread_blocked, id=6472, stack(0x1fd20000,0x1fe20000)]
        0x1baa0800 JavaThread "URL-Loader-82" daemon [_thread_blocked, id=4180, stack(0x1fa80000,0x1fb80000)]
        0x1c541800 JavaThread "URL-Loader-81" daemon [_thread_blocked, id=5164, stack(0x1f980000,0x1fa80000)]
        0x19456000 JavaThread "URL-Loader-80" daemon [_thread_blocked, id=5336, stack(0x1f880000,0x1f980000)]
        0x1c9fc800 JavaThread "URL-Loader-79" daemon [_thread_blocked, id=7928, stack(0x1f780000,0x1f880000)]
        0x17098400 JavaThread "URL-Loader-78" daemon [_thread_blocked, id=5484, stack(0x1ae70000,0x1af70000)]
        0x1bc07000 JavaThread "URL-Loader-77" daemon [_thread_blocked, id=1304, stack(0x1cb80000,0x1cc80000)]
        0x1be2c400 JavaThread "Keep-Alive-Timer" daemon [_thread_blocked, id=4484, stack(0x1b180000,0x1b280000)]
        0x18e6d400 JavaThread "URL-Loader-76" daemon [_thread_blocked, id=5928, stack(0x1d770000,0x1d870000)]
        0x195d1000 JavaThread "AWT-Windows" daemon [_thread_in_native, id=7360, stack(0x1d670000,0x1d770000)]
        0x18fd9400 JavaThread "Keep-Alive-SocketCleaner" daemon [_thread_blocked, id=7636, stack(0x1aaf0000,0x1abf0000)]
        0x191f7800 JavaThread "Prism Font Disposer" daemon [_thread_blocked, id=4868, stack(0x1ad40000,0x1ae40000)]
        0x190af400 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=6032, stack(0x18c50000,0x18d50000)]
        0x18fb4c00 JavaThread "Disposer" daemon [_thread_blocked, id=6792, stack(0x1a1b0000,0x1a2b0000)]
        0x18f14c00 JavaThread "Thread-3" daemon [_thread_in_native, id=7576, stack(0x1a0b0000,0x1a1b0000)]
        0x18f05c00 JavaThread "Disposer" daemon [_thread_blocked, id=6028, stack(0x19eb0000,0x19fb0000)]
        0x18eee400 JavaThread "QuantumRenderer-0" daemon [_thread_blocked, id=8080, stack(0x19db0000,0x19eb0000)]
        0x17b3c400 JavaThread "Worker-0" [_thread_blocked, id=7756, stack(0x18d50000,0x18e50000)]
        0x178c1000 JavaThread "[ThreadPool Manager] - Idle Thread" daemon [_thread_blocked, id=3376, stack(0x18170000,0x18270000)]
        0x17832800 JavaThread "Worker-JM" [_thread_blocked, id=6200, stack(0x18060000,0x18160000)]
        0x177e1000 JavaThread "[Timer] - Main Queue Handler" daemon [_thread_blocked, id=5728, stack(0x17f60000,0x18060000)]
        0x1779b800 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=1864, stack(0x17e60000,0x17f60000)]
        0x1778e400 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=4304, stack(0x17d60000,0x17e60000)]
        0x17782400 JavaThread "State Data Manager" daemon [_thread_blocked, id=4896, stack(0x17c60000,0x17d60000)]
        0x17795800 JavaThread "Framework Active Thread" [_thread_blocked, id=5856, stack(0x17b60000,0x17c60000)]
        0x16ff9400 JavaThread "Service Thread" daemon [_thread_blocked, id=6336, stack(0x174d0000,0x175d0000)]
        0x16ff3800 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=792, stack(0x173d0000,0x174d0000)]
        0x16ff1c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=4444, stack(0x172d0000,0x173d0000)]
        0x16ff0800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3344, stack(0x171d0000,0x172d0000)]
        0x02b76800 JavaThread "Finalizer" daemon [_thread_blocked, id=6892, stack(0x16ed0000,0x16fd0000)]
        0x02b71800 JavaThread "Reference Handler" daemon [_thread_blocked, id=6288, stack(0x16dd0000,0x16ed0000)]
      =>0x009c9800 JavaThread "JavaFX Application Thread" [_thread_in_native, id=6432, stack(0x00030000,0x00130000)]

      Other Threads:
        0x02b6c000 VMThread [stack: 0x16cd0000,0x16dd0000] [id=2432]
        0x1700c800 WatcherThread [stack: 0x175d0000,0x176d0000] [id=7688]

      VM state:not at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: None

      Heap
       def new generation total 47616K, used 39534K [0x02b90000, 0x05f30000, 0x080e0000)
        eden space 42368K, 81% used [0x02b90000, 0x04d474d8, 0x054f0000)
        from space 5248K, 95% used [0x05a10000, 0x05ef4338, 0x05f30000)
        to space 5248K, 0% used [0x054f0000, 0x054f0000, 0x05a10000)
       tenured generation total 105588K, used 73682K [0x080e0000, 0x0e7fd000, 0x12b90000)
         the space 105588K, 69% used [0x080e0000, 0x0c8d4a20, 0x0c8d4c00, 0x0e7fd000)
       compacting perm gen total 25088K, used 25060K [0x12b90000, 0x14410000, 0x16b90000)
         the space 25088K, 99% used [0x12b90000, 0x144091d8, 0x14409200, 0x14410000)
      No shared spaces configured.

      Card table byte_map: [0x16b90000,0x16c40000] byte_map_base: 0x16b7a380

      Polling page: 0x009e0000

      Code Cache [0x00a10000, 0x00e30000, 0x02a10000)
       total_blobs=2590 nmethods=2195 adapters=329 free_code_cache=28548Kb largest_free_block=29232512

      Compilation events (10 events):
      Event: 114.094 Thread 0x16ff3800 2189 ! sun.nio.ch.FileChannelImpl::read (244 bytes)
      Event: 114.095 Thread 0x16ff3800 nmethod 2189 0x00e2d388 code [0x00e2d530, 0x00e2dab4]
      Event: 114.829 Thread 0x16ff3800 2190 com.sun.javafx.tk.Toolkit::checkFxUserThread (40 bytes)
      Event: 114.830 Thread 0x16ff3800 nmethod 2190 0x00e2e108 code [0x00e2e260, 0x00e2e64c]
      Event: 114.832 Thread 0x16ff3800 2191 sun.nio.cs.US_ASCII$Encoder::encode (107 bytes)
      Event: 114.832 Thread 0x16ff3800 nmethod 2191 0x00e2e988 code [0x00e2ea90, 0x00e2ecb0]
      Event: 114.956 Thread 0x16ff3800 2192 com.sun.webpane.platform.graphics.WCRectangle::getIntX (6 bytes)
      Event: 114.956 Thread 0x16ff3800 nmethod 2192 0x00e2ee88 code [0x00e2ef80, 0x00e2f020]
      Event: 114.956 Thread 0x16ff3800 2193 com.sun.webpane.platform.graphics.WCRectangle::getIntY (6 bytes)
      Event: 114.956 Thread 0x16ff3800 nmethod 2193 0x00e2f088 code [0x00e2f180, 0x00e2f220]

      GC Heap History (10 events):
      Event: 106.701 GC heap before
      {Heap before GC invocations=126 (full 7):
       def new generation total 34496K, used 29565K [0x02b90000, 0x050f0000, 0x080e0000)
        eden space 30720K, 95% used [0x02b90000, 0x04844ae8, 0x04990000)
        from space 3776K, 4% used [0x04d40000, 0x04d6ab38, 0x050f0000)
        to space 3776K, 0% used [0x04990000, 0x04990000, 0x04d40000)
       tenured generation total 76492K, used 62324K [0x080e0000, 0x0cb93000, 0x12b90000)
         the space 76492K, 81% used [0x080e0000, 0x0bdbd398, 0x0bdbd400, 0x0cb93000)
       compacting perm gen total 25088K, used 25059K [0x12b90000, 0x14410000, 0x16b90000)
         the space 25088K, 99% used [0x12b90000, 0x14408f30, 0x14409000, 0x14410000)
      No shared spaces configured.
      Event: 106.704 GC heap after
      Heap after GC invocations=127 (full 7):
       def new generation total 34496K, used 99K [0x02b90000, 0x050f0000, 0x080e0000)
        eden space 30720K, 0% used [0x02b90000, 0x02b90000, 0x04990000)
        from space 3776K, 2% used [0x04990000, 0x049a8e08, 0x04d40000)
        to space 3776K, 0% used [0x04d40000, 0x04d40000, 0x050f0000)
       tenured generation total 76492K, used 62324K [0x080e0000, 0x0cb93000, 0x12b90000)
         the space 76492K, 81% used [0x080e0000, 0x0bdbd398, 0x0bdbd400, 0x0cb93000)
       compacting perm gen total 25088K, used 25059K [0x12b90000, 0x14410000, 0x16b90000)
         the space 25088K, 99% used [0x12b90000, 0x14408f30, 0x14409000, 0x14410000)
      No shared spaces configured.
      }
      Event: 109.640 GC heap before
      {Heap before GC invocations=127 (full 7):
       def new generation total 34496K, used 29937K [0x02b90000, 0x050f0000, 0x080e0000)
        eden space 30720K, 97% used [0x02b90000, 0x048b36a8, 0x04990000)
        from space 3776K, 2% used [0x04990000, 0x049a8e08, 0x04d40000)
        to space 3776K, 0% used [0x04d40000, 0x04d40000, 0x050f0000)
       tenured generation total 76492K, used 62324K [0x080e0000, 0x0cb93000, 0x12b90000)
         the space 76492K, 81% used [0x080e0000, 0x0bdbd398, 0x0bdbd400, 0x0cb93000)
       compacting perm gen total 25088K, used 25059K [0x12b90000, 0x14410000, 0x16b90000)
         the space 25088K, 99% used [0x12b90000, 0x14408f80, 0x14409000, 0x14410000)
      No shared spaces configured.
      Event: 109.643 GC heap after
      Heap after GC invocations=128 (full 7):
       def new generation total 34496K, used 91K [0x02b90000, 0x050f0000, 0x080e0000)
        eden space 30720K, 0% used [0x02b90000, 0x02b90000, 0x04990000)
        from space 3776K, 2% used [0x04d40000, 0x04d56e70, 0x050f0000)
        to space 3776K, 0% used [0x04990000, 0x04990000, 0x04d40000)
       tenured generation total 76492K, used 62324K [0x080e0000, 0x0cb93000, 0x12b90000)
         the space 76492K, 81% used [0x080e0000, 0x0bdbd398, 0x0bdbd400, 0x0cb93000)
       compacting perm gen total 25088K, used 25059K [0x12b90000, 0x14410000, 0x16b90000)
         the space 25088K, 99% used [0x12b90000, 0x14408f80, 0x14409000, 0x14410000)
      No shared spaces configured.
      }
      Event: 112.133 GC heap before
      {Heap before GC invocations=128 (full 7):
       def new generation total 34496K, used 30725K [0x02b90000, 0x050f0000, 0x080e0000)
        eden space 30720K, 99% used [0x02b90000, 0x0497a640, 0x04990000)
        from space 3776K, 2% used [0x04d40000, 0x04d56e70, 0x050f0000)
        to space 3776K, 0% used [0x04990000, 0x04990000, 0x04d40000)
       tenured generation total 76492K, used 62324K [0x080e0000, 0x0cb93000, 0x12b90000)
         the space 76492K, 81% used [0x080e0000, 0x0bdbd398, 0x0bdbd400, 0x0cb93000)
       compacting perm gen total 25088K, used 25059K [0x12b90000, 0x14410000, 0x16b90000)
         the space 25088K, 99% used [0x12b90000, 0x14408fb0, 0x14409000, 0x14410000)
      No shared spaces configured.
      Event: 112.149 GC heap after
      Heap after GC invocations=129 (full 7):
       def new generation total 34496K, used 2766K [0x02b90000, 0x050f0000, 0x080e0000)
        eden space 30720K, 0% used [0x02b90000, 0x02b90000, 0x04990000)
        from space 3776K, 73% used [0x04990000, 0x04c43908, 0x04d40000)
        to space 3776K, 0% used [0x04d40000, 0x04d40000, 0x050f0000)
       tenured generation total 76492K, used 69975K [0x080e0000, 0x0cb93000, 0x12b90000)
         the space 76492K, 91% used [0x080e0000, 0x0c535cb8, 0x0c535e00, 0x0cb93000)
       compacting perm gen total 25088K, used 25059K [0x12b90000, 0x14410000, 0x16b90000)
         the space 25088K, 99% used [0x12b90000, 0x14408fb0, 0x14409000, 0x14410000)
      No shared spaces configured.
      }
      Event: 112.534 GC heap before
      {Heap before GC invocations=129 (full 7):
       def new generation total 34496K, used 33473K [0x02b90000, 0x050f0000, 0x080e0000)
        eden space 30720K, 99% used [0x02b90000, 0x0498cc88, 0x04990000)
        from space 3776K, 73% used [0x04990000, 0x04c43908, 0x04d40000)
        to space 3776K, 0% used [0x04d40000, 0x04d40000, 0x050f0000)
       tenured generation total 76492K, used 69975K [0x080e0000, 0x0cb93000, 0x12b90000)
         the space 76492K, 91% used [0x080e0000, 0x0c535cb8, 0x0c535e00, 0x0cb93000)
       compacting perm gen total 25088K, used 25070K [0x12b90000, 0x14410000, 0x16b90000)
         the space 25088K, 99% used [0x12b90000, 0x1440ba18, 0x1440bc00, 0x14410000)
      No shared spaces configured.
      Event: 112.721 GC heap after
      Heap after GC invocations=130 (full 8):
       def new generation total 47616K, used 0K [0x02b90000, 0x05f30000, 0x080e0000)
        eden space 42368K, 0% used [0x02b90000, 0x02b90000, 0x054f0000)
        from space 5248K, 0% used [0x054f0000, 0x054f0000, 0x05a10000)
        to space 5248K, 0% used [0x05a10000, 0x05a10000, 0x05f30000)
       tenured generation total 105588K, used 63351K [0x080e0000, 0x0e7fd000, 0x12b90000)
         the space 105588K, 59% used [0x080e0000, 0x0bebdc68, 0x0bebde00, 0x0e7fd000)
       compacting perm gen total 25088K, used 25053K [0x12b90000, 0x14410000, 0x16b90000)
         the space 25088K, 99% used [0x12b90000, 0x14407730, 0x14407800, 0x14410000)
      No shared spaces configured.
      }
      Event: 113.517 GC heap before
      {Heap before GC invocations=130 (full 8):
       def new generation total 47616K, used 42368K [0x02b90000, 0x05f30000, 0x080e0000)
        eden space 42368K, 100% used [0x02b90000, 0x054f0000, 0x054f0000)
        from space 5248K, 0% used [0x054f0000, 0x054f0000, 0x05a10000)
        to space 5248K, 0% used [0x05a10000, 0x05a10000, 0x05f30000)
       tenured generation total 105588K, used 63351K [0x080e0000, 0x0e7fd000, 0x12b90000)
         the space 105588K, 59% used [0x080e0000, 0x0bebdc68, 0x0bebde00, 0x0e7fd000)
       compacting perm gen total 25088K, used 25060K [0x12b90000, 0x14410000, 0x16b90000)
         the space 25088K, 99% used [0x12b90000, 0x14409198, 0x14409200, 0x14410000)
      No shared spaces configured.
      Event: 113.536 GC heap after
      Heap after GC invocations=131 (full 8):
       def new generation total 47616K, used 5008K [0x02b90000, 0x05f30000, 0x080e0000)
        eden space 42368K, 0% used [0x02b90000, 0x02b90000, 0x054f0000)
        from space 5248K, 95% used [0x05a10000, 0x05ef4338, 0x05f30000)
        to space 5248K, 0% used [0x054f0000, 0x054f0000, 0x05a10000)
       tenured generation total 105588K, used 73682K [0x080e0000, 0x0e7fd000, 0x12b90000)
         the space 105588K, 69% used [0x080e0000, 0x0c8d4a20, 0x0c8d4c00, 0x0e7fd000)
       compacting perm gen total 25088K, used 25060K [0x12b90000, 0x14410000, 0x16b90000)
         the space 25088K, 99% used [0x12b90000, 0x14409198, 0x14409200, 0x14410000)
      No shared spaces configured.
      }

      Deoptimization events (0 events):
      No events

      Internal exceptions (10 events):
      Event: 114.828 Thread 0x009c9800 Threw 0x04aa3a20 at C:\jdk7u2_32P\jdk7u17\hotspot\src\share\vm\prims\jvm.cpp:1166
      Event: 114.828 Thread 0x009c9800 Threw 0x04aa4050 at C:\jdk7u2_32P\jdk7u17\hotspot\src\share\vm\prims\jvm.cpp:1166
      Event: 114.831 Thread 0x1c04d800 Threw 0x04b36e70 at C:\jdk7u2_32P\jdk7u17\hotspot\src\share\vm\prims\jvm.cpp:1166
      Event: 114.831 Thread 0x1c04d800 Threw 0x04b37240 at C:\jdk7u2_32P\jdk7u17\hotspot\src\share\vm\classfile\systemDictionary.cpp:179
      Event: 114.831 Thread 0x1c04d800 Threw 0x04b37760 at C:\jdk7u2_32P\jdk7u17\hotspot\src\share\vm\prims\jvm.cpp:1166
      Event: 114.831 Thread 0x1c04d800 Threw 0x04b37ba0 at C:\jdk7u2_32P\jdk7u17\hotspot\src\share\vm\prims\jvm.cpp:1166
      Event: 114.833 Thread 0x1c04d800 Threw 0x04b51318 at C:\jdk7u2_32P\jdk7u17\hotspot\src\share\vm\prims\jvm.cpp:1166
      Event: 114.833 Thread 0x1c04d800 Threw 0x04b516e8 at C:\jdk7u2_32P\jdk7u17\hotspot\src\share\vm\classfile\systemDictionary.cpp:179
      Event: 114.833 Thread 0x1c04d800 Threw 0x04b51c08 at C:\jdk7u2_32P\jdk7u17\hotspot\src\share\vm\prims\jvm.cpp:1166
      Event: 114.833 Thread 0x1c04d800 Threw 0x04b52048 at C:\jdk7u2_32P\jdk7u17\hotspot\src\share\vm\prims\jvm.cpp:1166

      Events (10 events):
      Event: 114.831 loading class 0x170019b0
      Event: 114.831 loading class 0x170019b0 done
      Event: 114.831 loading class 0x170019b0
      Event: 114.831 loading class 0x170019b0 done
      Event: 114.832 loading class 0x193a8da8
      Event: 114.832 loading class 0x193a8da8 done
      Event: 114.833 loading class 0x170019b0
      Event: 114.833 loading class 0x170019b0 done
      Event: 114.833 loading class 0x170019b0
      Event: 114.833 loading class 0x170019b0 done


      Dynamic libraries:
      0x00400000 - 0x0040d000 C:\Documents and Settings\User\Desktop\FXSWTBrowser\win32.win32.x86\FXSWTBrowser\eclipse.exe
      0x7c900000 - 0x7c9b2000 C:\WINDOWS\system32\ntdll.dll
      0x64d00000 - 0x64d3f000 C:\Program Files\AVAST Software\Avast\snxhk.dll
      0x7c800000 - 0x7c8f6000 C:\WINDOWS\system32\KERNEL32.dll
      0x7e410000 - 0x7e4a1000 C:\WINDOWS\system32\USER32.dll
      0x77f10000 - 0x77f59000 C:\WINDOWS\system32\GDI32.dll
      0x5d090000 - 0x5d12a000 C:\WINDOWS\system32\COMCTL32.dll
      0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
      0x77e70000 - 0x77f03000 C:\WINDOWS\system32\RPCRT4.dll
      0x77fe0000 - 0x77ff1000 C:\WINDOWS\system32\Secur32.dll
      0x77c10000 - 0x77c68000 C:\WINDOWS\system32\MSVCRT.dll
      0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.DLL
      0x629c0000 - 0x629c9000 C:\WINDOWS\system32\LPK.DLL
      0x74d90000 - 0x74dfb000 C:\WINDOWS\system32\USP10.dll
      0x72000000 - 0x7200d000 C:\Documents and Settings\User\Desktop\FXSWTBrowser\win32.win32.x86\FXSWTBrowser\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502\eclipse_1406.dll
      0x77c00000 - 0x77c08000 C:\WINDOWS\system32\VERSION.dll
      0x6e7c0000 - 0x6eb0c000 C:\Documents and Settings\User\Desktop\FXSWTBrowser\win32.win32.x86\FXSWTBrowser\jre\bin\client\jvm.dll
      0x71ad0000 - 0x71ad9000 C:\WINDOWS\system32\WSOCK32.dll
      0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
      0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
      0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
      0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
      0x78aa0000 - 0x78b5f000 C:\WINDOWS\system32\MSVCR100.dll
      0x6e710000 - 0x6e71c000 C:\Documents and Settings\User\Desktop\FXSWTBrowser\win32.win32.x86\FXSWTBrowser\jre\bin\verify.dll
      0x6d4c0000 - 0x6d4e0000 C:\Documents and Settings\User\Desktop\FXSWTBrowser\win32.win32.x86\FXSWTBrowser\jre\bin\java.dll
      0x6e7a0000 - 0x6e7b3000 C:\Documents and Settings\User\Desktop\FXSWTBrowser\win32.win32.x86\FXSWTBrowser\jre\bin\zip.dll
      0x68000000 - 0x68036000 C:\WINDOWS\system32\rsaenh.dll
      0x769c0000 - 0x76a74000 C:\WINDOWS\system32\USERENV.dll
      0x5b860000 - 0x5b8b5000 C:\WINDOWS\system32\netapi32.dll
      0x6e4e0000 - 0x6e4f4000 C:\Documents and Settings\User\Desktop\FXSWTBrowser\win32.win32.x86\FXSWTBrowser\jre\bin\net.dll
      0x71a50000 - 0x71a8f000 C:\WINDOWS\System32\mswsock.dll
      0x76f20000 - 0x76f47000 C:\WINDOWS\system32\DNSAPI.dll
      0x76d60000 - 0x76d79000 C:\WINDOWS\system32\iphlpapi.dll
      0x76fb0000 - 0x76fb8000 C:\WINDOWS\System32\winrnr.dll
      0x76f60000 - 0x76f8c000 C:\WINDOWS\system32\WLDAP32.dll
      0x64000000 - 0x64021000 C:\Program Files\Bonjour\mdnsNSP.dll
      0x76fc0000 - 0x76fc6000 C:\WINDOWS\system32\rasadhlp.dll
      0x6e500000 - 0x6e50e000 C:\Documents and Settings\User\Desktop\FXSWTBrowser\win32.win32.x86\FXSWTBrowser\jre\bin\nio.dll
      0x18270000 - 0x182de000 C:\Documents and Settings\User\Desktop\FXSWTBrowser\win32.win32.x86\FXSWTBrowser\configuration\org.eclipse.osgi\bundles\28\1\.cp\swt-win32-3740.dll
      0x774e0000 - 0x7761e000 C:\WINDOWS\system32\ole32.dll
      0x77120000 - 0x771ab000 C:\WINDOWS\system32\OLEAUT32.dll
      0x763b0000 - 0x763f9000 C:\WINDOWS\system32\comdlg32.dll
      0x773d0000 - 0x774d3000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202\COMCTL32.dll
      0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
      0x7c9c0000 - 0x7d1d7000 C:\WINDOWS\system32\SHELL32.dll
      0x73000000 - 0x73026000 C:\WINDOWS\system32\WINSPOOL.DRV
      0x3d930000 - 0x3da16000 C:\WINDOWS\system32\WININET.dll
      0x182f0000 - 0x182f9000 C:\WINDOWS\system32\Normaliz.dll
      0x78130000 - 0x78263000 C:\WINDOWS\system32\urlmon.dll
      0x3dfd0000 - 0x3e1bc000 C:\WINDOWS\system32\iertutil.dll
      0x77a80000 - 0x77b15000 C:\WINDOWS\system32\CRYPT32.dll
      0x77b20000 - 0x77b32000 C:\WINDOWS\system32\MSASN1.dll
      0x5ad70000 - 0x5ada8000 C:\WINDOWS\system32\uxtheme.dll
      0x74720000 - 0x7476c000 C:\WINDOWS\system32\MSCTF.dll
      0x18620000 - 0x1888c000 C:\Program Files\NVIDIA Corporation\nView\nview.dll
      0x77690000 - 0x776b1000 C:\WINDOWS\system32\NTMARTA.DLL
      0x71bf0000 - 0x71c03000 C:\WINDOWS\system32\SAMLIB.dll
      0x18960000 - 0x18980000 C:\Program Files\Common Files\Spigot\Search Settings\wth160.dll
      0x755c0000 - 0x755ee000 C:\WINDOWS\system32\msctfime.ime
      0x189a0000 - 0x189b3000 C:\WINDOWS\system32\btmmhook.dll
      0x18ad0000 - 0x18aed000 C:\Documents and Settings\User\Desktop\FXSWTBrowser\win32.win32.x86\FXSWTBrowser\configuration\org.eclipse.osgi\bundles\28\1\.cp\swt-gdip-win32-3740.dll
      0x4ec50000 - 0x4edfb000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.6002.22791_x-ww_c8dff154\gdiplus.dll
      0x61880000 - 0x618ba000 C:\WINDOWS\system32\oleacc.dll
      0x19800000 - 0x19ac5000 C:\WINDOWS\system32\xpsp2res.dll
      0x19cd0000 - 0x19ce5000 C:\WINDOWS\system32\nvwddi.dll
      0x76fd0000 - 0x7704f000 C:\WINDOWS\system32\CLBCATQ.DLL
      0x77050000 - 0x77115000 C:\WINDOWS\system32\COMRes.dll
      0x75cf0000 - 0x75d81000 C:\WINDOWS\system32\mlang.dll
      0x6d2e0000 - 0x6d307000 C:\Documents and Settings\User\Desktop\FXSWTBrowser\win32.win32.x86\FXSWTBrowser\jre\bin\glass.dll
      0x6e3a0000 - 0x6e40f000 C:\Documents and Settings\User\Desktop\FXSWTBrowser\win32.win32.x86\FXSWTBrowser\jre\bin\libxml2.dll
      0x6e410000 - 0x6e438000 C:\Documents and Settings\User\Desktop\FXSWTBrowser\win32.win32.x86\FXSWTBrowser\jre\bin\libxslt.dll
      0x6d640000 - 0x6e19f000 C:\Documents and Settings\User\Desktop\FXSWTBrowser\win32.win32.x86\FXSWTBrowser\jre\bin\jfxwebkit.dll
      0x6d520000 - 0x6d55d000 C:\Documents and Settings\User\Desktop\FXSWTBrowser\win32.win32.x86\FXSWTBrowser\jre\bin\javafx-font.dll
      0x6d000000 - 0x6d142000 C:\Documents and Settings\User\Desktop\FXSWTBrowser\win32.win32.x86\FXSWTBrowser\jre\bin\awt.dll
      0x6d180000 - 0x6d1a4000 C:\Documents and Settings\User\Desktop\FXSWTBrowser\win32.win32.x86\FXSWTBrowser\jre\bin\dcpr.dll
      0x662b0000 - 0x66308000 C:\WINDOWS\system32\hnetcfg.dll
      0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
      0x6d1b0000 - 0x6d1c1000 C:\Documents and Settings\User\Desktop\FXSWTBrowser\win32.win32.x86\FXSWTBrowser\jre\bin\decora-sse.dll
      0x6d270000 - 0x6d29a000 C:\Documents and Settings\User\Desktop\FXSWTBrowser\win32.win32.x86\FXSWTBrowser\jre\bin\fontmanager.dll
      0x6e6b0000 - 0x6e6e1000 C:\Documents and Settings\User\Desktop\FXSWTBrowser\win32.win32.x86\FXSWTBrowser\jre\bin\t2k.dll
      0x1b280000 - 0x1b28c000 C:\Program Files\WIDCOMM\Bluetooth Software\btkeyind.dll
      0x6e680000 - 0x6e6a0000 C:\Documents and Settings\User\Desktop\FXSWTBrowser\win32.win32.x86\FXSWTBrowser\jre\bin\sunec.dll
      0x6e6a0000 - 0x6e6a9000 C:\Documents and Settings\User\Desktop\FXSWTBrowser\win32.win32.x86\FXSWTBrowser\jre\bin\sunmscapi.dll
      0x4fdd0000 - 0x4ff76000 C:\WINDOWS\system32\d3d9.dll
      0x1abf0000 - 0x1abf6000 C:\WINDOWS\system32\d3d8thk.dll
      0x59a60000 - 0x59b01000 C:\WINDOWS\system32\dbghelp.dll

      VM Arguments:
      java_command: <unknown>
      Launcher Type: generic

      Environment Variables:
      JAVA_HOME=C:\Program Files\Java\jdk1.6.0_20
      CLASSPATH=.;${JACORB_HOME}\lib\logkit-1.2.jar;${JACORB_HOME}\bin;${JACORB_HOME}\etc;${JACORB_HOME}\lib;${JACORB_HOME}\classes;${JACORB_HOME}\lib\jacorb.jar;${JACORB_HOME}\lib\antlr-2.7.2.jar;${JACORB_HOME}\lib\idl.jar;${JACORB_HOME}\lib\picocontainer-1.2.jar;${JACORB_HOME}\lib\wrapper-3.1.0.jar;${JACORB_HOME}\lib\backport-util-concurrent.jar;D:\Groovy\groovy-1.6.3\lib;C:\Program Files\Java\JGoSWT530\swt.jar;C:\Program Files\Java\JGoSWT530\JGoSWTLayout.jar;C:\Program Files\Java\JGoSWT530\JGoSWTSVG.jar;C:\Program Files\Java\SDK\lib\jna.jar;${JAVA_HOME}\bin;${JAVA_HOME}\lib;${JAVA_HOME}\jre;${JAVA_HOME}\jre\bin;${JAVA_HOME}\jre\lib;C:\Program Files\Java\jre6\lib\ext\QTJava.zip
      USERNAME=Alexandra
      OS=Windows_NT
      PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel



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

      OS: Windows XP Build 2600 Service Pack 3

      CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 13, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, tsc

      Memory: 4k page, physical 3140408k(1520796k free), swap 7816088k(6038268k free)

      vm_info: Java HotSpot(TM) Client VM (23.7-b01) for windows-x86 JRE (1.7.0_17-b02), built on Mar 1 2013 05:04:36 by "java_re" with unknown MS VC++:1600

      time: Tue Mar 26 17:10:12 2013
      elapsed time: 115 seconds

      The java files

      package test.javafx;

      import javafx.beans.value.ChangeListener;
      import javafx.beans.value.ObservableValue;
      import javafx.concurrent.Worker.State;
      import javafx.embed.swt.FXCanvas;
      import javafx.event.EventHandler;
      import javafx.scene.Scene;
      import javafx.scene.web.PopupFeatures;
      import javafx.scene.web.WebEngine;
      import javafx.scene.web.WebEvent;
      import javafx.scene.web.WebView;
      import javafx.util.Callback;

      import org.eclipse.jface.dialogs.MessageDialog;
      import org.eclipse.swt.widgets.Composite;
      import org.eclipse.swt.widgets.Display;

      public class FXSWTBrowser extends FXCanvas {

      private WebView browser;

      public FXSWTBrowser(Composite parent, int style) {
      super(parent, style);
      init();
      }

      private void init() {
      browser = new WebView();
      setScene(new Scene(browser));
      initializeSomeKindsOfListeners();
      }

      /**
      * Loads a Web page into this engine. This method starts asynchronous
      * loading and returns immediately.
      *
      * @param url
      * - URL of the web page to load
      */
      public void setUrl(String url) {
      browser.getEngine().load(url);
      }

      public WebEngine getWebEngine() {
      return browser.getEngine();
      }

      public void initializeSomeKindsOfListeners() {
      WebEngine engine = getWebEngine();
      engine.setCreatePopupHandler(new Callback<PopupFeatures, WebEngine>() {

      @Override
      public WebEngine call(PopupFeatures param) {

      FXSWTBrowserDialog popup = new FXSWTBrowserDialog(Display
      .getDefault().getActiveShell(), "");
      popup.open();
      return popup.getBrowser().getWebEngine();
      }
      });

      engine.setOnAlert(new EventHandler<WebEvent<String>>() {

      @Override
      public void handle(WebEvent<String> event) {

      MessageDialog.openInformation(Display.getDefault()
      .getActiveShell(), "", event.getData());

      event.consume();
      }
      });

      engine.setConfirmHandler(new Callback<String, Boolean>() {

      @Override
      public Boolean call(String param) {

      return MessageDialog.openQuestion(Display.getDefault()
      .getActiveShell(), "Question", param);
      }
      });
      }

      public void addProgressListener(
      final BenchsysBrowserProgressListener listener) {
      WebEngine engine = getWebEngine();
      engine.getLoadWorker().stateProperty()
      .addListener(new ChangeListener<State>() {

      @Override
      public void changed(
      ObservableValue<? extends State> observable,
      State oldValue, State newValue) {
      if (newValue == State.SUCCEEDED) {
      listener.completed();
      }
      }
      });
      }

      }


      package test.javafx;

      import org.eclipse.jface.dialogs.Dialog;
      import org.eclipse.swt.SWT;
      import org.eclipse.swt.browser.Browser;
      import org.eclipse.swt.browser.CloseWindowListener;
      import org.eclipse.swt.browser.OpenWindowListener;
      import org.eclipse.swt.browser.VisibilityWindowListener;
      import org.eclipse.swt.browser.WindowEvent;
      import org.eclipse.swt.custom.StyledText;
      import org.eclipse.swt.events.SelectionAdapter;
      import org.eclipse.swt.events.SelectionEvent;
      import org.eclipse.swt.graphics.Point;
      import org.eclipse.swt.layout.FillLayout;
      import org.eclipse.swt.layout.GridData;
      import org.eclipse.swt.widgets.Button;
      import org.eclipse.swt.widgets.Composite;
      import org.eclipse.swt.widgets.Control;
      import org.eclipse.swt.widgets.Display;
      import org.eclipse.swt.widgets.Shell;

      public class FXSWTBrowserDialog extends Dialog {

      private String url = null;

      private String browserContent = null;

      private FXSWTBrowser browser;

      public FXSWTBrowserDialog(Shell parentShell, String url) {
      super(parentShell);
      this.url = url;
      setBlockOnOpen(false);
      setShellStyle(SWT.CLOSE | SWT.RESIZE | SWT.MIN | SWT.MAX);
      }

      public FXSWTBrowserDialog(Shell parentShell, String url,
      String browserContent) {
      this(parentShell, url);
      this.browserContent = browserContent;
      }

      public FXSWTBrowser getBrowser() {
      return browser;
      }

      @Override
      protected Control createDialogArea(Composite parent) {
      Composite c = new Composite(parent, SWT.NONE);
      c.setLayout(new org.eclipse.swt.layout.GridLayout(4, false));

      Button back = new Button(c, SWT.PUSH);
      back.setText("<");

      Button forward = new Button(c, SWT.PUSH);
      forward.setText(">");

      final StyledText address = new StyledText(c, SWT.BORDER | SWT.SINGLE);
      address.setText("");
      GridData d1 = new GridData();
      d1.grabExcessHorizontalSpace = true;
      address.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));

      final Button goButton = new Button(c, SWT.PUSH);
      goButton.setText("Go");

      browser = new FXSWTBrowser(c, SWT.BORDER);
      GridData data = new GridData(SWT.FILL, SWT.FILL, true, true, 4, 1);

      browser.setLayoutData(data);

      c.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
      // initialize(b);
      if (url != null) {
      browser.setUrl(url);
      }
      if (browserContent != null) {
      browser.getWebEngine().loadContent(browserContent);
      }

      browser.addProgressListener(new BenchsysBrowserProgressListener() {

      @Override
      public void completed() {
      if (!address.isDisposed()) {
      address.setText(browser.getWebEngine().getLocation());
      }
      }
      });

      goButton.addSelectionListener(new SelectionAdapter() {

      @Override
      public void widgetSelected(SelectionEvent e) {
      browser.setUrl(address.getText());
      }
      });

      back.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
      browser.getWebEngine().executeScript("history.back()");
      }
      });
      forward.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
      browser.getWebEngine().executeScript("history.forward()");
      }
      });

      return c;
      }

      private void initialize(Browser b) {

      b.addCloseWindowListener(new CloseWindowListener() {
      @Override
      public void close(WindowEvent event) {
      Browser browser = (Browser) event.widget;
      Shell shell = browser.getShell();
      shell.close();
      }
      });

      b.addOpenWindowListener(new OpenWindowListener() {
      @Override
      public void open(WindowEvent event) {
      Shell shell = new Shell(Display.getDefault());
      shell.setText("Benchsys"); //$NON-NLS-1$
      shell.setLayout(new FillLayout());
      Browser browser = new Browser(shell, SWT.BORDER);
      initialize(browser);
      event.browser = browser;
      }

      });

      b.addVisibilityWindowListener(new VisibilityWindowListener() {
      @Override
      public void hide(WindowEvent event) {
      Browser browser = (Browser) event.widget;
      Shell shell = browser.getShell();
      shell.setVisible(false);
      }

      @Override
      public void show(WindowEvent event) {
      Browser browser = (Browser) event.widget;
      final Shell shell = browser.getShell();
      if (event.location != null) {
      shell.setLocation(event.location);
      }
      if (event.size != null) {
      Point size = event.size;
      shell.setSize(shell.computeSize(size.x, size.y));
      }
      shell.open();
      }
      });
      }

      @Override
      protected Control createButtonBar(Composite parent) {
      return null;
      }
      }

            Unassigned Unassigned
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Imported: