-
Notifications
You must be signed in to change notification settings - Fork 24
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
Config setting causes RuntimeError: bad variant access #991
Comments
I found that this only happens to a subset of configuration parameters. |
I've investigated and discovered that ROADRUNNER_DIABLE_WARNINGS is supposed to be a Boolean value, and will throw an error if you set it to something else and then try to get it as a Boolean. So you can fix your most immediate problem by changing:
to:
However, we clearly need to do some type checking if this sort of error is the result, so I'm leaving this issue open until we can do that. |
Further investigation shows that the option used to be a bitfield/int, but later was changed to a bool, perhaps out of ignorance. I have to say that the option is very confusing, and that bitfield options seem hard to follow from a user's perspective. Do you know what the option was originally supposed to do, and how it worked? |
Thanks for looking into this issue. |
Hi all,
Today I have been fiddling with the latest libroadrunner release and found that whenever I try to configure parameters using something like:
it raises
RuntimeError: bad variant access
.Any call that uses
roadrunner.Config.setValue()
cause this problem.This error is specifically evoked by
steadyState()
for some reason.Any thoughts?
Here's a minimal example:
and here's my version info:
The text was updated successfully, but these errors were encountered: