opencover icon indicating copy to clipboard operation
opencover copied to clipboard

Profiler Failing to Load

Open jjtx333 opened this issue 13 years ago • 9 comments

I am having an issue on a Windows 7 machine where it is not returning results. My project and the sample project fails with: No results - no assemblies that matched the supplied filter were instrumented this could be due to missing PDBs for the assemblies that match the filter please review the output file and refer to the Usage guide (Usage.rtf)

In the event viewer: .NET Runtime version 4.0.30319.18047 - Loading profiler failed. The profiler COM object was instantiated, but the profiler failed during its initialization callback. Profiler CLSID: '{1542C21D-80C3-45E6-A56C-A9C1E4BEB7B8}'. HRESULT: 0x80004005. Process ID (decimal): 8280. Message ID: [0x2505].

This is a Windows 7 64 bit machine, with Visual Studio 2008, 2010 and 2012 on it. I have tried manually registering the profiler as well as the -register:user switch.

jjtx333 avatar Jul 18 '13 00:07 jjtx333

Are you using a console with/without Admin permissions?

If you have access to debugview then that may give a reason as to why it is failing to load.

The reason is probably going to be something specific to you environment unfortunately so this may take time to resolve but lets see what we can do. You may need to reinstall the .NET Framework as that has worked in the past for me on the one machine I have seen it on.

sawilde avatar Jul 18 '13 12:07 sawilde

Console w/admin, UAC disabled, I am an admin on machine. Error is: ::Initialize => Failed to initialise the profiler communications -> GetLastError() => 2

Attached a screenshot from DebugView too, tried 32 and 64 bit. opencover

jjtx333 avatar Jul 18 '13 15:07 jjtx333

I may need to make a debug version of the profiler DLL that will gather more diagnostics around that area would you be willing to run it should I send it to you?

sawilde avatar Jul 19 '13 00:07 sawilde

Absolutely

jjtx333 avatar Jul 19 '13 03:07 jjtx333

I think the issue maybe mutex related (based on the log and viewing possible debug output) but I am unsure why you are having that issue.

I've put my debug build here https://dl.dropboxusercontent.com/u/16543630/OpenCover/issue165/Debug.zip

You can use opencover from this folderor you can use the dogfood tests and view the results in debugview.

sawilde avatar Aug 04 '13 06:08 sawilde

Not sure if you interested in investigating this further or if you have resolved the issue yourself?

sawilde avatar Aug 20 '13 23:08 sawilde

Sorry it slipped my mind. I have not resolved it but I ran the debug version this morning using the same sample64.cmd and it succeeded. Is the above the identical code for 4.5.1604?

jjtx333 avatar Aug 21 '13 15:08 jjtx333

It is around the area of "issue" other than some extra diagnostics to work out which synchronisation object failed. Curious...

sawilde avatar Aug 21 '13 22:08 sawilde

I am going to assume this issue is now closed unless I hear otherwise.

sawilde avatar Sep 01 '13 10:09 sawilde