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
Benchmark just stops (Antivirus problem) #364
Comments
Hey @KonkLaw, thanks for the report. You are absolutely right, we definitely should print a warning. Any clues how to detect we if have problems with antivirus (btw, may I ask which antivirus do you use)? |
Bitdefender Antivirus Free Edition (updating works) I've prepared small test with bug in my draft repository: https://github.com/KonkLaw/Tests |
Related issue: #390 |
Have the same problem. Running in a corp environment means that there is no way to disable AV :( Getting the error by just running the Getting Started sample. |
Description for people interested in grabbing this issue:
|
I had the same issue as in issue #390 , and even though I'm not running in a corporate environment, I was unable to disable my anti-virus and adding the folder to the exclusions list didn't help. Eventually, I was able to run the benchmark by opening a cmd instance as administrator changing directory to the executable's one and running it from there. I know this isn't an ideal solution, but maybe it'll help someone else. |
There is a possibility to list all antivirus software using WMI, however probably it won't work on .NET Core. Need to check it. What do you think about adding warning about active antivirus to the EnvironmentAnalyzer? |
A warning doesn't solve the problem, but it would be much better than incomprehensible crash. So, PR is welcome. |
Totally agree, however i don't have enough knowledge about the project so i would like to do it in small steps. Thanks for comment, I will work on the PR |
Fixed with #512 |
* dotnet#364 - Detecting antivirus software * dotnet#364 - Printing information about AV only after benchmark failure * dotnet#364 - spaces instead of tab * dotnet#364 - FAQ hint about EnvironmentAnalyser and antivirus detection
First of all, thanks for great job.
I've got next problem: sometimes after running benchmark I've been geting this issue:
Console benchmark is just stopping with standard system message: "Press any key to continue ...". No exceptions or warnings in console or log file. As I see it doesn't depends on particular test. I really spend a bunch of time trying to find an error on my side. And it seems like I've found out what was wrong.
The thing is, unfortunately, environment where we are running tests is not always depends on us. And I've got one with antivirus which is working on back-back-baground. It simply blocks running test on the halfway. And that's not real problem. Benchmarking with running antivirus is problem of developer. The real problem is that I just see no any errors or warnings at all. Just "Press any key to continue ...". And googling doen't help at all.
I realize that handling antivirus cases may be quite tough call. May be, at least some warning in documentation could help me.
The text was updated successfully, but these errors were encountered: