-
Notifications
You must be signed in to change notification settings - Fork 58
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
Index was outside the bounds of the array. at NCalc.Expression.Evaluate() #39
Comments
Same issue here. We ran on .net core 2.2 and saw no issues. Since we upgraded to .net core 3.0 we are experiencing the issues as described. I also saw 'Object reference not set to an instance object' on Expression.CleanCache(), which confirms the issue could be related to the cache. I will test with 'EvalualationOptions.NoCache' as suggested by @enshivam. I can also confirm the issue is random so hard to ack the relationship with the cache. |
I've tried to reproduce the issue with no luck |
@Bykiev I got some occasional test run error on that test recently when running it first time, then it disappeared |
From the docs:
|
In any random and rare scenario, Getting Index was outside the bounds of the array. at NCalc.Expression.Evaluate() while only evaluating very simple expression, or boolean conversions. Using .net core 3.0.
Issue doesn't seem to appear while using EvaluationOptions.NoCache.
Any pointers on if I may be doing something wrong? Any way to identify the detailed trace atleast?
The text was updated successfully, but these errors were encountered: