... the user friendly GPS tool


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Uncaught Exception when sorting by date
#1
Hi there,

Great work on the RouteConverter program.  I use it sporadically for loading routes from my phone and other gpx sources.  I encountered an error when sorting a fairly large position list (21652 entries) by date:

[Image: 1IKnel.jpg]

I also had run RouteConverter in the console to see what else that would reveal:


Code:
SEVERE: Unhandled throwable in action SortColumnAction: java.lang.IllegalArgumentException: Comparison method violates its general contract!, java.lang.IllegalArgumentException: Comparison method violates its general contract! at java.util.TimSort.mergeHi(TimSort.java:899) at java.util.TimSort.mergeAt(TimSort.java:516) at java.util.TimSort.mergeCollapse(TimSort.java:441) at java.util.TimSort.sort(TimSort.java:245) at java.util.Arrays.sort(Arrays.java:1438) at slash.navigation.base.BaseRoute.sort(BaseRoute.java:564) at slash.navigation.converter.gui.models.PositionsModelImpl.sort(PositionsModelImpl.java:403) at slash.navigation.converter.gui.undo.UndoPositionsModel.sort(UndoPositionsModel.java:254) at slash.navigation.converter.gui.undo.UndoPositionsModel.sort(UndoPositionsModel.java:247) at slash.navigation.converter.gui.models.OverlayPositionsModel.sort(OverlayPositionsModel.java:208) at slash.navigation.converter.gui.helpers.AbstractTableHeaderMenu$SortColumnAction.run(AbstractTableHeaderMenu.java:182) at slash.navigation.gui.actions.FrameAction.actionPerformed(FrameAction.java:53) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.AbstractButton.doClick(AbstractButton.java:376) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:842) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:886) at java.awt.Component.processMouseEvent(Component.java:6533) at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) at java.awt.Component.processEvent(Component.java:6298) at java.awt.Container.processEvent(Container.java:2238) at java.awt.Component.dispatchEventImpl(Component.java:4889) at java.awt.Container.dispatchEventImpl(Container.java:2296) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4897) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4534) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4475) at java.awt.Container.dispatchEventImpl(Container.java:2282) at java.awt.Window.dispatchEventImpl(Window.java:2746) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90) at java.awt.EventQueue$4.run(EventQueue.java:733) at java.awt.EventQueue$4.run(EventQueue.java:731) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

I'm running RouteConverter on Ubuntu 16.04 using Oracle java 8.  I'm running online edition v2.24.1.  Let me know if you want any further info.

Thanks!
Reply
#2
(26.09.2018, 13:56)dynamodan Wrote: Great work on the RouteConverter program.  I use it sporadically for loading routes from my phone and other gpx sources.  I encountered an error when sorting a fairly large position list (21652 entries) by date:

Thank you for reporting this issue. Please send me the file with the position list so I can tweak the comparison and fix the bug.
--
Christian
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)