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

[win10] Application crashes with JDK 7 or 8 running inside Windows 10 virtual machine

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 8u51
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_10

      Description

      FULL PRODUCT VERSION :
      1.8.0_51

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 10.0.10162]

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      in VirtualBox 4.3.30

      A DESCRIPTION OF THE PROBLEM :
      The JRE crashes without when starting the jar.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Try to use java 7 or 8 on windows 10.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      GUI window should show "test"
      ACTUAL -
      nothing happens

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff9fd4f466d, pid=2848, tid=2440
      #
      # JRE version: Java(TM) SE Runtime Environment (8.0_51-b16) (build 1.8.0_51-b16)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.51-b03 mixed mode windows-amd64 compressed oops)
      # Problematic frame:
      # C [VBoxD3D9wddm.dll+0x466d]
      #
      # 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 (0x0000000013594000): JavaThread "AWT-Windows" daemon [_thread_in_native, id=2440, stack(0x00000000139a0000,0x0000000013aa0000)]

      siginfo: ExceptionCode=0xc0000005, reading address 0x0000000000000018

      Registers:
      RAX=0x00000000ffffffff, RBX=0x0000000000000000, RCX=0x0000000000000003, RDX=0x0000000000000007
      RSP=0x0000000013a9dd20, RBP=0x0000000013a9dec0, RSI=0x0000000000e77f20, RDI=0x0000000014fd7870
      R8 =0x00007ff9fd522fc0, R9 =0x0000000000000008, R10=0x0000000000e78c00, R11=0x0000000000000206
      R12=0x0000000000000001, R13=0x00000000ffefffff, R14=0x0000000013a9e800, R15=0x0000000000000000
      RIP=0x00007ff9fd4f466d, EFLAGS=0x0000000000010246

      Top of Stack: (sp=0x0000000013a9dd20)
      0x0000000013a9dd20: 0000000000000000 0000000000000000
      0x0000000013a9dd30: 0000000000000000 00007ff9fd5225c4
      0x0000000013a9dd40: 0000000000000317 0000000000000000
      0x0000000013a9dd50: 00007ff9fd5e5200 00007ff9fd5e5223
      0x0000000013a9dd60: 0000000000000000 0000000000000000
      0x0000000013a9dd70: 0000000000000000 0000000000000000
      0x0000000013a9dd80: 0000000000e6d5d0 00007ff9f486901b
      0x0000000013a9dd90: 00007ff9fd5e5200 0000000000000000
      0x0000000013a9dda0: 0000000000000000 0000000000e77f20
      0x0000000013a9ddb0: 0000000000000000 00007ff9f4822abc
      0x0000000013a9ddc0: 0000000000e6d5d0 0000000013a9dec0
      0x0000000013a9ddd0: 0000000000e77f20 0000000000000000
      0x0000000013a9dde0: 0000000000000000 0000000000000000
      0x0000000013a9ddf0: 0000000000000000 0000000000000000
      0x0000000013a9de00: 0000000000000000 0000000000000000
      0x0000000013a9de10: 0000000000000000 0000000000000000

      Instructions: (pc=0x00007ff9fd4f466d)
      0x00007ff9fd4f464d: 44 24 20 17 03 00 00 e8 a7 f9 00 00 83 f8 ff 74
      0x00007ff9fd4f465d: 0f 48 8d 0d 8b ec 02 00 48 8b d3 e8 93 f2 00 00
      0x00007ff9fd4f466d: 48 8b 4b 18 48 83 c4 30 5b e9 27 ae 02 00 cc cc
      0x00007ff9fd4f467d: cc cc cc 40 53 48 83 ec 30 f6 05 93 b9 03 00 08


      Register to memory mapping:

      RAX=0x00000000ffffffff is an unallocated location in the heap
      RBX=0x0000000000000000 is an unknown value
      RCX=0x0000000000000003 is an unknown value
      RDX=0x0000000000000007 is an unknown value
      RSP=0x0000000013a9dd20 is pointing into the stack for thread: 0x0000000013594000
      RBP=0x0000000013a9dec0 is pointing into the stack for thread: 0x0000000013594000
      RSI=0x0000000000e77f20 is an unknown value
      RDI=0x0000000014fd7870 is an unknown value
      R8 =0x00007ff9fd522fc0 is an unknown value
      R9 =0x0000000000000008 is an unknown value
      R10=0x0000000000e78c00 is an unknown value
      R11=0x0000000000000206 is an unknown value
      R12=0x0000000000000001 is an unknown value
      R13=0x00000000ffefffff is an unallocated location in the heap
      R14=0x0000000013a9e800 is pointing into the stack for thread: 0x0000000013594000
      R15=0x0000000000000000 is an unknown value


      Stack: [0x00000000139a0000,0x0000000013aa0000], sp=0x0000000013a9dd20, free space=1015k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C [VBoxD3D9wddm.dll+0x466d]
      C [VBoxDispD3D.dll+0x5223]
      C [d3d9.dll+0x5901b]
      C [d3d9.dll+0x12abc]
      C [d3d9.dll+0x152a7]
      C [d3d9.dll+0x2dcf5]
      C [d3d9.dll+0x343ed]
      C [d3d9.dll+0x30e6a]
      C [awt.dll+0x19e5d]
      C [awt.dll+0x19fbb]
      C [awt.dll+0x1a96f]
      C [awt.dll+0x1e4f5]
      C [awt.dll+0x1b639]
      C 0x0000000002b13874

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j sun.java2d.d3d.D3DGraphicsDevice.getDeviceCapsNative(I)I+0
      j sun.java2d.d3d.D3DGraphicsDevice.access$000(I)I+1
      j sun.java2d.d3d.D3DGraphicsDevice$1.run()V+8
      v ~StubRoutines::call_stub
      j sun.awt.windows.WToolkit.eventLoop()V+0
      j sun.awt.windows.WToolkit.run()V+58
      j java.lang.Thread.run()V+11
      v ~StubRoutines::call_stub

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

      Java Threads: ( => current thread )
        0x00000000135b8000 JavaThread "Thread-1" [_thread_blocked, id=3016, stack(0x0000000014a40000,0x0000000014b40000)]
        0x00000000135ae000 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=3552, stack(0x0000000014940000,0x0000000014a40000)]
      =>0x0000000013594000 JavaThread "AWT-Windows" daemon [_thread_in_native, id=2440, stack(0x00000000139a0000,0x0000000013aa0000)]
        0x0000000013591000 JavaThread "AWT-Shutdown" [_thread_blocked, id=2964, stack(0x00000000138a0000,0x00000000139a0000)]
        0x0000000013590000 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=1452, stack(0x00000000137a0000,0x00000000138a0000)]
        0x0000000012910800 JavaThread "Service Thread" daemon [_thread_blocked, id=1208, stack(0x00000000130c0000,0x00000000131c0000)]
        0x000000001290c800 JavaThread "C1 CompilerThread1" daemon [_thread_blocked, id=648, stack(0x0000000012fc0000,0x00000000130c0000)]
        0x00000000128b0800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=3464, stack(0x0000000012ec0000,0x0000000012fc0000)]
        0x00000000128ae800 JavaThread "Attach Listener" daemon [_thread_blocked, id=2624, stack(0x0000000012dc0000,0x0000000012ec0000)]
        0x00000000128ac800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2480, stack(0x0000000012cc0000,0x0000000012dc0000)]
        0x0000000012875800 JavaThread "Finalizer" daemon [_thread_blocked, id=2368, stack(0x0000000012bc0000,0x0000000012cc0000)]
        0x000000001286e000 JavaThread "Reference Handler" daemon [_thread_blocked, id=2952, stack(0x0000000012ac0000,0x0000000012bc0000)]
        0x0000000002a00800 JavaThread "main" [_thread_in_native, id=3828, stack(0x0000000002900000,0x0000000002a00000)]

      Other Threads:
        0x000000001286a000 VMThread [stack: 0x00000000129c0000,0x0000000012ac0000] [id=3908]
        0x0000000012912800 WatcherThread [stack: 0x00000000131c0000,0x00000000132c0000] [id=2528]

      VM state:not at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: None

      Heap:
       def new generation total 9792K, used 3676K [0x00000000e0c00000, 0x00000000e16a0000, 0x00000000eb2a0000)
        eden space 8704K, 42% used [0x00000000e0c00000, 0x00000000e0f97398, 0x00000000e1480000)
        from space 1088K, 0% used [0x00000000e1480000, 0x00000000e1480000, 0x00000000e1590000)
        to space 1088K, 0% used [0x00000000e1590000, 0x00000000e1590000, 0x00000000e16a0000)
       tenured generation total 21888K, used 0K [0x00000000eb2a0000, 0x00000000ec800000, 0x0000000100000000)
         the space 21888K, 0% used [0x00000000eb2a0000, 0x00000000eb2a0000, 0x00000000eb2a0200, 0x00000000ec800000)
       Metaspace used 8152K, capacity 8328K, committed 8576K, reserved 1056768K
        class space used 1009K, capacity 1090K, committed 1152K, reserved 1048576K

      Card table byte_map: [0x0000000011ec0000,0x0000000011fc0000] byte_map_base: 0x00000000117ba000

      Polling page: 0x0000000001090000

      CodeCache: size=245760Kb used=1828Kb max_used=1828Kb free=243932Kb
       bounds [0x0000000002b00000, 0x0000000002d70000, 0x0000000011b00000]
       total_blobs=741 nmethods=353 adapters=303
       compilation: enabled

      Compilation events (10 events):
      Event: 0.545 Thread 0x000000001290c800 349 1 java.util.HashMap$Node::getKey (5 bytes)
      Event: 0.546 Thread 0x000000001290c800 nmethod 349 0x0000000002cc7ad0 code [0x0000000002cc7c20, 0x0000000002cc7d30]
      Event: 0.546 Thread 0x000000001290c800 350 1 java.util.HashMap$Node::getValue (5 bytes)
      Event: 0.546 Thread 0x000000001290c800 nmethod 350 0x0000000002cc7d90 code [0x0000000002cc7ee0, 0x0000000002cc7ff0]
      Event: 0.546 Thread 0x000000001290c800 351 3 java.lang.Character::toUpperCase (6 bytes)
      Event: 0.546 Thread 0x000000001290c800 nmethod 351 0x0000000002cc8050 code [0x0000000002cc81c0, 0x0000000002cc8450]
      Event: 0.546 Thread 0x000000001290c800 352 3 java.lang.CharacterDataLatin1::toUpperCase (53 bytes)
      Event: 0.546 Thread 0x000000001290c800 nmethod 352 0x0000000002cc8550 code [0x0000000002cc86c0, 0x0000000002cc89b0]
      Event: 0.546 Thread 0x000000001290c800 353 3 java.util.TreeMap::parentOf (13 bytes)
      Event: 0.546 Thread 0x000000001290c800 nmethod 353 0x0000000002cc8b10 code [0x0000000002cc8c60, 0x0000000002cc8df0]

      GC Heap History (0 events):
      No events

      Deoptimization events (1 events):
      Event: 0.399 Thread 0x0000000002a00800 Uncommon trap: reason=null_check action=make_not_entrant pc=0x0000000002c9f0f8 method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8

      Internal exceptions (10 events):
      Event: 0.103 Thread 0x0000000002a00800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.prefetchRead(Ljava/lang/Object;J)V name or signature does not match> (0x00000000e0c0d338) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u51\3951\hotspot\src\share\vm\prims\jº‰ú£È?
      Event: 0.192 Thread 0x0000000002a00800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000e0ce7990) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u51\3951\hotspot\src\share\vm\prims\jvm.cpp, line 1382]
      Event: 0.193 Thread 0x0000000002a00800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000e0ce7b48) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u51\3951\hotspot\src\share\vm\prims\jvm.cpp, line 1382]
      Event: 0.195 Thread 0x0000000002a00800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000e0ceba60) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u51\3951\hotspot\src\share\vm\prims\jvm.cpp, line 1382]
      Event: 0.195 Thread 0x0000000002a00800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000e0cebc18) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u51\3951\hotspot\src\share\vm\prims\jvm.cpp, line 1382]
      Event: 0.251 Thread 0x0000000002a00800 Exception <a 'java/io/FileNotFoundException'> (0x00000000e0cee038) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u51\3951\hotspot\src\share\vm\prims\jni.cpp, line 709]
      Event: 0.347 Thread 0x0000000002a00800 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x00000000e0dd88e8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u51\3951\hotspot\src\share\vm\prims\methodHandles.cpp, line 1125]
      Event: 0.356 Thread 0x0000000002a00800 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x00000000e0de7328) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u51\3951\hotspot\src\share\vm\prims\methodHandles.cpp, line 1125]
      Event: 0.399 Thread 0x0000000002a00800 Implicit null exception at 0x0000000002c9ef22 to 0x0000000002c9f0e9
      Event: 0.409 Thread 0x0000000002a00800 Exception <a 'java/io/FileNotFoundException'> (0x00000000e0edd020) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u51\3951\hotspot\src\share\vm\prims\jni.cpp, line 709]

      Events (10 events):
      Event: 0.604 loading class sun/java2d/pipe/RenderQueue done
      Event: 0.604 loading class sun/java2d/d3d/D3DRenderQueue done
      Event: 0.604 loading class sun/java2d/pipe/RenderBuffer
      Event: 0.604 loading class sun/java2d/pipe/RenderBuffer done
      Event: 0.604 loading class sun/java2d/d3d/D3DRenderQueue$1
      Event: 0.604 loading class sun/java2d/d3d/D3DRenderQueue$1 done
      Event: 0.604 loading class sun/java2d/d3d/D3DGraphicsDevice$1Result
      Event: 0.604 loading class sun/java2d/d3d/D3DGraphicsDevice$1Result done
      Event: 0.604 loading class sun/java2d/d3d/D3DGraphicsDevice$1
      Event: 0.604 loading class sun/java2d/d3d/D3DGraphicsDevice$1 done


      Dynamic libraries:
      0x00007ff78d780000 - 0x00007ff78d7b7000 C:\Program Files (x86)\Java\jre8\bin\java.exe
      0x00007ffa02fc0000 - 0x00007ffa03181000 C:\WINDOWS\SYSTEM32\ntdll.dll
      0x00007ffa01310000 - 0x00007ffa013bd000 C:\WINDOWS\system32\KERNEL32.DLL
      0x00007ffa002f0000 - 0x00007ffa004ce000 C:\WINDOWS\system32\KERNELBASE.dll
      0x00007ffa01520000 - 0x00007ffa015c6000 C:\WINDOWS\system32\ADVAPI32.dll
      0x00007ffa01420000 - 0x00007ffa014bd000 C:\WINDOWS\system32\msvcrt.dll
      0x00007ffa00d20000 - 0x00007ffa00d7b000 C:\WINDOWS\system32\sechost.dll
      0x00007ffa00a60000 - 0x00007ffa00b86000 C:\WINDOWS\system32\RPCRT4.dll
      0x00007ffa02cf0000 - 0x00007ffa02e3e000 C:\WINDOWS\system32\USER32.dll
      0x00007ffa00f50000 - 0x00007ffa010d3000 C:\WINDOWS\system32\GDI32.dll
      0x00007ff9f1a80000 - 0x00007ff9f1d0b000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10162.0_none_8477ceca5cc883c0\COMCTL32.dll
      0x00007ffa006a0000 - 0x00007ffa006d6000 C:\WINDOWS\system32\IMM32.DLL
      0x00007ffa02e60000 - 0x00007ffa02fbb000 C:\WINDOWS\system32\MSCTF.dll
      0x0000000056e80000 - 0x0000000056f52000 C:\Program Files (x86)\Java\jre8\bin\msvcr100.dll
      0x00000000565f0000 - 0x0000000056e73000 C:\Program Files (x86)\Java\jre8\bin\server\jvm.dll
      0x00007ffa02e50000 - 0x00007ffa02e58000 C:\WINDOWS\system32\PSAPI.DLL
      0x00007ff9fb910000 - 0x00007ff9fb919000 C:\WINDOWS\SYSTEM32\WSOCK32.dll
      0x00007ff9f6530000 - 0x00007ff9f6553000 C:\WINDOWS\SYSTEM32\WINMM.dll
      0x00007ff9fc5c0000 - 0x00007ff9fc5ca000 C:\WINDOWS\SYSTEM32\VERSION.dll
      0x00007ff9f6500000 - 0x00007ff9f652c000 C:\WINDOWS\SYSTEM32\WINMMBASE.dll
      0x00007ff9ffbb0000 - 0x00007ff9ffbf4000 C:\WINDOWS\system32\cfgmgr32.dll
      0x00007ff9fe370000 - 0x00007ff9fe397000 C:\WINDOWS\SYSTEM32\DEVOBJ.dll
      0x00007ffa00bf0000 - 0x00007ffa00c5a000 C:\WINDOWS\system32\WS2_32.dll
      0x00007ffa02e40000 - 0x00007ffa02e48000 C:\WINDOWS\system32\NSI.dll
      0x00000000565e0000 - 0x00000000565ef000 C:\Program Files (x86)\Java\jre8\bin\verify.dll
      0x00000000565b0000 - 0x00000000565d9000 C:\Program Files (x86)\Java\jre8\bin\java.dll
      0x0000000056590000 - 0x00000000565a6000 C:\Program Files (x86)\Java\jre8\bin\zip.dll
      0x00007ffa015d0000 - 0x00007ffa02ae5000 C:\WINDOWS\system32\SHELL32.dll
      0x00007ff9ffc00000 - 0x00007ffa00228000 C:\WINDOWS\system32\windows.storage.dll
      0x00007ffa007e0000 - 0x00007ffa00a5d000 C:\WINDOWS\system32\combase.dll
      0x00007ffa00b90000 - 0x00007ffa00be1000 C:\WINDOWS\system32\shlwapi.dll
      0x00007ff9ffa70000 - 0x00007ff9ffa7f000 C:\WINDOWS\system32\kernel.appcore.dll
      0x00007ffa00230000 - 0x00007ffa002e2000 C:\WINDOWS\system32\shcore.dll
      0x00007ff9ffa20000 - 0x00007ff9ffa6a000 C:\WINDOWS\system32\powrprof.dll
      0x00007ff9ffa00000 - 0x00007ff9ffa13000 C:\WINDOWS\system32\profapi.dll
      0x00000000563f0000 - 0x0000000056588000 C:\Program Files (x86)\Java\jre8\bin\awt.dll
      0x00007ffa00c60000 - 0x00007ffa00d1d000 C:\WINDOWS\system32\OLEAUT32.dll
      0x00007ff9fe230000 - 0x00007ff9fe2a9000 C:\WINDOWS\system32\apphelp.dll
      0x00007ff9fe2d0000 - 0x00007ff9fe367000 C:\WINDOWS\system32\uxtheme.dll
      0x00007ff9fda80000 - 0x00007ff9fdaa2000 C:\WINDOWS\system32\dwmapi.dll
      0x00007ffa02ba0000 - 0x00007ffa02ce1000 C:\WINDOWS\system32\ole32.dll
      0x00007ff9ff850000 - 0x00007ff9ff8b8000 C:\WINDOWS\SYSTEM32\bcryptPrimitives.dll
      0x00000000563a0000 - 0x00000000563e7000 C:\Program Files (x86)\Java\jre8\bin\fontmanager.dll
      0x00007ff9f4810000 - 0x00007ff9f4a21000 C:\WINDOWS\system32\d3d9.dll
      0x00007ff9fd5e0000 - 0x00007ff9fd72c000 C:\WINDOWS\SYSTEM32\VBoxDispD3D.dll
      0x00007ff9fd4f0000 - 0x00007ff9fd53c000 C:\WINDOWS\system32\VBoxD3D9wddm.dll
      0x00007ff9fd3f0000 - 0x00007ff9fd4ef000 C:\WINDOWS\SYSTEM32\wined3dwddm.dll
      0x00007ff9fd240000 - 0x00007ff9fd3e2000 C:\WINDOWS\SYSTEM32\VBoxOGL.dll
      0x00007ff9fd0c0000 - 0x00007ff9fd23d000 C:\WINDOWS\SYSTEM32\VBoxOGLcrutil.dll
      0x00007ff9fced0000 - 0x00007ff9fd0bd000 C:\WINDOWS\system32\VBoxOGLpackspu.dll
      0x00007ff9fcea0000 - 0x00007ff9fcec5000 C:\WINDOWS\system32\VBoxOGLerrorspu.dll
      0x00007ff9fcda0000 - 0x00007ff9fce9c000 C:\WINDOWS\system32\VBoxOGLfeedbackspu.dll
      0x00007ff9fcd80000 - 0x00007ff9fcd9e000 C:\WINDOWS\system32\VBoxOGLpassthroughspu.dll
      0x00007ff9fcc50000 - 0x00007ff9fcd78000 C:\WINDOWS\system32\opengl32.dll
      0x00007ff9fcc20000 - 0x00007ff9fcc4e000 C:\WINDOWS\SYSTEM32\GLU32.dll
      0x00007ff9fcb20000 - 0x00007ff9fcc16000 C:\WINDOWS\SYSTEM32\DDRAW.dll
      0x00007ff9fcb10000 - 0x00007ff9fcb18000 C:\WINDOWS\SYSTEM32\DCIMAN32.dll
      0x00007ff9e5f00000 - 0x00007ff9e608c000 C:\WINDOWS\SYSTEM32\dbghelp.dll

      VM Arguments:
      java_command: net.vialect.installer.WindowsInstaller
      java_class_path (initial): C:\Program Files (x86)\Noodle\tools\test.jar
      Launcher Type: SUN_STANDARD

      Environment Variables:
      PATH=C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\
      USERNAME=Admin
      OS=Windows_NT
      PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel



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

      OS: Windows 10.0 , 64 bit Build 10162 (10.0.10162.0)

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

      Memory: 4k page, physical 2047540k(1160076k free), swap 3062544k(847004k free)

      vm_info: Java HotSpot(TM) 64-Bit Server VM (25.51-b03) for windows-amd64 JRE (1.8.0_51-b16), built on Jun 8 2015 18:03:07 by "java_re" with MS VC++ 10.0 (VS2010)

      time: Mon Aug 17 10:20:41 2015
      elapsed time: 0 seconds (0d 0h 0m 0s)



      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      package net.vialect.installer;

      import java.awt.BorderLayout;
      import java.awt.Cursor;
      import java.awt.Rectangle;
      import java.awt.event.ActionEvent;
      import java.awt.event.ActionListener;
      import java.awt.event.WindowEvent;
      import java.awt.event.WindowListener;
      import java.beans.PropertyChangeEvent;
      import java.beans.PropertyChangeListener;

      import javax.swing.BorderFactory;
      import javax.swing.JComponent;
      import javax.swing.JFrame;
      import javax.swing.JPanel;
      import javax.swing.JProgressBar;
      import javax.swing.JScrollPane;
      import javax.swing.JTextArea;

      public class GUIProgressWindow extends JPanel implements ActionListener, PropertyChangeListener, Runnable, WindowListener {

      private static final long serialVersionUID = 1L;
      private JProgressBar progressBar;
      private JTextArea taskOutput;
      private int state;
      protected int EXIT_CODE = 0;

      public void exit() {
      System.exit(EXIT_CODE);
      }

      public void err() {
      EXIT_CODE = 42;
      }

      public GUIProgressWindow() {
      super(new BorderLayout());
      state = 0;
      progressBar = new JProgressBar(0, 100);
      progressBar.setValue(0);
      progressBar.setStringPainted(true);
      taskOutput = new JTextArea(5, 20);
      taskOutput.setEditable(false);
      JPanel panel = new JPanel();
      panel.add(progressBar, BorderLayout.CENTER);
      add(panel, BorderLayout.PAGE_START);
      add(new JScrollPane(taskOutput), BorderLayout.CENTER);
      setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
      }

      private synchronized void append(String s) {
      taskOutput.append(s);
      taskOutput.scrollRectToVisible(new Rectangle(0, taskOutput.getHeight() - 2, 1, 1));
      }

      public synchronized void actionPerformed(ActionEvent evt) {
      if ("start".equals(evt.getActionCommand())) {
      state = 1;
      progressBar.setValue(0);
      append("Working...\n");
      setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
      } else if ("finish".equals(evt.getActionCommand())) {
      state = 2;
      progressBar.setValue(100);
      setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
      windowClosing(null);
      } else if ("fail".equals(evt.getActionCommand())) {
      state = 2;
      append("Unable to install.");
      setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
      }
      }

      public synchronized void propertyChange(PropertyChangeEvent evt) {
      if ("progress" == evt.getPropertyName()) {
      int progress = (Integer) evt.getNewValue();
      if (progress > -1) {
      progressBar.setValue(progress);
      }
      } else if ("message" == evt.getPropertyName()) {
      append((String) evt.getNewValue());
      }
      }

      public synchronized void run() {
      JFrame frame = new JFrame("installer");
      frame.addWindowListener(this);
      frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
      JComponent newContentPane = this;
      newContentPane.setOpaque(true);
      frame.setContentPane(newContentPane);
      frame.pack();
      frame.setVisible(true);
      while (state < 3) {
      try {
      this.wait(1000);
      } catch (InterruptedException e) {
      }
      }
      }

      public synchronized void windowClosing(WindowEvent arg0) {
      if (state > 1) {
      state = 3;
      exit();
      }
      }

      public synchronized void windowActivated(WindowEvent arg0) {
      }

      public synchronized void windowClosed(WindowEvent arg0) {
      }

      public synchronized void windowDeactivated(WindowEvent arg0) {
      }

      public synchronized void windowDeiconified(WindowEvent arg0) {
      }

      public synchronized void windowIconified(WindowEvent arg0) {
      }

      public synchronized void windowOpened(WindowEvent arg0) {
      }

      }
      package net.vialect.installer;

      import java.beans.PropertyChangeEvent;

      public abstract class Installer {

      protected GUIProgressWindow PROGRESS_WINDOW;

      Installer() {
      }

      protected void run() {
      status("Test ", 1);
      }

      protected GUIProgressWindow getProgressWindow() {
      if (PROGRESS_WINDOW == null) {
      PROGRESS_WINDOW = new GUIProgressWindow();
      (new Thread(PROGRESS_WINDOW)).start();
      }
      return PROGRESS_WINDOW;
      }

      protected void status(String s, int i) {
      status(s, i, false);
      }

      protected void status(String s, int i, boolean err) {
      getProgressWindow().propertyChange(new PropertyChangeEvent(this, "progress", -1, i));
      getProgressWindow().propertyChange(new PropertyChangeEvent(this, "message", "", s));
      }
      }
      package net.vialect.installer;

      public class WindowsInstaller extends Installer {

      public static void main(String[] args) throws Exception {
      Installer i = new WindowsInstaller();
      i.run();
      }

      WindowsInstaller() {
      super();
      }

      }
      package net.vialect;

      public class UpgraderException extends Exception {

      private static final long serialVersionUID = 1L;

      public UpgraderException(String aMessage, Exception e) {
      super(aMessage, e);
      }

      public UpgraderException(String aMessage) {
      super(aMessage);
      }
      }
      ---------- END SOURCE ----------

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: