Modify

Opened 2 years ago

Closed 2 years ago

#6030 closed defect (irreproducible)

ClassCastException

Reported by: ch70 Owned by: team
Priority: normal Component: Plugin mapdust
Version: latest Keywords: crash ClassCast Exception
Cc:

Description

While I was moving around with the MapDust and OpenStreetBugs window open, I got the following error report suddenly:

java.lang.ClassCastException
	at javax.swing.LayoutComparator.compare(LayoutComparator.java:61)
	at java.util.Arrays.mergeSort(Arrays.java:1286)
	at java.util.Arrays.mergeSort(Arrays.java:1282)
	at java.util.Arrays.sort(Arrays.java:1210)
	at java.util.Collections.sort(Collections.java:159)
	at javax.swing.SortingFocusTraversalPolicy.enumerateAndSortCycle(SortingFocusTraversalPolicy.java:119)
	at javax.swing.SortingFocusTraversalPolicy.getFirstComponent(SortingFocusTraversalPolicy.java:434)
	at javax.swing.LayoutFocusTraversalPolicy.getFirstComponent(LayoutFocusTraversalPolicy.java:148)
	at javax.swing.SortingFocusTraversalPolicy.getDefaultComponent(SortingFocusTraversalPolicy.java:511)
	at java.awt.FocusTraversalPolicy.getInitialComponent(FocusTraversalPolicy.java:152)
	at java.awt.Window.getMostRecentFocusOwner(Window.java:2131)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:629)
	at java.awt.Component.dispatchEventImpl(Component.java:4502)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Window.dispatchEventImpl(Window.java:2478)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.SequencedEvent.dispatch(SequencedEvent.java:101)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Although JOSM seemed to be still usable (e.g. I could close the MapDust and the OpenStreetBug windows), I decided to restart JOSM.

System details:

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2011-02-23 02:31:56
Last Changed Author: jttt
Revision: 3926
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2011-02-22 20:33:04 +0100 (Tue, 22 Feb 2011)
Last Changed Rev: 3926

Identification: JOSM/1.5 (3926 de)
Memory Usage: 161 MB / 910 MB (17 MB allocated, but free)
Java version: 1.6.0_22, Sun Microsystems Inc., Java HotSpot(TM) Server VM
Operating system: Linux
Dataset consistency test: No problems found

Plugin: DirectUpload (25199)
Plugin: FixAddresses (25374)
Plugin: RoadSigns (25192)
Plugin: alignways (25199)
Plugin: buildings_tools (25192)
Plugin: colorscheme (25192)
Plugin: contourmerge (25381)
Plugin: download_along (25190)
Plugin: editgpx (25407)
Plugin: graphview (25199)
Plugin: mapdust (25312)
Plugin: measurement (25199)
Plugin: openstreetbugs (25199)
Plugin: restart (25199)
Plugin: reverter (25190)
Plugin: tageditor (25191)
Plugin: tagging-preset-tester (25191)
Plugin: turnrestrictions (25199)
Plugin: utilsplugin2 (25190)
Plugin: waydownloader (25190)

Attachments (0)

Change History (8)

comment:1 Changed 2 years ago by stoecker

  • Resolution set to irreproducible
  • Status changed from new to closed

As no JOSM component is involved and your description says you can't reproduce. Closing.

comment:2 follow-up: Changed 2 years ago by ch70

  • Component changed from Core to Plugin mapdust
  • Resolution irreproducible deleted
  • Status changed from closed to reopened

I just got it again. Seems to be related to the MapDust plugin.

Please leave the ticket open, I'll try to gather more info, especially how the problem can be reproduced.

comment:3 in reply to: ↑ 2 Changed 2 years ago by jBeata

Replying to ch70:

I just got it again. Seems to be related to the MapDust plugin.

Please leave the ticket open, I'll try to gather more info, especially how the problem can be reproduced.

This issue can not be reproduced. The mapdust plugin it works without any problem. Please provide further info regarding how to reproduce this issue.

comment:4 Changed 2 years ago by jBeata

I did researched this issue and it seams to be an issue related to swing JList update. This kind of errors might appears when at the update of a JList content, the components of the content are sorted in focus traversal order. (http://coding.derkeiler.com/Archive/Java/comp.lang.java.programmer/2005-08/msg02694.html.)
In the MapDust plugin I did not use any sorting for the JList content. So this issue it is not related to the MapDust plugin.
Please check also the other plugins which you did use, when this problem occurred.

comment:5 follow-up: Changed 2 years ago by ch70

I just had the next crash. I had the MapDust window open and bing images in the background when I opened the OpenStreetBug window in addition. Immediately an empty notification window popped up, clicking on the (I think) OK button let it open a second time (again empty). After closing it and with the first move of the map I got a null pointer exception:

java.lang.NullPointerException
	at org.openstreetmap.josm.gui.MapView.getVisibleLayersInZOrder(MapView.java:421)
	at org.openstreetmap.josm.gui.MapView.paint(MapView.java:464)
	at javax.swing.JComponent.paintChildren(JComponent.java:862)
	at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1030)
	at javax.swing.JComponent.paint(JComponent.java:1038)
	at javax.swing.JComponent.paintToOffscreen(JComponent.java:5124)
	at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:278)
	at javax.swing.RepaintManager.paint(RepaintManager.java:1224)
	at javax.swing.JComponent._paintImmediately(JComponent.java:5072)
	at javax.swing.JComponent.paintImmediately(JComponent.java:4882)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:785)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:713)
	at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:693)
	at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:125)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

comment:6 in reply to: ↑ 5 ; follow-up: Changed 2 years ago by jBeata

Replying to ch70:

I just had the next crash. I had the MapDust window open and bing images in the background when I opened the OpenStreetBug window in addition. Immediately an empty notification window popped up, clicking on the (I think) OK button let it open a second time (again empty). After closing it and with the first move of the map I got a null pointer exception:

java.lang.NullPointerException
	at org.openstreetmap.josm.gui.MapView.getVisibleLayersInZOrder(MapView.java:421)
	at org.openstreetmap.josm.gui.MapView.paint(MapView.java:464)
	at javax.swing.JComponent.paintChildren(JComponent.java:862)
	at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1030)
	at javax.swing.JComponent.paint(JComponent.java:1038)
	at javax.swing.JComponent.paintToOffscreen(JComponent.java:5124)
	at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:278)
	at javax.swing.RepaintManager.paint(RepaintManager.java:1224)
	at javax.swing.JComponent._paintImmediately(JComponent.java:5072)
	at javax.swing.JComponent.paintImmediately(JComponent.java:4882)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:785)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:713)
	at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:693)
	at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:125)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Unfortunately I can not reproduce this error. I did tested MapDust plugin along with the other plugins which you did mention before that it were install when the problem occurred. I did not got any MapDust plugin related error or problem.
Also I did tested the MapDust plugin with bing images in the background and It worked without any problem.
Did you had any MapDust bug in the MapDust bugs window / map ? Which area did you tested? What additionally plugins were installed when this problem occurs? Which JOSM version did you used , and OS ?
From your exception it does not say that this error is causes by the MapDust plugin. In the error stack trace does not appear any package of the MapDust plugin. So basically this error it is not from the MapDust plugin. Please make sure if this error
it is really produced by the MapDust plugin or not.
If the error appears when you open the OpenStreetBugs window than this error it is related to the OpenStreetBugs plugin. Can you show this problem also for them? Or maybe this is some problem related to the repaint of the JOSM layers. As far as I know, when you open an Openstreetbugs window, it will be added also a new OpenStreetBugs layer.

comment:7 Changed 2 years ago by jBeata

Is your second error somehow related to issue: https://josm.openstreetmap.de/ticket/5639 ?

comment:8 in reply to: ↑ 6 Changed 2 years ago by bastiK

  • Resolution set to irreproducible
  • Status changed from reopened to closed

Replying to jBeata:

If the error appears when you open the OpenStreetBugs window than this error it is related to the OpenStreetBugs plugin.

I agree, this error might be totally unrelated to the bug reported at the top of the page.

ch70: If you have more details on the 2nd bug, please add them to #5639. Everything can be important, e.g. the size of the empty window might give some clue (so you could add a screenshot). For the first bug, we cannot do anything about it, please reopen when you have more information that we can work with. E.g. it is still not clear, what plugin caused it.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.