LBNL-UCB-STI / beam

The Framework for Modeling Behavior, Energy, Autonomy, and Mobility in Transportation Systems
https://transportation.lbl.gov/beam
Other
145 stars 57 forks source link

Bug: NullPointerException in org.matsim.core.population.routes.RouteUtils.calcDistance #3824

Open nikolayilyin opened 7 months ago

nikolayilyin commented 7 months ago

the following exception might happen once in a simulation, but is seems it does not prevent simulation from completion.

03:21:03.146 [Events-0] ERROR o.m.core.events.EventsManagerImpl - Could not handle event ' java.lang.NullPointerException: null at org.matsim.core.population.routes.RouteUtils.calcDistance(RouteUtils.java:167) at org.matsim.core.scoring.EventsToLegs.handleEvent(EventsToLegs.java:338) at org.matsim.core.scoring.EventsToLegsAndActivities.handleEvent(EventsToLegsAndActivities.java:68) at org.matsim.core.events.EventsManagerImpl.callHandlerFast(EventsManagerImpl.java:299) at org.matsim.core.events.EventsManagerImpl.handle(EventsManagerImpl.java:242) at org.matsim.core.events.EventsManagerImpl.processEvent(EventsManagerImpl.java:143) at org.matsim.core.events.ProcessEventThread.run(ProcessEventThread.java:91) at java.base/java.lang.Thread.run(Thread.java:829)

reproducible at zn/PILATES_DEBUG (a59c2fa7f1ebdad4d1cd52e23cf2039440ff20d7) with test/input/beamville/beam.conf. always at iteration 2, after different hour