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

Thread 'main' panicked - intermittent error #140

Open
leobudima opened this issue Nov 29, 2023 · 1 comment
Open

Thread 'main' panicked - intermittent error #140

leobudima opened this issue Nov 29, 2023 · 1 comment

Comments

@leobudima
Copy link

Hi - thanks one more time for an amazing solution!

I thought it might be useful to report an issue that happens intermittently, and I am unfortunately not able to reproduce it consistently. It happens with different datasets / parameters, and if I run the exact same optimization after the panic, it works fine.

Hopefully, at least the position will help ascertain the possible cause.

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', vrp-core/src/solver/heuristic.rs:188:103

If I can do anything else to help pinpoint the issue, happy to do so!

Kind regards!

@reinterpretcat
Copy link
Owner

reinterpretcat commented Dec 2, 2023

Hi, thanks for feedback!

Looks like an interesting issue, never seen it so far. Seems some solutions are added to the population in an invalid state: either init_weights is not called (https://github.com/reinterpretcat/vrp/blob/master/vrp-core/src/solver/heuristic.rs#L167) or solution state is cleaned without recalculating weights, but why it is not happening consistently?.. Need to think a bit.

Can you try to reproduce it in debug build and give me a full call stack when it crashes? Also do you use some specific features when the issue is reproduced?

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

No branches or pull requests

2 participants