#13001 closed enhancement (fixed)
[Patch] Add MainPanel
Reported by: | michael2402 | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 16.06 |
Component: | Core | Version: | |
Keywords: | gsoc-core | Cc: | Don-vip, bastiK, stoecker |
Description (last modified by )
This is one more patch that restructures the Main class and pulls logic out of it.
A new class MainPanel
is added to manage the MapFrame
state and display the start panel. addLayer and removeLayer are now completely handled by the layer manager. I left the two special addLayer(layer, bounds) methods in main since they do not yet have a good replacement. The layer methods in main have been deprecated since they only proxy all calls to the layer manager now.
The layer manager got a new resetState() method. It can currently not handle failing removeLayer listeners, this is why the tests might still be in an unclean state. I'll work on that next week.
I tested this patch with several plugins but since the map view is now constructed after the layer was added to the layer list there might be problems with that. The MainPanel listener is registered before any plugin listeners so from their point there should be no difference. But you never know.
Attachments (1)
Change History (12)
by , 9 years ago
Attachment: | patch-main-add-map-content.patch added |
---|
comment:1 by , 9 years ago
Description: | modified (diff) |
---|
comment:2 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 9 years ago
Michael, are you developing on Windows or Linux? The latest changes make the JVM systematically crash (both 7u80 and 8u91) when running unit tests on Windows, that's impressive!
# # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006301863b, pid=4736, tid=7740 # # JRE version: Java(TM) SE Runtime Environment (8.0_91-b14) (build 1.8.0_91-b14) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.91-b14 mixed mode windows-amd64 compressed oops) # Problematic frame: # V [jvm.dll+0x14863b] # # 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 # --------------- T H R E A D --------------- Current thread (0x0000000023cf8800): JavaThread "AWT-EventQueue-0" [_thread_in_vm, id=7740, stack(0x0000000023740000,0x0000000023840000)] siginfo: ExceptionCode=0xc0000005, reading address 0x0000000000000000 Registers: RAX=0x0000000020b01b48, RBX=0x00000007c0132888, RCX=0x0000000000000002, RDX=0x0000000020b01b40 RSP=0x000000002383d210, RBP=0x0000000000000006, RSI=0x0000000023cf89f8, RDI=0x0000000023cf8800 R8 =0x0000000000000004, R9 =0x0000000000000000, R10=0x0000000000000113, R11=0x000000001f5f0a98 R12=0x0000000000000000, R13=0x000000002383d318, R14=0x000000002383d488, R15=0x0000000023cf8800 RIP=0x000000006301863b, EFLAGS=0x0000000000010206 Top of Stack: (sp=0x000000002383d210) 0x000000002383d210: 0000000023cf89f8 00000007c0132888 0x000000002383d220: 0000000000000006 0000000023cf8800 0x000000002383d230: 0000000000000001 00000007c0132888 0x000000002383d240: 000000000323e0c0 00000000630e58b5 0x000000002383d250: 0000000023cf8800 0000000062dfefe0 0x000000002383d260: 0000000023cf8800 0000000000000000 0x000000002383d270: 0000000020b01a18 00000000630e4dfc 0x000000002383d280: 0000000020b01b40 000000000323e0c0 0x000000002383d290: 0000000020b01b40 0000000000000001 0x000000002383d2a0: 0000000023cf8800 000000006300cb02 0x000000002383d2b0: 0000000021b03290 0000000000000005 0x000000002383d2c0: 0000000020b01b40 0000000062d69cb4 0x000000002383d2d0: 0000000000000006 0000000023cf89f8 0x000000002383d2e0: 0000000000000005 0000000021b03290 0x000000002383d2f0: 0000000020b01b40 0000000062d6c9f4 0x000000002383d300: 0000000023cf89f8 0000000000000006 Instructions: (pc=0x000000006301863b) 0x000000006301861b: cf e8 8f f7 0d 00 33 c0 e9 dd 01 00 00 48 8b d0 0x000000006301862b: 48 8b ce 48 89 ac 24 c0 00 00 00 e8 25 c7 0c 00 0x000000006301863b: 49 8b 0c 24 c7 44 24 40 0e 00 00 00 48 8b 51 08 0x000000006301864b: 48 8b e8 0f b7 4a 24 48 8b 52 08 48 8b 54 ca 50 Register to memory mapping: RAX=0x0000000020b01b48 is an unknown value RBX=0x00000007c0132888 is pointing into metadata RCX=0x0000000000000002 is an unknown value RDX=0x0000000020b01b40 is an unknown value RSP=0x000000002383d210 is pointing into the stack for thread: 0x0000000023cf8800 RBP=0x0000000000000006 is an unknown value RSI=0x0000000023cf89f8 is an unknown value RDI=0x0000000023cf8800 is a thread R8 =0x0000000000000004 is an unknown value R9 =0x0000000000000000 is an unknown value R10=0x0000000000000113 is an unknown value R11=0x000000001f5f0a98 is an unknown value R12=0x0000000000000000 is an unknown value R13=0x000000002383d318 is pointing into the stack for thread: 0x0000000023cf8800 R14=0x000000002383d488 is pointing into the stack for thread: 0x0000000023cf8800 R15=0x0000000023cf8800 is a thread Stack: [0x0000000023740000,0x0000000023840000], sp=0x000000002383d210, free space=1012k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [jvm.dll+0x14863b] C [awt.dll+0x69cb4] C [awt.dll+0x6c9f4] C [awt.dll+0x6cab2] C 0x0000000003477f54 Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j sun.awt.windows.ThemeReader.getThemeMargins(JIII)Ljava/awt/Insets;+0 j sun.awt.windows.ThemeReader.getThemeMargins(Ljava/lang/String;III)Ljava/awt/Insets;+18 j com.sun.java.swing.plaf.windows.XPStyle.getMargin(Ljava/awt/Component;Lcom/sun/java/swing/plaf/windows/TMSchema$Part;Lcom/sun/java/swing/plaf/windows/TMSchema$State;Lcom/sun/java/swing/plaf/windows/TMSchema$Prop;)Ljava/awt/Insets;+19 j com.sun.java.swing.plaf.windows.XPStyle.getBorder(Ljava/awt/Component;Lcom/sun/java/swing/plaf/windows/TMSchema$Part;)Ljavax/swing/border/Border;+169 j com.sun.java.swing.plaf.windows.WindowsLookAndFeel$XPBorderValue.getXPValue(Ljavax/swing/UIDefaults;)Ljava/lang/Object;+17 j com.sun.java.swing.plaf.windows.WindowsLookAndFeel$XPValue.createValue(Ljavax/swing/UIDefaults;)Ljava/lang/Object;+10 J 1574 C1 javax.swing.UIDefaults.getFromHashtable(Ljava/lang/Object;)Ljava/lang/Object; (239 bytes) @ 0x0000000003a3c5bc [0x0000000003a3b200+0x13bc] J 1573 C1 javax.swing.UIDefaults.get(Ljava/lang/Object;)Ljava/lang/Object; (21 bytes) @ 0x0000000003a37914 [0x0000000003a37880+0x94] J 1655 C1 javax.swing.MultiUIDefaults.get(Ljava/lang/Object;)Ljava/lang/Object; (67 bytes) @ 0x0000000003a70aec [0x0000000003a70800+0x2ec] j javax.swing.UIDefaults.getBorder(Ljava/lang/Object;)Ljavax/swing/border/Border;+2 j javax.swing.UIManager.getBorder(Ljava/lang/Object;)Ljavax/swing/border/Border;+4 j javax.swing.LookAndFeel.installBorder(Ljavax/swing/JComponent;Ljava/lang/String;)V+18 j javax.swing.plaf.basic.BasicButtonUI.installDefaults(Ljavax/swing/AbstractButton;)V+183 j com.sun.java.swing.plaf.windows.WindowsButtonUI.installDefaults(Ljavax/swing/AbstractButton;)V+2 j javax.swing.plaf.basic.BasicButtonUI.installUI(Ljavax/swing/JComponent;)V+5 j javax.swing.JComponent.setUI(Ljavax/swing/plaf/ComponentUI;)V+39 j javax.swing.AbstractButton.setUI(Ljavax/swing/plaf/ButtonUI;)V+2 j javax.swing.JButton.updateUI()V+8 j javax.swing.AbstractButton.init(Ljava/lang/String;Ljavax/swing/Icon;)V+19 j javax.swing.JButton.<init>(Ljava/lang/String;Ljavax/swing/Icon;)V+18 j javax.swing.JButton.<init>()V+3 j javax.swing.plaf.basic.BasicArrowButton.<init>(ILjava/awt/Color;Ljava/awt/Color;Ljava/awt/Color;Ljava/awt/Color;)V+1 j com.sun.java.swing.plaf.windows.WindowsScrollBarUI$WindowsArrowButton.<init>(Lcom/sun/java/swing/plaf/windows/WindowsScrollBarUI;ILjava/awt/Color;Ljava/awt/Color;Ljava/awt/Color;Ljava/awt/Color;)V+14 j com.sun.java.swing.plaf.windows.WindowsScrollBarUI.createIncreaseButton(I)Ljavax/swing/JButton;+26 j javax.swing.plaf.basic.BasicScrollBarUI.installComponents()V+35 j javax.swing.plaf.basic.BasicScrollBarUI.installUI(Ljavax/swing/JComponent;)V+43 j javax.swing.JComponent.setUI(Ljavax/swing/plaf/ComponentUI;)V+39 j javax.swing.JScrollBar.setUI(Ljavax/swing/plaf/ScrollBarUI;)V+2 j javax.swing.JScrollBar.updateUI()V+8 j javax.swing.JScrollBar.<init>(IIIII)V+81 j javax.swing.JScrollBar.<init>(I)V+8 j javax.swing.JScrollPane$ScrollBar.<init>(Ljavax/swing/JScrollPane;I)V+7 j javax.swing.JScrollPane.createVerticalScrollBar()Ljavax/swing/JScrollBar;+6 j javax.swing.JScrollPane.<init>(Ljava/awt/Component;II)V+52 j javax.swing.JScrollPane.<init>(Ljava/awt/Component;)V+6 j org.openstreetmap.josm.gui.GettingStarted.<init>()V+124 j org.openstreetmap.josm.gui.MainPanel.getGettingStarted()Lorg/openstreetmap/josm/gui/GettingStarted;+29 j org.openstreetmap.josm.Main.<init>()V+33 j org.openstreetmap.josm.gui.MainApplication.<init>(Lorg/openstreetmap/josm/gui/MainFrame;)V+5 j org.openstreetmap.josm.gui.MainApplication.<init>()V+6 j org.openstreetmap.josm.JOSMFixture.setupGUI()V+61 j org.openstreetmap.josm.JOSMFixture.access$000(Lorg/openstreetmap/josm/JOSMFixture;)V+5 j org.openstreetmap.josm.JOSMFixture$1.run()V+8 j java.awt.event.InvocationEvent.dispatch()V+11 j java.awt.EventQueue.dispatchEventImpl(Ljava/awt/AWTEvent;Ljava/lang/Object;)V+21 j java.awt.EventQueue.access$500(Ljava/awt/EventQueue;Ljava/awt/AWTEvent;Ljava/lang/Object;)V+3 j java.awt.EventQueue$3.run()Ljava/lang/Void;+32 j java.awt.EventQueue$3.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 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object;+18 j java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+46 j java.awt.EventDispatchThread.pumpOneEventForFilters(I)V+245 j java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V+35 j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11 j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4 j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3 j java.awt.EventDispatchThread.run()V+9 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x000000001f73b800 JavaThread "TimerQueue" daemon [_thread_blocked, id=1712, stack(0x00000000250b0000,0x00000000251b0000)] =>0x0000000023cf8800 JavaThread "AWT-EventQueue-0" [_thread_in_vm, id=7740, stack(0x0000000023740000,0x0000000023840000)] 0x000000001fc17800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=2440, stack(0x0000000021d20000,0x0000000021e20000)] 0x000000001fc16800 JavaThread "AWT-Shutdown" [_thread_blocked, id=9508, stack(0x0000000021c20000,0x0000000021d20000)] 0x000000001f9c5000 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=8940, stack(0x0000000021870000,0x0000000021970000)] 0x000000001fac5000 JavaThread "Thread-1" daemon [_thread_in_native, id=84, stack(0x0000000021660000,0x0000000021760000)] 0x000000001e27f800 JavaThread "Service Thread" daemon [_thread_blocked, id=3184, stack(0x000000001eb90000,0x000000001ec90000)] 0x000000001e328800 JavaThread "C1 CompilerThread2" daemon [_thread_blocked, id=1552, stack(0x000000001ea90000,0x000000001eb90000)] 0x000000001e327800 JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=6408, stack(0x000000001e990000,0x000000001ea90000)] 0x000000001e247000 JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=6492, stack(0x000000001e890000,0x000000001e990000)] 0x000000001cae2800 JavaThread "Attach Listener" daemon [_thread_blocked, id=4720, stack(0x000000001e050000,0x000000001e150000)] 0x000000001cae1800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=10164, stack(0x000000001df50000,0x000000001e050000)] 0x000000000345e800 JavaThread "Finalizer" daemon [_thread_blocked, id=9208, stack(0x000000001dd40000,0x000000001de40000)] 0x000000001caa9000 JavaThread "Reference Handler" daemon [_thread_blocked, id=9472, stack(0x000000001dc40000,0x000000001dd40000)] 0x0000000003362800 JavaThread "main" [_thread_blocked, id=5044, stack(0x00000000030b0000,0x00000000031b0000)] Other Threads: 0x000000001caa7800 VMThread [stack: 0x000000001db40000,0x000000001dc40000] [id=6148] 0x000000001e24e000 WatcherThread [stack: 0x000000001ec90000,0x000000001ed90000] [id=2132] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap: PSYoungGen total 76288K, used 33906K [0x000000076ad80000, 0x0000000770280000, 0x00000007c0000000) eden space 65536K, 51% used [0x000000076ad80000,0x000000076ce9c8b8,0x000000076ed80000) from space 10752K, 0% used [0x000000076ed80000,0x000000076ed80000,0x000000076f800000) to space 10752K, 0% used [0x000000076f800000,0x000000076f800000,0x0000000770280000) ParOldGen total 175104K, used 6531K [0x00000006c0800000, 0x00000006cb300000, 0x000000076ad80000) object space 175104K, 3% used [0x00000006c0800000,0x00000006c0e60d68,0x00000006cb300000) Metaspace used 24130K, capacity 24380K, committed 24576K, reserved 1071104K class space used 2913K, capacity 3007K, committed 3072K, reserved 1048576K Card table byte_map: [0x0000000012820000,0x0000000013020000] byte_map_base: 0x000000000f21c000 Marking Bits: (ParMarkBitMap*) 0x00000000636e2f70 Begin Bits: [0x0000000013980000, 0x0000000017960000) End Bits: [0x0000000017960000, 0x000000001b940000) Polling page: 0x0000000003040000 CodeCache: size=245760Kb used=8085Kb max_used=8094Kb free=237674Kb bounds [0x0000000003460000, 0x0000000003c60000, 0x0000000012460000] total_blobs=2697 nmethods=2122 adapters=484 compilation: enabled Compilation events (10 events): Event: 1.661 Thread 0x000000001e328800 2130 1 java.util.Collections$EmptyEnumeration::hasMoreElements (2 bytes) Event: 1.661 Thread 0x000000001e328800 nmethod 2130 0x0000000003c30f50 code [0x0000000003c310a0, 0x0000000003c311b0] Event: 1.664 Thread 0x000000001e247000 nmethod 2046 0x0000000003c3d7d0 code [0x0000000003c3d980, 0x0000000003c3de38] Event: 1.664 Thread 0x000000001e247000 1968 4 org.jacoco.agent.rt.internal_6da5971.core.internal.flow.LabelInfo::needsProbe (36 bytes) Event: 1.665 Thread 0x000000001e247000 nmethod 1968 0x0000000003c3bf90 code [0x0000000003c3c0c0, 0x0000000003c3c158] Event: 1.665 Thread 0x000000001e328800 2133 1 sun.java2d.SunGraphics2D::getSurfaceData (5 bytes) Event: 1.665 Thread 0x000000001e247000 2132 4 sun.java2d.loops.GraphicsPrimitiveMgr$2::compare (39 bytes) Event: 1.665 Thread 0x000000001e328800 nmethod 2133 0x0000000003c30a10 code [0x0000000003c30b60, 0x0000000003c30c70] Event: 1.665 Thread 0x000000001e247000 nmethod 2132 0x0000000003c3fc10 code [0x0000000003c3fd60, 0x0000000003c3fe38] Event: 1.665 Thread 0x000000001e247000 1937 4 java.util.HashMap::containsKey (18 bytes) GC Heap History (10 events): Event: 0.936 GC heap before {Heap before GC invocations=1 (full 0): PSYoungGen total 76288K, used 65536K [0x000000076ad80000, 0x0000000770280000, 0x00000007c0000000) eden space 65536K, 100% used [0x000000076ad80000,0x000000076ed80000,0x000000076ed80000) from space 10752K, 0% used [0x000000076f800000,0x000000076f800000,0x0000000770280000) to space 10752K, 0% used [0x000000076ed80000,0x000000076ed80000,0x000000076f800000) ParOldGen total 175104K, used 0K [0x00000006c0800000, 0x00000006cb300000, 0x000000076ad80000) object space 175104K, 0% used [0x00000006c0800000,0x00000006c0800000,0x00000006cb300000) Metaspace used 15157K, capacity 15390K, committed 15616K, reserved 1062912K class space used 1684K, capacity 1784K, committed 1792K, reserved 1048576K Event: 0.942 GC heap after Heap after GC invocations=1 (full 0): PSYoungGen total 76288K, used 6712K [0x000000076ad80000, 0x0000000770280000, 0x00000007c0000000) eden space 65536K, 0% used [0x000000076ad80000,0x000000076ad80000,0x000000076ed80000) from space 10752K, 62% used [0x000000076ed80000,0x000000076f40e160,0x000000076f800000) to space 10752K, 0% used [0x000000076f800000,0x000000076f800000,0x0000000770280000) ParOldGen total 175104K, used 80K [0x00000006c0800000, 0x00000006cb300000, 0x000000076ad80000) object space 175104K, 0% used [0x00000006c0800000,0x00000006c0814010,0x00000006cb300000) Metaspace used 15157K, capacity 15390K, committed 15616K, reserved 1062912K class space used 1684K, capacity 1784K, committed 1792K, reserved 1048576K } Event: 1.245 GC heap before {Heap before GC invocations=2 (full 0): PSYoungGen total 76288K, used 41217K [0x000000076ad80000, 0x0000000770280000, 0x00000007c0000000) eden space 65536K, 52% used [0x000000076ad80000,0x000000076cf325a0,0x000000076ed80000) from space 10752K, 62% used [0x000000076ed80000,0x000000076f40e160,0x000000076f800000) to space 10752K, 0% used [0x000000076f800000,0x000000076f800000,0x0000000770280000) ParOldGen total 175104K, used 80K [0x00000006c0800000, 0x00000006cb300000, 0x000000076ad80000) object space 175104K, 0% used [0x00000006c0800000,0x00000006c0814010,0x00000006cb300000) Metaspace used 19413K, capacity 19626K, committed 19840K, reserved 1067008K class space used 2265K, capacity 2364K, committed 2432K, reserved 1048576K Event: 1.251 GC heap after Heap after GC invocations=2 (full 0): PSYoungGen total 76288K, used 7365K [0x000000076ad80000, 0x0000000770280000, 0x00000007c0000000) eden space 65536K, 0% used [0x000000076ad80000,0x000000076ad80000,0x000000076ed80000) from space 10752K, 68% used [0x000000076f800000,0x000000076ff31610,0x0000000770280000) to space 10752K, 0% used [0x000000076ed80000,0x000000076ed80000,0x000000076f800000) ParOldGen total 175104K, used 96K [0x00000006c0800000, 0x00000006cb300000, 0x000000076ad80000) object space 175104K, 0% used [0x00000006c0800000,0x00000006c0818010,0x00000006cb300000) Metaspace used 19413K, capacity 19626K, committed 19840K, reserved 1067008K class space used 2265K, capacity 2364K, committed 2432K, reserved 1048576K } Event: 1.251 GC heap before {Heap before GC invocations=3 (full 1): PSYoungGen total 76288K, used 7365K [0x000000076ad80000, 0x0000000770280000, 0x00000007c0000000) eden space 65536K, 0% used [0x000000076ad80000,0x000000076ad80000,0x000000076ed80000) from space 10752K, 68% used [0x000000076f800000,0x000000076ff31610,0x0000000770280000) to space 10752K, 0% used [0x000000076ed80000,0x000000076ed80000,0x000000076f800000) ParOldGen total 175104K, used 96K [0x00000006c0800000, 0x00000006cb300000, 0x000000076ad80000) object space 175104K, 0% used [0x00000006c0800000,0x00000006c0818010,0x00000006cb300000) Metaspace used 19413K, capacity 19626K, committed 19840K, reserved 1067008K class space used 2265K, capacity 2364K, committed 2432K, reserved 1048576K Event: 1.279 GC heap after Heap after GC invocations=3 (full 1): PSYoungGen total 76288K, used 0K [0x000000076ad80000, 0x0000000770280000, 0x00000007c0000000) eden space 65536K, 0% used [0x000000076ad80000,0x000000076ad80000,0x000000076ed80000) from space 10752K, 0% used [0x000000076f800000,0x000000076f800000,0x0000000770280000) to space 10752K, 0% used [0x000000076ed80000,0x000000076ed80000,0x000000076f800000) ParOldGen total 175104K, used 7309K [0x00000006c0800000, 0x00000006cb300000, 0x000000076ad80000) object space 175104K, 4% used [0x00000006c0800000,0x00000006c0f236d0,0x00000006cb300000) Metaspace used 19413K, capacity 19626K, committed 19840K, reserved 1067008K class space used 2265K, capacity 2364K, committed 2432K, reserved 1048576K } Event: 1.292 GC heap before {Heap before GC invocations=4 (full 1): PSYoungGen total 76288K, used 4050K [0x000000076ad80000, 0x0000000770280000, 0x00000007c0000000) eden space 65536K, 6% used [0x000000076ad80000,0x000000076b174be8,0x000000076ed80000) from space 10752K, 0% used [0x000000076f800000,0x000000076f800000,0x0000000770280000) to space 10752K, 0% used [0x000000076ed80000,0x000000076ed80000,0x000000076f800000) ParOldGen total 175104K, used 7309K [0x00000006c0800000, 0x00000006cb300000, 0x000000076ad80000) object space 175104K, 4% used [0x00000006c0800000,0x00000006c0f236d0,0x00000006cb300000) Metaspace used 19492K, capacity 19722K, committed 19840K, reserved 1067008K class space used 2275K, capacity 2396K, committed 2432K, reserved 1048576K Event: 1.293 GC heap after Heap after GC invocations=4 (full 1): PSYoungGen total 76288K, used 139K [0x000000076ad80000, 0x0000000770280000, 0x00000007c0000000) eden space 65536K, 0% used [0x000000076ad80000,0x000000076ad80000,0x000000076ed80000) from space 10752K, 1% used [0x000000076ed80000,0x000000076eda2d80,0x000000076f800000) to space 10752K, 0% used [0x000000076f800000,0x000000076f800000,0x0000000770280000) ParOldGen total 175104K, used 7309K [0x00000006c0800000, 0x00000006cb300000, 0x000000076ad80000) object space 175104K, 4% used [0x00000006c0800000,0x00000006c0f236d0,0x00000006cb300000) Metaspace used 19492K, capacity 19722K, committed 19840K, reserved 1067008K class space used 2275K, capacity 2396K, committed 2432K, reserved 1048576K } Event: 1.293 GC heap before {Heap before GC invocations=5 (full 2): PSYoungGen total 76288K, used 139K [0x000000076ad80000, 0x0000000770280000, 0x00000007c0000000) eden space 65536K, 0% used [0x000000076ad80000,0x000000076ad80000,0x000000076ed80000) from space 10752K, 1% used [0x000000076ed80000,0x000000076eda2d80,0x000000076f800000) to space 10752K, 0% used [0x000000076f800000,0x000000076f800000,0x0000000770280000) ParOldGen total 175104K, used 7309K [0x00000006c0800000, 0x00000006cb300000, 0x000000076ad80000) object space 175104K, 4% used [0x00000006c0800000,0x00000006c0f236d0,0x00000006cb300000) Metaspace used 19492K, capacity 19722K, committed 19840K, reserved 1067008K class space used 2275K, capacity 2396K, committed 2432K, reserved 1048576K Event: 1.324 GC heap after Heap after GC invocations=5 (full 2): PSYoungGen total 76288K, used 0K [0x000000076ad80000, 0x0000000770280000, 0x00000007c0000000) eden space 65536K, 0% used [0x000000076ad80000,0x000000076ad80000,0x000000076ed80000) from space 10752K, 0% used [0x000000076ed80000,0x000000076ed80000,0x000000076f800000) to space 10752K, 0% used [0x000000076f800000,0x000000076f800000,0x0000000770280000) ParOldGen total 175104K, used 6531K [0x00000006c0800000, 0x00000006cb300000, 0x000000076ad80000) object space 175104K, 3% used [0x00000006c0800000,0x00000006c0e60d68,0x00000006cb300000) Metaspace used 19492K, capacity 19722K, committed 19840K, reserved 1067008K class space used 2275K, capacity 2396K, committed 2432K, reserved 1048576K } Deoptimization events (10 events): Event: 1.413 Thread 0x0000000003362800 Uncommon trap: reason=bimorphic action=maybe_recompile pc=0x00000000037516d4 method=org.jacoco.agent.rt.internal_6da5971.asm.tree.LineNumberNode.accept(Lorg/jacoco/agent/rt/internal_6da5971/asm/MethodVisitor;)V @ 12 Event: 1.413 Thread 0x0000000003362800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x0000000003a47710 method=org.jacoco.agent.rt.internal_6da5971.asm.MethodVisitor.visitLdcInsn(Ljava/lang/Object;)V @ 4 Event: 1.426 Thread 0x0000000003362800 Uncommon trap: reason=speculate_class_check action=maybe_recompile pc=0x0000000003a4aed4 method=java.util.ArrayList.<init>(Ljava/util/Collection;)V @ 36 Event: 1.430 Thread 0x0000000003362800 Uncommon trap: reason=speculate_class_check action=maybe_recompile pc=0x0000000003a4aed4 method=java.util.ArrayList.<init>(Ljava/util/Collection;)V @ 36 Event: 1.435 Thread 0x0000000003362800 Uncommon trap: reason=speculate_class_check action=maybe_recompile pc=0x0000000003a4aed4 method=java.util.ArrayList.<init>(Ljava/util/Collection;)V @ 36 Event: 1.436 Thread 0x0000000003362800 Uncommon trap: reason=speculate_class_check action=maybe_recompile pc=0x0000000003a4aed4 method=java.util.ArrayList.<init>(Ljava/util/Collection;)V @ 36 Event: 1.648 Thread 0x0000000023cf8800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000000035f244c method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8 Event: 1.648 Thread 0x0000000023cf8800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000000035f244c method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8 Event: 1.648 Thread 0x0000000023cf8800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000000035f244c method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8 Event: 1.648 Thread 0x0000000023cf8800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000000035f244c method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8 Internal exceptions (10 events): Event: 1.484 Thread 0x0000000003362800 Exception <a 'java/lang/ArrayIndexOutOfBoundsException'> (0x000000076bc17e48) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u91\6644\hotspot\src\share\vm\runtime\sharedRuntime.cpp, line 605] Event: 1.484 Thread 0x0000000003362800 Exception <a 'java/lang/ArrayIndexOutOfBoundsException'> (0x000000076bc19f68) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u91\6644\hotspot\src\share\vm\runtime\sharedRuntime.cpp, line 605] Event: 1.485 Thread 0x0000000003362800 Exception <a 'java/lang/ArrayIndexOutOfBoundsException'> (0x000000076bc1d488) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u91\6644\hotspot\src\share\vm\runtime\sharedRuntime.cpp, line 605] Event: 1.486 Thread 0x0000000003362800 Exception <a 'java/lang/ClassNotFoundException': org/openstreetmap/josm/data/cache/CacheEntryAttributesCustomizer> (0x000000076bc39f78) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u91\6644\hotspot\src\share\vm\classfile\systemDictionary.c°,Ð6úÅ÷? Event: 1.486 Thread 0x0000000003362800 Exception <a 'java/lang/ArrayIndexOutOfBoundsException'> (0x000000076bc3e5c8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u91\6644\hotspot\src\share\vm\runtime\sharedRuntime.cpp, line 605] Event: 1.487 Thread 0x0000000003362800 Exception <a 'java/lang/ArrayIndexOutOfBoundsException'> (0x000000076bc42018) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u91\6644\hotspot\src\share\vm\runtime\sharedRuntime.cpp, line 605] Event: 1.553 Thread 0x0000000003362800 Exception <a 'java/lang/reflect/InvocationTargetException'> (0x000000076c4ca3d8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u91\6644\hotspot\src\share\vm\runtime\reflection.cpp, line 1092] Event: 1.581 Thread 0x0000000003362800 Exception <a 'java/lang/ClassNotFoundException': sun/net/www/protocol/resource/Handler> (0x000000076c8da330) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u91\6644\hotspot\src\share\vm\classfile\systemDictionary.cpp, line 210] Event: 1.593 Thread 0x0000000003362800 Exception <a 'java/lang/ClassNotFoundException': sun/net/www/protocol/resource/Handler> (0x000000076ca23ce0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u91\6644\hotspot\src\share\vm\classfile\systemDictionary.cpp, line 210] Event: 1.594 Thread 0x0000000003362800 Exception <a 'java/lang/ClassNotFoundException': sun/net/www/protocol/resource/Handler> (0x000000076ca380f8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u91\6644\hotspot\src\share\vm\classfile\systemDictionary.cpp, line 210] Events (10 events): Event: 1.665 loading class com/sun/java/swing/plaf/windows/WindowsScrollBarUI$WindowsArrowButton Event: 1.665 loading class javax/swing/plaf/basic/BasicArrowButton Event: 1.665 loading class javax/swing/plaf/basic/BasicArrowButton done Event: 1.665 loading class com/sun/java/swing/plaf/windows/WindowsScrollBarUI$WindowsArrowButton done Event: 1.665 loading class com/sun/java/swing/plaf/windows/WindowsButtonUI Event: 1.665 loading class javax/swing/plaf/basic/BasicButtonUI Event: 1.665 loading class javax/swing/plaf/basic/BasicButtonUI done Event: 1.665 loading class com/sun/java/swing/plaf/windows/WindowsButtonUI done Event: 1.666 loading class com/sun/java/swing/plaf/windows/TMSchema$TypeEnum Event: 1.666 loading class com/sun/java/swing/plaf/windows/TMSchema$TypeEnum done Dynamic libraries: 0x00007ff7c0c10000 - 0x00007ff7c0c47000 C:\Program Files\Java\jdk1.8.0_91\jre\bin\java.exe 0x00007ff8dae60000 - 0x00007ff8db021000 C:\WINDOWS\SYSTEM32\ntdll.dll 0x00007ff8da910000 - 0x00007ff8da9bd000 C:\WINDOWS\system32\KERNEL32.DLL 0x00007ff8d8070000 - 0x00007ff8d8258000 C:\WINDOWS\system32\KERNELBASE.dll 0x00007ff8d83f0000 - 0x00007ff8d8497000 C:\WINDOWS\system32\ADVAPI32.dll 0x00007ff8d9a00000 - 0x00007ff8d9a9d000 C:\WINDOWS\system32\msvcrt.dll 0x00007ff8da470000 - 0x00007ff8da4cb000 C:\WINDOWS\system32\sechost.dll 0x00007ff8da510000 - 0x00007ff8da62c000 C:\WINDOWS\system32\RPCRT4.dll 0x00007ff8d9ee0000 - 0x00007ff8da036000 C:\WINDOWS\system32\USER32.dll 0x00007ff8d9ba0000 - 0x00007ff8d9d26000 C:\WINDOWS\system32\GDI32.dll 0x00007ff8d3a40000 - 0x00007ff8d3cb4000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10586.0_none_8c15ae12515e1c22\COMCTL32.dll 0x00007ff8da690000 - 0x00007ff8da90d000 C:\WINDOWS\system32\combase.dll 0x00007ff8d7530000 - 0x00007ff8d759a000 C:\WINDOWS\system32\bcryptPrimitives.dll 0x00007ff8da4d0000 - 0x00007ff8da50b000 C:\WINDOWS\system32\IMM32.DLL 0x00000000637b0000 - 0x0000000063882000 C:\Program Files\Java\jdk1.8.0_91\jre\bin\msvcr100.dll 0x0000000062ed0000 - 0x0000000063763000 C:\Program Files\Java\jdk1.8.0_91\jre\bin\server\jvm.dll 0x00007ff8dae50000 - 0x00007ff8dae58000 C:\WINDOWS\system32\PSAPI.DLL 0x00007ff8d54d0000 - 0x00007ff8d54f3000 C:\WINDOWS\SYSTEM32\WINMM.dll 0x00007ff8d40f0000 - 0x00007ff8d40fa000 C:\WINDOWS\SYSTEM32\VERSION.dll 0x00007ff8be340000 - 0x00007ff8be349000 C:\WINDOWS\SYSTEM32\WSOCK32.dll 0x00007ff8d8260000 - 0x00007ff8d82cb000 C:\WINDOWS\system32\WS2_32.dll 0x00000000018c0000 - 0x00000000018ec000 C:\WINDOWS\SYSTEM32\WINMMBASE.dll 0x00007ff8d7f60000 - 0x00007ff8d7fa3000 C:\WINDOWS\system32\cfgmgr32.dll 0x0000000063950000 - 0x000000006395f000 C:\Program Files\Java\jdk1.8.0_91\jre\bin\verify.dll 0x0000000063920000 - 0x0000000063949000 C:\Program Files\Java\jdk1.8.0_91\jre\bin\java.dll 0x0000000062ea0000 - 0x0000000062ec3000 C:\Program Files\Java\jdk1.8.0_91\jre\bin\instrument.dll 0x0000000063900000 - 0x0000000063916000 C:\Program Files\Java\jdk1.8.0_91\jre\bin\zip.dll 0x00007ff8d84a0000 - 0x00007ff8d99fc000 C:\WINDOWS\system32\SHELL32.dll 0x00007ff8d7630000 - 0x00007ff8d7c74000 C:\WINDOWS\system32\windows.storage.dll 0x00007ff8da300000 - 0x00007ff8da352000 C:\WINDOWS\system32\shlwapi.dll 0x00007ff8d74e0000 - 0x00007ff8d74ef000 C:\WINDOWS\system32\kernel.appcore.dll 0x00007ff8d7fb0000 - 0x00007ff8d8065000 C:\WINDOWS\system32\shcore.dll 0x00007ff8d7490000 - 0x00007ff8d74db000 C:\WINDOWS\system32\powrprof.dll 0x00007ff8d74f0000 - 0x00007ff8d7504000 C:\WINDOWS\system32\profapi.dll 0x00000000638e0000 - 0x00000000638fa000 C:\Program Files\Java\jdk1.8.0_91\jre\bin\net.dll 0x00007ff8d6db0000 - 0x00007ff8d6e0c000 C:\WINDOWS\system32\mswsock.dll 0x00007ff8c9db0000 - 0x00007ff8c9dc6000 C:\WINDOWS\system32\napinsp.dll 0x00007ff8c9dd0000 - 0x00007ff8c9dea000 C:\WINDOWS\system32\pnrpnsp.dll 0x00007ff8d3980000 - 0x00007ff8d3998000 C:\WINDOWS\system32\NLAapi.dll 0x00007ff8d5cc0000 - 0x00007ff8d5d6a000 C:\WINDOWS\SYSTEM32\DNSAPI.dll 0x00007ff8da1a0000 - 0x00007ff8da1a8000 C:\WINDOWS\system32\NSI.dll 0x00007ff8c9df0000 - 0x00007ff8c9dfd000 C:\WINDOWS\System32\winrnr.dll 0x00007ff8c9d90000 - 0x00007ff8c9da5000 C:\WINDOWS\System32\wshbth.dll 0x00007ff8d0450000 - 0x00007ff8d045a000 C:\Windows\System32\rasadhlp.dll 0x00007ff8d42c0000 - 0x00007ff8d42f8000 C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL 0x00007ff8d0af0000 - 0x00007ff8d0b57000 C:\WINDOWS\System32\fwpuclnt.dll 0x00007ff8d7080000 - 0x00007ff8d70a9000 C:\WINDOWS\SYSTEM32\bcrypt.dll 0x00000000638c0000 - 0x00000000638d1000 C:\Program Files\Java\jdk1.8.0_91\jre\bin\nio.dll 0x0000000062d00000 - 0x0000000062e98000 C:\Program Files\Java\jdk1.8.0_91\jre\bin\awt.dll 0x00007ff8d9ad0000 - 0x00007ff8d9b91000 C:\WINDOWS\system32\OLEAUT32.dll 0x00007ff8d5a40000 - 0x00007ff8d5ab9000 C:\WINDOWS\system32\apphelp.dll 0x00007ff8d5bd0000 - 0x00007ff8d5c66000 C:\WINDOWS\system32\uxtheme.dll 0x00007ff8da040000 - 0x00007ff8da19a000 C:\WINDOWS\system32\MSCTF.dll 0x00007ff8d47c0000 - 0x00007ff8d47e2000 C:\WINDOWS\system32\dwmapi.dll 0x00007ff8da1b0000 - 0x00007ff8da2f3000 C:\WINDOWS\system32\ole32.dll 0x0000000063890000 - 0x00000000638b4000 C:\Program Files\Java\jdk1.8.0_91\jre\bin\sunec.dll 0x00007ff8d6e60000 - 0x00007ff8d6e77000 C:\WINDOWS\SYSTEM32\CRYPTSP.dll 0x00007ff8d6af0000 - 0x00007ff8d6b24000 C:\WINDOWS\system32\rsaenh.dll 0x00007ff8d6c40000 - 0x00007ff8d6c5f000 C:\WINDOWS\SYSTEM32\USERENV.dll 0x00007ff8d6f80000 - 0x00007ff8d6f8b000 C:\WINDOWS\SYSTEM32\CRYPTBASE.dll 0x00007ff8d42a0000 - 0x00007ff8d42b6000 C:\WINDOWS\SYSTEM32\dhcpcsvc6.DLL 0x00007ff8d4280000 - 0x00007ff8d429a000 C:\WINDOWS\SYSTEM32\dhcpcsvc.DLL 0x0000000062cb0000 - 0x0000000062cf7000 C:\Program Files\Java\jdk1.8.0_91\jre\bin\fontmanager.dll 0x00000000637a0000 - 0x00000000637ad000 C:\Program Files\Java\jdk1.8.0_91\jre\bin\management.dll 0x00007ff8d2910000 - 0x00007ff8d2a9c000 C:\WINDOWS\SYSTEM32\dbghelp.dll VM Arguments: jvm_args: -Dfile.encoding=UTF-8 -javaagent:C:\Users\vippy\AppData\Local\Temp\jacocoagent3455443458008037387.jar=destfile=C:\SVN\josm\core\test\jacoco.exec -Djosm.home=C:\SVN\josm\core\test/config/unit-josm.home -Djosm.test.data=C:\SVN\josm\core\test/data -Djava.awt.headless=true -DsuppressPermanentFailure=${suppressPermanentFailure} java_command: org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner testsfile=C:\SVN\josm\core\junittestcases7801195832467248678.properties skipNonTests=false filtertrace=true haltOnError=false haltOnFailure=false formatter=org.apache.tools.ant.taskdefs.optional.junit.SummaryJUnitResultFormatter showoutput=false outputtoformatters=true logfailedtests=true threadid=0 logtestlistenerevents=false formatter=org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter,C:\SVN\josm\core\test\report\IGNORETHIS.txt formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,C:\SVN\josm\core\test\report\IGNORETHIS.xml crashfile=C:\SVN\josm\core\junitvmwatcher6427106882499099063.properties propsfile=C:\SVN\josm\core\junit3677878096209080435.properties java_class_path (initial): C:\SVN\josm\core\test\lib\equalsverifier-2.1.1.jar;C:\SVN\josm\core\test\lib\fest\MRJToolkitStubs-1.0.jar;C:\SVN\josm\core\test\lib\fest\debug-1.0.jar;C:\SVN\josm\core\test\lib\fest\fest-assert-1.0.jar;C:\SVN\josm\core\test\lib\fest\fest-reflect-1.1.jar;C:\SVN\josm\core\test\lib\fest\fest-swing-1.1.jar;C:\SVN\josm\core\test\lib\fest\fest-util-1.0.jar;C:\SVN\josm\core\test\lib\fest\jcip-annotations-1.0.jar;C:\SVN\josm\core\test\lib\jfcunit.jar;C:\SVN\josm\core\test\lib\junit\hamcrest-core-1.3.jar;C:\SVN\josm\core\test\lib\junit\junit-4.12.jar;C:\SVN\josm\core\test\lib\reflections\guava-19.0.jar;C:\SVN\josm\core\test\lib\reflections\javassist-3.20.0-GA.jar;C:\SVN\josm\core\test\lib\reflections\reflections-0.9.10.jar;C:\SVN\josm\core\test\lib\unitils-core\commons-collections-3.2.jar;C:\SVN\josm\core\test\lib\unitils-core\commons-lang-2.3.jar;C:\SVN\josm\core\test\lib\unitils-core\commons-logging-1.1.jar;C:\SVN\josm\core\test\lib\unitils-core\ognl-2.6.9.jar;C:\SVN\josm\core\test\lib\unitils-core\unitils-core-3.4.2.jar;C:\SVN\josm\core\dist\josm-custom.jar;C:\SVN\josm\core\tools\groovy-all-2.4.6.jar;C:\SVN\josm\core\tools\findbugs\annotations.jar;C:\SVN\josm\core\test\build\unit;C:\SVN\josm\core\test\config;C:\Users\vippy\.p2\pool\plugins\org.apache.ant_1.9.6.v201510161327\lib\ant-launcher.jar;C:\Users\vippy\.p2\pool\plugins\org.apache.ant_1.9.6.v201510161327\lib\ant.jar;C:\Users\vippy\.p2\pool\plugins\org.apache.ant_1.9.6.v201510161327\lib\ant-junit.jar;C:\Users\vippy\.p2\pool\plugins\org.apache.ant_1.9.6.v201510161327\lib\ant-junit4.jar;C:\Users\vippy\AppData\Local\Temp\jacocoagent3455443458008037387.jar Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=C:\Program Files\Java\jdk1.7.0_80 PATH=C:/Program Files/Java/jdk1.8.0_91/bin/../jre/bin/server;C:/Program Files/Java/jdk1.8.0_91/bin/../jre/bin;C:/Program Files/Java/jdk1.8.0_91/bin/../jre/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Python27\;C:\Python27\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files (x86)\GnuWin32\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\opt\apache-ant-1.9.6\bin;C:\opt\apache-maven-3.3.3\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\GNU\GnuPG\pub;;C:\Users\vippy\Desktop; USERNAME=vippy 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 10586 (10.0.10586.0) CPU:total 4 (4 cores per cpu, 1 threads per core) family 6 model 42 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, clmul, tsc, tscinvbit Memory: 4k page, physical 16743516k(10694156k free), swap 19233884k(11566452k free) vm_info: Java HotSpot(TM) 64-Bit Server VM (25.91-b14) for windows-amd64 JRE (1.8.0_91-b14), built on Apr 1 2016 00:58:32 by "java_re" with MS VC++ 10.0 (VS2010) time: Mon Jun 20 03:36:44 2016 elapsed time: 1 seconds (0d 0h 0m 1s)
comment:5 by , 9 years ago
Bug reported to Oracle: https://bugs.openjdk.java.net/browse/JI-9040460 (not yet public)
comment:6 by , 9 years ago
Is this only happening to unit tests? They don't have that problem on Linux. I'll have a look at it.
I'm running Linux and test with openjdk 1.7 + sun java 1.8
comment:9 by , 9 years ago
The bug is being investigated by Oracle: https://bugs.openjdk.java.net/browse/JDK-8159956
comment:10 by , 8 years ago
Fixed by Oracle in Java 9, it's an AWT bug specific to headless mode. A backport to Java 8 is considered.
In 10432/josm: