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

nil value detected in DrivingSkill #80

Open
agrignard opened this issue Feb 6, 2020 · 10 comments
Open

nil value detected in DrivingSkill #80

agrignard opened this issue Feb 6, 2020 · 10 comments
Labels
bug Something isn't working

Comments

@agrignard
Copy link
Owner

2 occurrences in 2 agents at cycle 73327: Java error: nil value detected
in
NullPointerException: null
simtools.gaml.extensions.traffic.DrivingSkill.getOnLinkedRoad(DrivingSkill.java:392)
simtools.gaml.extensions.traffic.DrivingSkill.avoidCollision(DrivingSkill.java:1335)
simtools.gaml.extensions.traffic.DrivingSkill.avoidCollision(DrivingSkill.java:1571)
simtools.gaml.extensions.traffic.DrivingSkill.moveToNextLocAlongPathOSM(DrivingSkill.java:1658)
simtools.gaml.extensions.traffic.DrivingSkill.primAdvancedFollow(DrivingSkill.java:491)
simtools.gaml.extensions.traffic.DrivingSkill.primDrive(DrivingSkill.java:982)
gaml.additions.GamlAdditions.lambda$84(GamlAdditions.java:118)
in agents car3164, Simulation 0

@agrignard agrignard added the bug Something isn't working label Feb 6, 2020
@agrignard
Copy link
Owner Author

pas evident à reproduire (j'ai fait tourner la sim toute la nuit) mais c'est quand meme arrivé donc ca peut réarriver

@ptaillandier
Copy link
Collaborator

ptaillandier commented Feb 7, 2020 via email

@agrignard
Copy link
Owner Author

non ca crashé totu seul

@ptaillandier
Copy link
Collaborator

J'arrive pas à reproduire. J'ai lancé la simulation sur 2 ordis (sur mon portable, j'en suis à plus 210 000 cycles) et pas de bug.... cela sent le bug qui arrive dans des conditions très particulière. Au cas où, si tu retombes dessus, essaye de conserver le seed.

@ptaillandier
Copy link
Collaborator

ptaillandier commented Feb 10, 2020 via email

@agrignard
Copy link
Owner Author

Impossible à reproduite non plus. On va dire que c'était une configuration ultra ultra précise

@AlexisDrogoul AlexisDrogoul changed the title after 0 00cycles nil value detected in DrivingSkill Feb 10, 2020
@AlexisDrogoul
Copy link
Collaborator

Hum... Vaudrait mieux le laisser ouvert à mon avis.

@AlexisDrogoul AlexisDrogoul reopened this Feb 10, 2020
@agrignard
Copy link
Owner Author

Ok ce n'est en effet pas arrivé par hasard.. à voir si on arrive à le recréeer d'ici le 13...

@tnguyenh
Copy link
Collaborator

En tout cas il y a quelques issues avec les skills (moving, driving) qui apparaissent de temps en temps. Je ne sais pas si c'est lié, mais j'ai parfois une erreur "nil value detected" avec le code:

		if (current_edge != nil) {
			float val <- road(current_edge).lanes*3;
                }

au niveau de l'assignation, current_edge est évalué à nil alors que le test avant aurait dû éviter ça. Par contre il n'y a plus de problème avec:

	road ce <- road(copy(current_edge));
		if (ce = !nil  {
			float val <- ce.lanes*3;
        }

@ptaillandier
Copy link
Collaborator

ptaillandier commented Feb 11, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants