Summarizing process never ends in ANTS Performance Profiler

Code profiling for .NET Developers

Moderators: Luke Jefferson, StephenC, Alex.Davies, AndrewH, melvyn.harbour, Laura Morley

Summarizing process never ends in ANTS Performance Profiler

Postby Somnath » Fri Mar 25, 2011 11:59 am

Its just 1month I purchased RedGate .NET Developer Bundle.

I was using ANTS Performance Profiler 6 to profile one of my Silverlight applications. Suddenly ANTS Performance Profiler 6 throws exception and tried to send the bug report but it was failed to send the error report to remote server due to network security.

Now I’m facing one issue. Whenever I start to profile my Silverlight 4 application it unable to profile and unable to summarizing the results... and summarizing process never ends...

I'm using Windows 7, Visual Studio 2010. I have tried downloading and installing new binaries. But no luck...

Please help...

Regards,
Somnath

Image
Somnath
 
Posts: 4
Joined: Fri Mar 25, 2011 11:34 am

Postby Brian Donahue » Fri Mar 25, 2011 2:40 pm

Thanks for posting in the Performance Profiler forum. I think there are two issues at work. One is that IE doesn't give us a predictable process ID for the instance of iexplore.exe running the Silverlight. The only way to make it work reliably is to kill all instances of IE from Task Manager (some may not even be "visible").

The second problem is a bug that when there are no results or an error occurs sending results, the green thing spins around forever ( PP-1144 ). We're working to get this fixed.
Brian Donahue
 
Posts: 6668
Joined: Mon Aug 23, 2004 10:48 am

Postby Somnath » Wed Mar 30, 2011 6:15 am

Hi Brian,

I tried to profile a wpf application also. After sometime if I press "Stop Profilling" button. Same thing happens.. "Summarizing results.." never ends..

Regards,
Somnath Panja
Somnath
 
Posts: 4
Joined: Fri Mar 25, 2011 11:34 am

Postby Brian Donahue » Wed Mar 30, 2011 9:40 am

Right. Profiler is making your application crash, which may or may not be its' fault, and it has an embarrassing bug.
Brian Donahue
 
Posts: 6668
Joined: Mon Aug 23, 2004 10:48 am

Re:

Postby stevehurcombe » Thu May 12, 2011 3:17 pm

Hi Brian,
I'm getting the same symptoms as this with a WCF 4 application in IIS.

I can attach to the process OK and run a profile, but it's not a line level analysis.

Do you have an update?

Many thanks
Steve

Brian Donahue wrote:Thanks for posting in the Performance Profiler forum. I think there are two issues at work. One is that IE doesn't give us a predictable process ID for the instance of iexplore.exe running the Silverlight. The only way to make it work reliably is to kill all instances of IE from Task Manager (some may not even be "visible").

The second problem is a bug that when there are no results or an error occurs sending results, the green thing spins around forever ( PP-1144 ). We're working to get this fixed.
stevehurcombe
 
Posts: 17
Joined: Tue Feb 22, 2005 4:26 pm

Postby Brian Donahue » Thu May 12, 2011 3:46 pm

Looks like we're in another one of those "unless you can reproduce it we won't try to fix it" arguments.

At one point, I could get this to happen sometimes by killing the process being profiled in Task Manager. But I can't get it to happen reliably enough. Any pointers as to how I can hang Profiler on summarizing results are most welcome.
Brian Donahue
 
Posts: 6668
Joined: Mon Aug 23, 2004 10:48 am

Re:

Postby stevehurcombe » Thu May 12, 2011 3:48 pm

Hi Brian,
Completely understand, obviously I can reproduce it here - happy to have a remote desktop session if that helps. It happens 100%.

Cheers
Steve

Brian Donahue wrote:Looks like we're in another one of those "unless you can reproduce it we won't try to fix it" arguments.

At one point, I could get this to happen sometimes by killing the process being profiled in Task Manager. But I can't get it to happen reliably enough. Any pointers as to how I can hang Profiler on summarizing results are most welcome.
stevehurcombe
 
Posts: 17
Joined: Tue Feb 22, 2005 4:26 pm

Postby Brian Donahue » Thu May 12, 2011 3:50 pm

Yes, but need to reproduce in-house. This softeware is totally unfriendly to production debugging. Obviously ANTS Profiler is causing your program to crash, that's problem number one. Then there is a deadlock bug on summaraizing - that's problem number two.

So I need to have this happen on my computer. What special thing is ProfilerCore.dll doing that hoses your application in the first place? Is there anything in the event log?
Brian Donahue
 
Posts: 6668
Joined: Mon Aug 23, 2004 10:48 am

Re:

Postby stevehurcombe » Thu May 12, 2011 4:04 pm

These are the steps:

1. Start a profile session.
2. The browser loads but displays a 404 message.
3. ANTS spins 'Summarizing results'.
4. If I refresh the browser page then the API call works and a new W3P process is NOT created.

There are no messages in the event log other than 'Message logging has been turned on'.

The W3P process that reported the message is still active and hasn't crashed. If my code had really died I would have expected that process to die as well??

If I attach to the process directly then all is well. I can also profile an ASP.Net 3.5 (2.0) application just fine on the same machine.

The only unusual factor that I can think of is that this is a WCF 4.0 application. There's nothing complicated about the application itself.

I wonder if the profile is starting too quickly? After IIS is listening but before WCF has started.

Is there any additional logging I can enable?

Best regards
Steve

Brian Donahue wrote:Yes, but need to reproduce in-house. This softeware is totally unfriendly to production debugging. Obviously ANTS Profiler is causinf you rprogram to crash, that's problem number one. Then it was a deadlock bug on summaraizing - that's problem number two.

So I need to have this happen on my computer. What special thing is ProfilerCore.dll doing that hoses your application in the first place? Is there anything in the event log?
stevehurcombe
 
Posts: 17
Joined: Tue Feb 22, 2005 4:26 pm

Re:

Postby stevehurcombe » Thu May 12, 2011 4:21 pm

It seems that the VS 2010 profiler won't work either.

This page suggests that there is a location element missing (I'm getting an identical error):

http://netindonesia.net/blogs/jimmy/arc ... t-not.aspx

Could that be tripping up ANTS too?

S.

Brian Donahue wrote:Yes, but need to reproduce in-house. This softeware is totally unfriendly to production debugging. Obviously ANTS Profiler is causing your program to crash, that's problem number one. Then there is a deadlock bug on summaraizing - that's problem number two.

So I need to have this happen on my computer. What special thing is ProfilerCore.dll doing that hoses your application in the first place? Is there anything in the event log?
stevehurcombe
 
Posts: 17
Joined: Tue Feb 22, 2005 4:26 pm

Re:

Postby stevehurcombe » Thu May 12, 2011 4:30 pm

Hi Brian,
Scratch that. VS 2010 started working I just ran it again...doh!

S.

Brian Donahue wrote:Yes, but need to reproduce in-house. This softeware is totally unfriendly to production debugging. Obviously ANTS Profiler is causing your program to crash, that's problem number one. Then there is a deadlock bug on summaraizing - that's problem number two.

So I need to have this happen on my computer. What special thing is ProfilerCore.dll doing that hoses your application in the first place? Is there anything in the event log?
stevehurcombe
 
Posts: 17
Joined: Tue Feb 22, 2005 4:26 pm

Postby AndrewH » Thu May 12, 2011 5:55 pm

There's a bug somewhere in the UI logic that leaves the 'summarizing' screen up when the target process has stopped before .NET has started. It's supposed to display a message to the effect that there are no results available instead (which is still kind of unhelpful, but unfortunately it's all that the profiler can really see happening).

With an ASP.NET application, ANTS monitors an instance of Internet Explorer, and stops profiling once it goes away. Sometimes IE farms off the request from ANTS to another instance of itself and quits immediately, which looks to ANTS the same as if you had closed the window. I think from your description that this is most likely what's happening (if this is what's happening, then the 'summarizing results' spinny will show up around the same time the browser opens).

If the 'stop profiling' button is grayed out when the browser is open, then this is almost certainly what's happened: it's only lit while the profiler thinks that the target process is running.

One thing to look for is whether or not protected mode is on when the browser opens. ANTS *should* be creating a browser that is running with protected mode turned off. If protected mode is on, then one thing that might fix the issue is manually turning it off in IE's settings.

Which version of IE are you running? IE7 has protected mode but doesn't have a way to start with it turned off (the feature was added in IE8), and might be a source of these issues.

Something else that might be worth trying is profiling the C:\\Program Files\\Internet Explorer\\iexplore.exe process using the desktop application profiling mode. The profiler shouldn't display the spinner until after IE exits: if it shows up right away then there's something odd going on (the spinner won't disappear due to the UI bug, at least, unless you load a page with Silverlight on it).
Andrew Hunter
Software Developer
Red Gate Software Ltd.
AndrewH
 
Posts: 134
Joined: Thu Aug 17, 2006 3:44 pm

Postby Brian Donahue » Thu May 12, 2011 6:09 pm

I suspect this is happening on apps other than Silverlight though. I've tried some things to reproduce this today such as throwing an Access Violation in the Application_Start of the web application without a result, so I did suspect that what I need to do is get w3wp to fail when trying to load mscorlib. I can't quite figure out how to make that happen.
Brian Donahue
 
Posts: 6668
Joined: Mon Aug 23, 2004 10:48 am

Re:

Postby stevehurcombe » Thu May 12, 2011 6:11 pm

Hi,
That fixed it. I am running IE9 and it had launched in protected mode. Disabling that fixed the problem.

Thanks!

S.

AndrewH wrote:There's a bug somewhere in the UI logic that leaves the 'summarizing' screen up when the target process has stopped before .NET has started. It's supposed to display a message to the effect that there are no results available instead (which is still kind of unhelpful, but unfortunately it's all that the profiler can really see happening).

With an ASP.NET application, ANTS monitors an instance of Internet Explorer, and stops profiling once it goes away. Sometimes IE farms off the request from ANTS to another instance of itself and quits immediately, which looks to ANTS the same as if you had closed the window. I think from your description that this is most likely what's happening (if this is what's happening, then the 'summarizing results' spinny will show up around the same time the browser opens).

If the 'stop profiling' button is grayed out when the browser is open, then this is almost certainly what's happened: it's only lit while the profiler thinks that the target process is running.

One thing to look for is whether or not protected mode is on when the browser opens. ANTS *should* be creating a browser that is running with protected mode turned off. If protected mode is on, then one thing that might fix the issue is manually turning it off in IE's settings.

Which version of IE are you running? IE7 has protected mode but doesn't have a way to start with it turned off (the feature was added in IE8), and might be a source of these issues.

Something else that might be worth trying is profiling the C:\\Program Files\\Internet Explorer\\iexplore.exe process using the desktop application profiling mode. The profiler shouldn't display the spinner until after IE exits: if it shows up right away then there's something odd going on (the spinner won't disappear due to the UI bug, at least, unless you load a page with Silverlight on it).
stevehurcombe
 
Posts: 17
Joined: Tue Feb 22, 2005 4:26 pm

Re:

Postby stevehurcombe » Thu May 12, 2011 6:22 pm

Hi,
One small point the browser starts and I get a 404 error. Hitting refresh though starts things up nicely.

S.

AndrewH wrote:There's a bug somewhere in the UI logic that leaves the 'summarizing' screen up when the target process has stopped before .NET has started. It's supposed to display a message to the effect that there are no results available instead (which is still kind of unhelpful, but unfortunately it's all that the profiler can really see happening).

With an ASP.NET application, ANTS monitors an instance of Internet Explorer, and stops profiling once it goes away. Sometimes IE farms off the request from ANTS to another instance of itself and quits immediately, which looks to ANTS the same as if you had closed the window. I think from your description that this is most likely what's happening (if this is what's happening, then the 'summarizing results' spinny will show up around the same time the browser opens).

If the 'stop profiling' button is grayed out when the browser is open, then this is almost certainly what's happened: it's only lit while the profiler thinks that the target process is running.

One thing to look for is whether or not protected mode is on when the browser opens. ANTS *should* be creating a browser that is running with protected mode turned off. If protected mode is on, then one thing that might fix the issue is manually turning it off in IE's settings.

Which version of IE are you running? IE7 has protected mode but doesn't have a way to start with it turned off (the feature was added in IE8), and might be a source of these issues.

Something else that might be worth trying is profiling the C:\\Program Files\\Internet Explorer\\iexplore.exe process using the desktop application profiling mode. The profiler shouldn't display the spinner until after IE exits: if it shows up right away then there's something odd going on (the spinner won't disappear due to the UI bug, at least, unless you load a page with Silverlight on it).
stevehurcombe
 
Posts: 17
Joined: Tue Feb 22, 2005 4:26 pm

Next

Return to ANTS Performance Profiler 6

Who is online

Users browsing this forum: No registered users and 1 guest