Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ev: fix ConcurrentModificationException in VehicleChargingHandler.notifyMobsimBeforeSimStep() #3022

Merged
merged 1 commit into from
Dec 29, 2023

Conversation

michalmac
Copy link
Member

Reported by Tobias Tietz:

java.util.ConcurrentModificationException: null
	at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1605) ~[?:?]
	at java.base/java.util.HashMap$KeyIterator.next(HashMap.java:1628) ~[?:?]
	at org.matsim.contrib.ev.charging.VehicleChargingHandler.notifyMobsimBeforeSimStep(VehicleChargingHandler.java:169) ~[classes/:?]
	at org.matsim.core.mobsim.qsim.MobsimListenerManager.fireQueueSimulationBeforeSimStepEvent(MobsimListenerManager.java:107) ~[classes/:?]
	at org.matsim.core.mobsim.qsim.QSim.doSimStep(QSim.java:390) ~[classes/:?]
	at org.matsim.core.mobsim.qsim.QSim.run(QSim.java:259) ~[classes/:?]
	at org.matsim.core.controler.NewControler.runMobSim(NewControler.java:125) ~[classes/:?]
	at org.matsim.core.controler.AbstractController$8.run(AbstractController.java:214) ~[classes/:?]
	at org.matsim.core.controler.AbstractController.iterationStep(AbstractController.java:246) ~[classes/:?]
	at org.matsim.core.controler.AbstractController.mobsim(AbstractController.java:210) ~[classes/:?]
	at org.matsim.core.controler.AbstractController.iteration(AbstractController.java:157) ~[classes/:?]
	at org.matsim.core.controler.AbstractController.doIterations(AbstractController.java:124) ~[classes/:?]
	at org.matsim.core.controler.AbstractController$1.run(AbstractController.java:84) ~[classes/:?]
	at org.matsim.core.controler.MatsimRuntimeModifications.run(MatsimRuntimeModifications.java:70) [classes/:?]
	at org.matsim.core.controler.MatsimRuntimeModifications.run(MatsimRuntimeModifications.java:53) [classes/:?]
	at org.matsim.core.controler.AbstractController.run(AbstractController.java:92) [classes/:?]
	at org.matsim.core.controler.NewControler.run(NewControler.java:83) [classes/:?]
	at org.matsim.core.controler.Controler.run(Controler.java:259) [classes/:?]
	at org.matsim.contrib.ev.eTruckTraffic.RunETruckTraffic.run(RunETruckTraffic.java:69) [classes/:?]
	at org.matsim.contrib.ev.eTruckTraffic.RunETruckTraffic.main(RunETruckTraffic.java:50) [classes/:?]

@michalmac michalmac enabled auto-merge December 29, 2023 09:50
@michalmac michalmac merged commit 813df9f into master Dec 29, 2023
48 checks passed
@michalmac michalmac deleted the fix-VehicleChargingHandler branch December 29, 2023 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant