-
-
Notifications
You must be signed in to change notification settings - Fork 983
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
how to debug reflection error #1933
Comments
Is there any chance that your benchmark is printing anything to the console? Which BDN, .NET and OS versions are you using? |
Hi @adamsitnik In the case of console logs, it prints starting benchmark then build in release mode and tried to run my project, but after that, it makes this reflection error. My project is a console application via dotnet 5, my OS is Win10 and IDE is VS. Also, the project is about connecting to an Aeron server via a Java media driver and communicating with that. |
@MarshalOfficial Sorry for not making myself clear, is your code (what you are benchmarking, not BenchmarkDotNet itself) printing anything to the console? Example: [GlobalSetup]
public void Print() => Console.WriteLine("Setup!"); Which BenchmarkDotNet version are you using? Are you able to consistently repro this issue? |
@adamsitnik Thank you for following up Yes, my project itself logs on the console a lot. BenchmarkDotNet package version was: 0.13.1 Latest Stable Unfortunately, I was not able to get a benchmark successfully at all, and it gives the same error every time. |
#2092 should have fixed this error. You can try our preview version from BDN CI feed: https://benchmarkdotnet.org/articles/guides/nuget.html#nightly |
Hi there, I got this error when running my benchmark console application:
How can I detect the problem?
My code is:
The text was updated successfully, but these errors were encountered: