question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ArgumentNullException raised when calling StateInteger.SearchAllSolutions

See original GitHub issue

I’m trying to enumerate all solutions for a custom point structure P(X, Y) where the variables X and Y are defined as having the domain [0, 10]. I’m expecting 11*11 = 121 solutions in the unconstrained case. The solver returns all solutions correctly, but fails at the very end with a NRE.

image

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lifebeyondfifecommented, Jul 23, 2022

This bug has been fixed by https://github.com/lifebeyondfife/Decider/pull/60. Thanks once more, @G3Kappa. Hope Decider is useful for your hobby project.

0reactions
lifebeyondfifecommented, Jul 18, 2022

Found the issue. Searching all solutions where every combination is a valid possibility eventually leads to searching for a solution which has an empty variable. This causes the search routine to fail when trying to instantiate the empty variable. I’ve put a check for empty variables in the search function before starting.

I’ll create a PR sometime this week and publish a new nuget package.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found