The game plays well until it appears that a certain level of objects (trains) have been created and the games tends to lock-up at that point. It may have something to do with the qty of trains, the amount of money it needs to calculate, what is waiting to be picked up etc.that causes the exception error. I've played FreeRails probably (6) times and each time it crashes with this error.
Unexpected Exception
Consider submitting a bug report using the sourceforge.net bug tracker at the following url:
http://sourceforge.net/tracker/?group_id=9495&atid=109495
Please:
1. Use the following as the title of the bug report:
Unexpected Exception: TrainMotion.java line 142
2. Include steps to reproduce the bug (attach a save game if appropriate).
3. Copy and paste the details below into the bug report:
Windows XP 5.1
Java HotSpot(TM) Client VM 1.6.0_02
Freerails build 20050923-1942 compiled by Luke
java.lang.IllegalArgumentException: t=-172.0, but duration=0.0
at jfreerails.world.train.TrainMotion.checkT(TrainMotion.java:142)
at jfreerails.world.train.TrainMotion.getDistance(TrainMotion.java:179)
at jfreerails.world.train.TrainMotion.calcOffSet(TrainMotion.java:136)
at jfreerails.world.train.TrainMotion.getState(TrainMotion.java:204)
at jfreerails.controller.TrainAccessor.findPosition(TrainAccessor.java:61)
at jfreerails.client.view.OverHeadTrainView.paint(OverHeadTrainView.java:57)
at jfreerails.client.view.DetailMapRenderer.paintRect(DetailMapRenderer.java:99)
at jfreerails.client.view.MapViewJComponent.paintComponent(MapViewJComponent.java:38)
at jfreerails.client.view.MapViewJComponentConcrete.paintComponent(MapViewJComponentConcrete.java:198)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JViewport.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JLayeredPane.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at jfreerails.client.top.SynchronizedEventQueue.dispatchEvent(SynchronizedEventQueue.java:43)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
text file with Exception error