Red Gate forums :: View topic - Error when trying to clicking 'Show Source View'
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Performance Profiler 5
ANTS Performance Profiler 5 forum

Error when trying to clicking 'Show Source View'

Search in ANTS Performance Profiler 5 forum
Post new topic   Reply to topic
Jump to:  
Author Message
IBrown



Joined: 16 Feb 2010
Posts: 6

PostPosted: Tue Feb 16, 2010 4:37 pm    Post subject: Error when trying to clicking 'Show Source View' Reply with quote

Hi,

I get the following error when clicking 'Show Source View' on a method. The method is shown in bold - so Performance Profiler believes that there is source to show. The code is in an IIS based ASP.net application.

Any suggestions? Thanks in advance.

The error message is:

Code:
Object reference not set to an instance of an object.
System.NullReferenceException
   at DevExpress.XtraBars.Docking.DockPanel.Show()
   at aq.p()
   at aq.v(Object , ItemClickEventArgs )
   at DevExpress.XtraBars.BarItem.OnClick(BarItemLink link)
   at DevExpress.XtraBars.BarBaseButtonItem.OnClick(BarItemLink link)
   at DevExpress.XtraBars.BarItemLink.OnLinkClick()
   at DevExpress.XtraBars.BarItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)
   at DevExpress.XtraBars.BarButtonItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)
   at DevExpress.XtraBars.BarItemLink.OnLinkActionCore(BarLinkAction action, Object actionArgs)
   at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.ClickLink(BarItemLink link)
   at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.UnPressLink(BarItemLink link)
   at DevExpress.XtraBars.Controls.CustomLinksControl.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Back to top
View user's profile Send private message
StephenC



Joined: 15 Oct 2007
Posts: 315
Location: Cambridge

PostPosted: Tue Feb 16, 2010 4:42 pm    Post subject: Reply with quote

Hi,

just to quickly check - are you running the most recent version of ANTS Profiler?

Cheers,

Stephen
Back to top
View user's profile Send private message
IBrown



Joined: 16 Feb 2010
Posts: 6

PostPosted: Tue Feb 16, 2010 4:44 pm    Post subject: Reply with quote

I'm using the 14 day trial, labelled as 5.2.0.26.

Thanks for the quick reply.
Back to top
View user's profile Send private message
StephenC



Joined: 15 Oct 2007
Posts: 315
Location: Cambridge

PostPosted: Tue Feb 16, 2010 5:05 pm    Post subject: Reply with quote

That's very strange.

So when you first started profiling and then got some data there was never a source code window there by default? Ever?

Because that's the state that is shown whenever the profiler is opened again for a totally new profiling session. Generally there shouldn't even be a real need to use that menu item really unless having manually closed the source code window which generally doesn't happen because the line level timings are generally of most interest.

It's very odd and any details you could provide would be helpful.

Stephen
Back to top
View user's profile Send private message
IBrown



Joined: 16 Feb 2010
Posts: 6

PostPosted: Tue Feb 16, 2010 5:08 pm    Post subject: Reply with quote

To be honest - there may have been one there at some stage. I can't remember offhand. I've tried clicking 'Reset Docking Windows' but it doesn't seem to make any difference.

I don't know whether it helps, but I'm running XP, fully patched, with a dual monitor system.
Back to top
View user's profile Send private message
StephenC



Joined: 15 Oct 2007
Posts: 315
Location: Cambridge

PostPosted: Tue Feb 16, 2010 5:46 pm    Post subject: Reply with quote

The profiler doesn't (or shouldn't) remember the state of the code window.

Closing down ANTS and then starting it back up again should automatically display the code window again no matter what its state in the previous profiling session.

If it's now never appearing between totally new sessions of having closed it down and started it up again that's a really strange bug. It appears to involve the 3rd party DevExpress control that's used for the window looking at the stack trace.

If it's the case that the code window doesn't show at all even when having restarted the profiler, then what happens when you start profiling and haven't yet displayed data of any type in the call tree for example - does clicking on the show source code option still then throw the exception with no profiling data visible?

I have one other possible solution to try but let me know how that goes first.

Stephen
Back to top
View user's profile Send private message
IBrown



Joined: 16 Feb 2010
Posts: 6

PostPosted: Tue Feb 16, 2010 5:57 pm    Post subject: Reply with quote

Stephen,

OK - I've tried that. I still don't get the source window. However, when I click on the 'Show Source View' I now no longer get an error dialog - but nothing happens visually.

My screen shows the performance counters panel and the 'method' panel containing the tree view.

Incidentally, I am pretty impressed with the software as a whole.
Back to top
View user's profile Send private message
StephenC



Joined: 15 Oct 2007
Posts: 315
Location: Cambridge

PostPosted: Tue Feb 16, 2010 6:01 pm    Post subject: Reply with quote

Just in case you haven't seen it there's also a Methods grid and a Call Graph feature - see the options bar underneath the call tree.

Now that the error has stopped - try the reset docking windows option again and then show source code view. Worth a punt. Apart from V5 i'm out of ideas.

We do have an early access program now for V6. Here's the forum where you can get the build.

http://www.red-gate.com/messageboard/viewforum.php?f=110

It will install along side V5. I would imagine that the code view would be available when you install it. I just wouldn't go about closing it! Smile

Stephen
Back to top
View user's profile Send private message
IBrown



Joined: 16 Feb 2010
Posts: 6

PostPosted: Tue Feb 16, 2010 6:08 pm    Post subject: Reply with quote

Stephen,

I'm downloading the EAP build of v6 and will try it later.

I have had a look at the methods grid and call graph - both look useful. The 'Reset Docking Windows' option did not have the desired effect.

Thanks for your help,

Ian.
Back to top
View user's profile Send private message
StephenC



Joined: 15 Oct 2007
Posts: 315
Location: Cambridge

PostPosted: Tue Feb 16, 2010 6:15 pm    Post subject: Reply with quote

Happy to help.

Amongst other things we have planned for V6, the current build comes with the ability to analyze File I/O events and SQL events on a local instance of SQL Server if you are interested. There's a Sampling mode which is super quick if you don't need line level profiling.

You can 'switch' out the performance graph using the drop down in the top left corner and select the other graphs to do other analysis. If you have any colleagues etc... who would be interested then send on the link.

Any feedback on these features would be really appreciated.

Thanks,

Stephen
Back to top
View user's profile Send private message
IBrown



Joined: 16 Feb 2010
Posts: 6

PostPosted: Fri Feb 19, 2010 10:47 am    Post subject: Reply with quote

Stephen,

I tried the eap of v6 - making sure that I didn't turn off the code view window. The code view window has reappeared in v5.2.

Thanks for your help.
Back to top
View user's profile Send private message
StephenC



Joined: 15 Oct 2007
Posts: 315
Location: Cambridge

PostPosted: Fri Feb 19, 2010 1:14 pm    Post subject: Reply with quote

Not a problem.

I spoke to one of the developers about this and he thinks that deleting the DevExpress keys from the ANTS Profiler registry key would probably work.

We can't replicate this issue so no promises but if anyone else is reading this and has the same problem then please try it and let me know how you get on.

S
Back to top
View user's profile Send private message
SharedProphet



Joined: 10 Aug 2010
Posts: 3

PostPosted: Tue Aug 10, 2010 7:52 pm    Post subject: Re: Reply with quote

StephenC wrote:
Not a problem.

I spoke to one of the developers about this and he thinks that deleting the DevExpress keys from the ANTS Profiler registry key would probably work.

We can't replicate this issue so no promises but if anyone else is reading this and has the same problem then please try it and let me know how you get on.

S

I seem to be having the same issue, though I never got an error message. The source code view showed up the first couple times I ran the profiler but at some point yesterday it disappeared and there seems to be no way to get it back. I did an uninstall and reinstall on the profiler, hoping it would take care of those registry entries for me, but that didn't help. Before I start deleting things from the registry, which are the specific ones I am supposed to remove? I am using version 6, by the way.
Back to top
View user's profile Send private message
StephenC



Joined: 15 Oct 2007
Posts: 315
Location: Cambridge

PostPosted: Wed Aug 11, 2010 12:18 pm    Post subject: Reply with quote

Deleting everything in the Dock States key will fix the problem. Itís a DX bug as far as I can tell, haven't worked out a way we can fix it from within the profiler itself.
Back to top
View user's profile Send private message
SharedProphet



Joined: 10 Aug 2010
Posts: 3

PostPosted: Wed Aug 11, 2010 4:13 pm    Post subject: Re: Reply with quote

StephenC wrote:
Deleting everything in the Dock States key will fix the problem. Itís a DX bug as far as I can tell, haven't worked out a way we can fix it from within the profiler itself.

Ok, that worked. Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group