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
possible to improve "OpenCppCoverage cannot find the name of the module." situation ? #58
Comments
Hello, I had 3 times this issue. I know that restarting solve the problem but I also had the case that this problem disappeared after an amount of time (~1 hour). I had this issue on a dll located in a folder What is the frequency of the issue? Can you check if it disappear after an amount of time? OpenCppCoverage |
unfortunately , it never disappears on our coverage environment, no matter how long time passed. So I wonder if OpenCppCoverage can ignore none critical parts of this problem and continue running , as I know , the antivirus cause this problem . another test PC without antivirus can run opencppcoverage successfully . but I have to have antivirus installed on our coverage environmnet. |
We also have this on our Jenkins+Docker agent setup. The error is consistent and we have no clue on how to fix it. Trying different source paths doesn't help. |
I come to the same issue, when trying to use OpenCppCoverage within a docker container. |
Hello, First thanks to all of you for reporting this issue and providing some useful information. OpenCppCoverage |
Hello, I tried many Win32 functions to get the module path but I did not find a working solution :( For Docker, I have created a bug issue here. I hope it will lead to a solution for Docker! @comicfans: I cannot ignore this error as the whole module will be ignored and the coverage will be wrong. When I had this issue, I was able to run OpenCppCoverage by copying the folder of my program to another location. You can also try to generate your binaries to another location. OpenCppCoverage |
Thanks for the information, but I'm afraid I can't test that any more since
our build server will migrate to complete different environment
OpenCppCoverage <notifications@github.com> 于 2018年8月18日周六 下午11:56写道:
… Hello,
I tried many Win32 functions to get the module path but I did not find a
working solution :(
For Docker, I have created a bug issue here
<docker/for-win#2455>. I hope it will lead to a
solution for Docker!
@comicfans <https://github.com/comicfans>: I cannot ignore this error as
the whole module will be ignored and the coverage will be wrong. When I had
this issue, I was able to run OpenCppCoverage by copying the folder of my
program to another location. You can also try to generate your binaries to
another location.
Please let me know if it helps!
OpenCppCoverage
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#58 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEViJC8XBhguvi-rKwgLLe3XRX1N8byNks5uSDkigaJpZM4U9yiY>
.
|
Hello @OpenCppCoverage, I have tried the copy approach and unfortunately it does not work, neither on my local machine, nor on our servers. |
Hello waltronix, This workaround is only for Windows and not for Docker. OpenCppCoverage |
I hit this issue today and noticed it's been 2 years with no activity. Assuming it's not easy to fix the issues, I am curious what workarounds have others found since? :) Did you switch to another code coverage tool, or, something in the docker image helped you avoid this issue? Would really appreciate any help here :) |
Running into this today on our CODEBUILD Windows 2019 container. Bummer. |
I have posted a WIP pull request with code working in docker using the Microsoft dbgeng.dll module to implement the debugger part. |
@OpenCppCoverage Kindly prioritise this PR from @centlakestefan we are badly waiting for opencppcoverage support in windows container. |
@centlakestefan I've tried building opencppcoverage from your branch and with that am able to run in docker container but for some test cases it throws access violation error even with --optimized_build. Same test works well in EC2 instance. *** Your application has thrown an unhandled exception. Code: 3221225477: EXCEPTION_ACCESS_VIOLATION |
@rpandurangan I have now fixed the problem with ACCESS_VIOLATION during startup. Sometimes the dbgeng does not give the initial breakpoint the code is expecting. I now set this option to make sure it's set. I have also another branch in my repo with minidump support if the problem is in the test-subject. |
@centlakestefan Great it works this time. |
Before creating an issue, please make sure the answer is not in the FAQ.
FAQ explain that this error may be lead by antivirus and can be resolved by restart computer, but for some reason, our coverage environment is restricted , It's known that our antivirus always inject itself to process and makes some module related API not reliable, I wonder if when such situation happened on some modules, can we just ignore the unknown ones and continue to process left ones?
The text was updated successfully, but these errors were encountered: