Modify

Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#9549 closed defect (othersoftware)

ArrayIndexOutOfBoundsException when canceling turn restrictions dialog

Reported by: naoliv Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report javabug Cc:

Description

Was doing some turn restrictions editions and clicked the Cancel button:

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2014-01-07 02:34:52
Last Changed Author: simon04
Revision: 6654
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2014-01-06 21:46:07 +0100 (Mon, 06 Jan 2014)
Last Changed Rev: 6654

Identification: JOSM/1.5 (6654 pt_BR) Linux Debian GNU/Linux unstable (sid)
Memory Usage: 315 MB / 1756 MB (28 MB allocated, but free)
Java version: 1.7.0_45, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u45-2.4.3-4
VM arguments: [-Djava.net.useSystemProxies=true, -Dawt.useSystemAAFontSettings=on]
Dataset consistency test: No problems found

Plugin: AddrInterpolation (30034)
Plugin: Create_grid_of_ways (29854)
Plugin: FixAddresses (29971)
Plugin: ImageryCache (30135)
Plugin: OpeningHoursEditor (30117)
Plugin: PicLayer (29854)
Plugin: SimplifyArea (30145)
Plugin: buildings_tools (30057)
Plugin: editgpx (29854)
Plugin: geotools (30147)
Plugin: jts (29854)
Plugin: merge-overlap (30034)
Plugin: notes (v0.8)
Plugin: opendata (30097)
Plugin: pdfimport (29913)
Plugin: poly (29854)
Plugin: reverter (30031)
Plugin: tagging-preset-tester (30017)
Plugin: turnrestrictions (30145)
Plugin: undelete (29854)
Plugin: utilsplugin2 (30177)

java.lang.ArrayIndexOutOfBoundsException: 53
	at sun.font.FileFontStrike.getCachedGlyphPtr(FileFontStrike.java:469)
	at sun.font.FileFontStrike.getGlyphImagePtr(FileFontStrike.java:380)
	at sun.font.FileFontStrike.getGlyphAdvance(FileFontStrike.java:660)
	at sun.font.FileFontStrike.getGlyphAdvance(FileFontStrike.java:571)
	at sun.font.CompositeStrike.getGlyphAdvance(CompositeStrike.java:147)
	at sun.font.CompositeStrike.getCodePointAdvance(CompositeStrike.java:158)
	at sun.font.FontDesignMetrics.handleCharWidth(FontDesignMetrics.java:416)
	at sun.font.FontDesignMetrics.getLatinCharWidth(FontDesignMetrics.java:425)
	at sun.font.FontDesignMetrics.charsWidth(FontDesignMetrics.java:507)
	at javax.swing.text.Utilities.getTabbedTextWidth(Utilities.java:279)
	at javax.swing.text.GlyphPainter1.getSpan(GlyphPainter1.java:62)
	at javax.swing.text.GlyphView.getPreferredSpan(GlyphView.java:592)
	at javax.swing.text.FlowView$LogicalView.getPreferredSpan(FlowView.java:732)
	at javax.swing.text.FlowView.calculateMinorAxisRequirements(FlowView.java:233)
	at javax.swing.text.ParagraphView.calculateMinorAxisRequirements(ParagraphView.java:724)
	at javax.swing.text.html.ParagraphView.calculateMinorAxisRequirements(ParagraphView.java:157)
	at javax.swing.text.BoxView.checkRequests(BoxView.java:935)
	at javax.swing.text.BoxView.getMinimumSpan(BoxView.java:568)
	at javax.swing.text.html.ParagraphView.getMinimumSpan(ParagraphView.java:270)
	at javax.swing.text.BoxView.calculateMinorAxisRequirements(BoxView.java:903)
	at javax.swing.text.html.BlockView.calculateMinorAxisRequirements(BlockView.java:146)
	at javax.swing.text.BoxView.checkRequests(BoxView.java:935)
	at javax.swing.text.BoxView.getMinimumSpan(BoxView.java:568)
	at javax.swing.text.html.BlockView.getMinimumSpan(BlockView.java:378)
	at javax.swing.text.BoxView.calculateMinorAxisRequirements(BoxView.java:903)
	at javax.swing.text.html.BlockView.calculateMinorAxisRequirements(BlockView.java:146)
	at javax.swing.text.BoxView.checkRequests(BoxView.java:935)
	at javax.swing.text.BoxView.getMinimumSpan(BoxView.java:568)
	at javax.swing.text.html.BlockView.getMinimumSpan(BlockView.java:378)
	at javax.swing.plaf.basic.BasicTextUI$RootView.getMinimumSpan(BasicTextUI.java:1369)
	at javax.swing.plaf.basic.BasicTextUI.getMinimumSize(BasicTextUI.java:945)
	at javax.swing.JComponent.getMinimumSize(JComponent.java:1733)
	at java.awt.GridBagLayout.GetLayoutInfo(GridBagLayout.java:1111)
	at java.awt.GridBagLayout.getLayoutInfo(GridBagLayout.java:910)
	at java.awt.GridBagLayout.minimumLayoutSize(GridBagLayout.java:744)
	at java.awt.Container.minimumSize(Container.java:1840)
	at java.awt.Container.getMinimumSize(Container.java:1825)
	at javax.swing.JComponent.getMinimumSize(JComponent.java:1735)
	at java.awt.BorderLayout.minimumLayoutSize(BorderLayout.java:663)
	at java.awt.Container.minimumSize(Container.java:1840)
	at java.awt.Container.getMinimumSize(Container.java:1825)
	at javax.swing.JComponent.getMinimumSize(JComponent.java:1735)
	at java.awt.BorderLayout.minimumLayoutSize(BorderLayout.java:663)
	at java.awt.Container.minimumSize(Container.java:1840)
	at java.awt.Container.getMinimumSize(Container.java:1825)
	at javax.swing.JComponent.getMinimumSize(JComponent.java:1735)
	at javax.swing.BoxLayout.checkRequests(BoxLayout.java:482)
	at javax.swing.BoxLayout.preferredLayoutSize(BoxLayout.java:300)
	at javax.swing.plaf.basic.BasicOptionPaneUI.getPreferredSize(BasicOptionPaneUI.java:270)
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1651)
	at javax.swing.JRootPane$RootLayout.preferredLayoutSize(JRootPane.java:917)
	at java.awt.Container.preferredSize(Container.java:1788)
	at java.awt.Container.getPreferredSize(Container.java:1773)
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1653)
	at java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:719)
	at java.awt.Container.preferredSize(Container.java:1788)
	at java.awt.Container.getPreferredSize(Container.java:1773)
	at java.awt.Window.pack(Window.java:809)
	at org.openstreetmap.josm.gui.HelpAwareOptionPane.showOptionDialog(HelpAwareOptionPane.java:300)
	at org.openstreetmap.josm.gui.dialogs.relation.GenericRelationEditor$CancelAction.confirmClosingByCancel(GenericRelationEditor.java:1422)
	at org.openstreetmap.josm.gui.dialogs.relation.GenericRelationEditor$CancelAction.actionPerformed(GenericRelationEditor.java:1371)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
...<snip>...

Change History (5)

comment:1 by Don-vip, 11 years ago

Dit it only happen once ? Looks like a deep Java bug.

comment:2 by naoliv, 11 years ago

I saw it twice, but I cannot reproduce it here using the same data when reported this.

comment:3 by naoliv, 11 years ago

Yep, seems to be from Java: http://bugs.sun.com/view_bug.do?bug_id=7184900 (and fixed in Java 8, according to http://bugs.sun.com/view_bug.do?bug_id=7183251)
Sorry for the report.

(resolve as "othersoftware" is when the problem is on other software, like this case?)

comment:4 by Don-vip, 11 years ago

Resolution: othersoftware
Status: newclosed

I found this bug too but the fix has been applied into 7u6 release as well, so that's not exactly the same. I have filled a new one. If it gets accepted someday (can take many years...) it will be available here:

https://bugs.openjdk.java.net/browse/JI-9009449

Closing it at othersoftware so because we can do nothing more. Thanks for reporting !

comment:5 by Don-vip, 10 years ago

Keywords: javabug added

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.