Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

GetClassIDInfo2 failed

Moderators: Vladimir Kondratyev, Anton Katilin

GetClassIDInfo2 failed

Postby step » Tue Feb 23, 2010 3:37 pm

Hi,

I'm having trouble with profiling various applications, or even starting them while YourKit is running. They seem to hang indefinitely on startup, and their yourkit log files all display a failed assertion in ProfilerCore. Here's an example from mmc.exe (occurred as I was trying to check if maybe a firewall rule wsa the culprint - but the firewall logs show that everything seems to be in order). The 0.log main logfile is essentially empty except for startup messages.

Code: Select all
[YourKit Profiler 4.5.6 for .NET]
   OS: Windows 7 6.1
   CLR: v2.0.50727
   'C:\Windows\system32\mmc.exe' started 23.2.2010 at 16:19
[     0.001] getStartupStringOption(YNP_IGNORE_LIST2):
[     0.001]  env is NULL
[     0.001]  returning NULL (1)
[     0.013] getStartupStringOption(YNP_FILTERS_PATH):
[     0.014]  env is NULL
[     0.014]  returning C:\Users\step.VRVIS\.ynp\config\.filters
[     0.014] getStartupStringOption(YNP_WALLTIMESPEC_PATH):
[     0.015]  env is NULL
[     0.015]  returning C:\Users\step.VRVIS\.ynp\config\.walltime
[     0.017] agent is listening on port 10002

[     0.134] findOrCreateClassInfoFromID: GetClassIDInfo2 failed
[YourKit Profiler 4.5.6 for .NET]
   OS: Windows 7 6.1
   CLR: v2.0.50727
   Assertion failed: value is NULL: ProfilerCore.cpp, line: 937
[     0.135] [ClassLoadFinished] ExceptionAddress = 000007FEFD92AA7D
[     0.135] [ClassLoadFinished] ExceptionCode = 1
[     0.135] [ClassLoadFinished] ExceptionFlags = 0
[     0.135] [ClassLoadFinished] ExceptionRecord = 0000000000000000
[     0.135] [ClassLoadFinished] NumberParameters = 0
[     0.137] C [KERNELBASE.dll+0xaa7d]


Unfortunately I can't really seem to pinpoint which class appears to be the problem. i checked debugview to see if there's some additional information to be gained, but didn't find any.

Best regards,
-stephan
step
 
Posts: 2
Joined: Tue Feb 23, 2010 3:14 pm

Re: GetClassIDInfo2 failed

Postby step » Fri Feb 26, 2010 9:53 am

The curious thing is, I can profile my application just fine on a colleague's machine, just not on mine. I did a fresh reinstall a few weeks ago and there's really no funky stuff on it - just a vanilla development environment.

The only thing that might have changed is that some of the assemblies are no longer registered in the GAC. Perhaps that's part of the problem?
step
 
Posts: 2
Joined: Tue Feb 23, 2010 3:14 pm

Re: GetClassIDInfo2 failed

Postby Anton Katilin » Mon Mar 01, 2010 12:39 pm

Hello Stephan

The only thing that might have changed is that some of the assemblies are no longer registered in the GAC. Perhaps that's part of the problem?


The assertion fails because some required class meta information cannot be obtained, so the assembly registration issues can be the reason.

We'll publish a version which should work that problem around (within 1-2 hours). Could you please try whether it solves the problem.

Best regards,
Anton
Anton Katilin
 
Posts: 5575
Joined: Wed Aug 11, 2004 8:37 am

Re: GetClassIDInfo2 failed

Postby Anton Katilin » Mon Mar 01, 2010 2:07 pm

Please try the following build (identifies itself as 4.5.7):
http://www.yourkit.com/download/tmp/201 ... r-.NET.exe

Please install it instead of 4.5.6.

Does it solve the problem?

If not, could you please provide new logs.

Also, although the problem seems to be configuration-related, it would be great if you could provide us with an example of application which reproduces the problem.
Anton Katilin
 
Posts: 5575
Joined: Wed Aug 11, 2004 8:37 am

Re: GetClassIDInfo2 failed

Postby Vladimir Kondratyev » Wed Mar 03, 2010 1:59 pm

Dear Stephan,

did you try build provided by Anton? We are looking forward to hear from you.
Vladimir Kondratyev
 
Posts: 1444
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany

Re: GetClassIDInfo2 failed

Postby haemoglobin » Thu Jul 26, 2012 11:52 am

Hi,

I believe that I am getting this also. I am trying to profile a Silverilght application, however the profiler does not start.

I receive the following in the log and it goes no futher.

7.0.4 - 0.001: Command line:
C:\Program Files\Internet Explorer\IEXPLORE.EXE
SCODEF:10980
CREDAT:79873
7.0.4 - 0.001: Executable: C:\Program Files\Internet Explorer\IEXPLORE.EXE
7.0.4 - 0.001: Windows XP; version 5.1; 32-bit process
7.0.4 - 0.000: Reading startup options
7.0.4 - 0.001: Environment variable YNP_STARTUP_OPTIONS:
7.0.4 - 0.001: CLR_Agent_OnLoad: options=
7.0.4 - 0.001: shmem: Global\YOURKIT SHARE5 G: OK, isFirst=0
7.0.4 - 0.001: shmem: Local\YOURKIT SHARE5 L: OK, isFirst=0
7.0.4 - 0.004: shmem: Global\YOURKIT SHARE2 G: OK, isFirst=1
7.0.4 - 0.004: shmem: Local\YOURKIT SHARE2 L: OK, isFirst=1
7.0.4 - 0.009: agent is listening on port 10001
7.0.4 - 0.011: setTriggers:

7.0.4 - 0.011: setTriggers: OK
7.0.4 - 0.050: findOrCreateClassInfoFromID: GetClassIDInfo2 failed


Are you able to help?

Thanks,
Hamish
haemoglobin
 
Posts: 2
Joined: Thu Jul 26, 2012 11:46 am

Re: GetClassIDInfo2 failed

Postby Anton Katilin » Thu Jul 26, 2012 1:58 pm

Hello Hamish

however the profiler does not start.

Could you please clarify:
- do you use Profile Silverlight action? Please try to explicitly close all running browser instances before invoking the action;
- do you mean the browser does not start as the result?
- did you try it with other browsers?

Could you please reproduce this problem with the following build which enables additional diagnostics, and provide the new log file:
http://www.yourkit.com/download/tmp/201 ... r-.NET.exe

Best regards,
Anton
Anton Katilin
 
Posts: 5575
Joined: Wed Aug 11, 2004 8:37 am

Re: GetClassIDInfo2 failed

Postby haemoglobin » Wed Aug 01, 2012 1:40 pm

Hi - I have downloaded the exe you provided.

- I have tried explicitly closing all other browser instances and I use the profile silverlight action
- The silverlight application correctly starts but the profiler does not attach
- Cannot try it with other browsers as the application can only use IE due to authentication

Here is the results of the new log file:


7.0.4 - 0.001: Command line:
C:\Program Files\Internet Explorer\IEXPLORE.EXE
SCODEF:6156
CREDAT:79873
7.0.4 - 0.001: Executable: C:\Program Files\Internet Explorer\IEXPLORE.EXE
7.0.4 - 0.001: Windows XP; version 5.1; 32-bit process
7.0.4 - 0.000: Reading startup options
7.0.4 - 0.001: Environment variable YNP_STARTUP_OPTIONS:
7.0.4 - 0.001: CLR_Agent_OnLoad: options=
7.0.4 - 0.001: shmem: Global\YOURKIT SHARE5 G: OK, isFirst=0
7.0.4 - 0.001: shmem: Local\YOURKIT SHARE5 L: OK, isFirst=0
7.0.4 - 0.003: shmem: Global\YOURKIT SHARE2 G: OK, isFirst=1
7.0.4 - 0.004: shmem: Local\YOURKIT SHARE2 L: OK, isFirst=1
7.0.4 - 0.007: agent is listening on port 10001
7.0.4 - 0.009: setTriggers:

7.0.4 - 0.009: setTriggers: OK
7.0.4 - 3.958: Stack dump: findOrCreateClassInfoFromID: GetClassIDInfo2 failed: hr=-2146233498
[C:\Program Files\YourKit Profiler 7.0.4 for .NET\bin\win32\ynpagent.dll+0x00058D44]
[C:\Program Files\YourKit Profiler 7.0.4 for .NET\bin\win32\ynpagent.dll+0x00043ED3]
[C:\Program Files\YourKit Profiler 7.0.4 for .NET\bin\win32\ynpagent.dll+0x0007631B]
[C:\Program Files\YourKit Profiler 7.0.4 for .NET\bin\win32\ynpagent.dll+0x0007610B]
[C:\Program Files\YourKit Profiler 7.0.4 for .NET\bin\win32\ynpagent.dll+0x00076F23]
[C:\Program Files\YourKit Profiler 7.0.4 for .NET\bin\win32\ynpagent.dll+0x00002A2B]
[C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscordbc.dll+0x00004326]
[C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll+0x001F58AF]
[C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll+0x000228CE]
[C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll+0x000229E1]
[C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll+0x00022B01]
[C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll+0x0002272A]
[C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll+0x0002359F]
[C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll+0x000A49A5]
[C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll+0x000A8968]
[C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll+0x000229E1]
[C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll+0x00022B01]
[C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll+0x0002272A]
[C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll+0x0002359F]
[C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll+0x002DEEF3]
[C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll+0x000A44EB]
[C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll+0x000A4423]
[C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll+0x000107E7]


Thanks,
Hamish
haemoglobin
 
Posts: 2
Joined: Thu Jul 26, 2012 11:46 am


Return to .NET Profiler

Who is online

Users browsing this forum: No registered users and 2 guests