VS2005 hangs while refreshing vault status

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

papacha
Posts: 8
Joined: Tue Nov 06, 2007 2:07 pm

VS2005 hangs while refreshing vault status

Post by papacha » Tue Nov 25, 2008 6:25 pm

We're using Vault 4.1.4 (18402) with Visual Studio 2005 SP1 on both XP SP3 and Vista SP1. The server and clients are on a high speed local network. The server is a quad 3.8Ghz Xeon server, 15K SCSI drives, 4GB and hardly any usage except for Vault. Clients are all dual 3.6Ghz Xeons with 4GB.

Every minute or two Visual Studio freezes with the following message in the lower left corner:

"Refreshing vault status..."

This often happens while navigating through code, highlighting code, or adding/editing code. It's extremely frustrating because it happens so often. I ran all the standard performance fixes on the server, defragged the drive, rebuilt the SQL indexes, etc.

How can I either (1) stop Vault from constantly refreshing, (2) make Vault refresh faster, or (3) keep VS from freezing while refreshing?

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: VS2005 hangs while refreshing vault status

Post by lbauer » Wed Nov 26, 2008 3:22 pm

In the Vault GUI client under Tools -> Options -> Network Settings, check the box "Request database delta on repository cache miss." Or, if it is already checked uncheck it.

Does that make a difference?
Linda Bauer
SourceGear
Technical Support Manager

DoggettCK
Posts: 5
Joined: Mon Nov 17, 2008 11:13 am

Re: VS2005 hangs while refreshing vault status

Post by DoggettCK » Tue Dec 16, 2008 12:25 pm

I and my lead dev get the same problem, and the suggested change didn't fix it. Any other suggestions?

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: VS2005 hangs while refreshing vault status

Post by lbauer » Wed Dec 17, 2008 1:31 pm

We'll need to see some logging to determine what's going on.

Enable client-side logging
http://support.sourcegear.com/viewtopic.php?t=1534

I'll also want to see a copy of the Vault server log for the same time period. The Vault server log is sgvault.log and is in %windir%\temp\sgvault on the server machine.

Send them zipped up to support at sourcegear.com, Attn: Linda.
Linda Bauer
SourceGear
Technical Support Manager

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Re: VS2005 hangs while refreshing vault status

Post by ian_sg » Wed Dec 17, 2008 2:33 pm

The original poster asked if they could change the frequency or turn off that refresh, and we never answered that. You can.

In Visual Studio, this option is under Tools|Options|Source Control|Vault Options|Advanced Options.
Attachments
GeneralOptions.PNG
GeneralOptions.PNG (39.82 KiB) Viewed 11011 times
Ian Olsen
SourceGear

DoggettCK
Posts: 5
Joined: Mon Nov 17, 2008 11:13 am

Re: VS2005 hangs while refreshing vault status

Post by DoggettCK » Tue Dec 23, 2008 9:54 am

Thanks, Ian. Worked perfectly.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: VS2005 hangs while refreshing vault status

Post by lbauer » Tue Dec 23, 2008 12:04 pm

Thanks for the update.
Linda Bauer
SourceGear
Technical Support Manager

gswartwood
Posts: 1
Joined: Tue Dec 30, 2008 4:56 pm

Re: VS2005 hangs while refreshing vault status

Post by gswartwood » Tue Dec 30, 2008 5:01 pm

Linda, do you still need logs?

I have the same issue (Visual Studio being non-responsive for minutes at a time then getting the 'refreshing Vault status') and it is a good temporary fix to turn off the auto-refresh. Alas, that is a fixing the symptom, not the cause. Why is the Visual Studio pausing for minutes at a time?

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Re: VS2005 hangs while refreshing vault status

Post by ian_sg » Wed Dec 31, 2008 10:19 am

If it's not too big a pain to get us the logs, I'd love to see what's going on for people reporting this problem. If you don't want to attach them here, you can email them to ian at sourcegear dot com.
Ian Olsen
SourceGear

papacha
Posts: 8
Joined: Tue Nov 06, 2007 2:07 pm

Re: VS2005 hangs while refreshing vault status

Post by papacha » Mon Jun 01, 2009 2:22 pm

Logs have been submitted via e-mail to ian @ sourcegear dot com.

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Re: VS2005 hangs while refreshing vault status

Post by ian_sg » Mon Jun 01, 2009 2:39 pm

If you turn off the automatic refresh (clear the checkbox in the dialog shown earlier in this thread), does the delay go away?

(You need to log out/in for this to take effect. Restarting Visual Studio is the best way to make sure you've done that.)
Ian Olsen
SourceGear

papacha
Posts: 8
Joined: Tue Nov 06, 2007 2:07 pm

Re: VS2005 hangs while refreshing vault status

Post by papacha » Mon Jun 01, 2009 2:54 pm

Automatic refresh was already turned off.

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Re: VS2005 hangs while refreshing vault status

Post by ian_sg » Mon Jun 01, 2009 3:07 pm

Strange. What I see in the log is perpetual refreshes during the non-responsive periods you indicated. Each refresh takes roughly 1 second, but they're occurring one after another for periods that perfectly coincide with when you say VS was frozen.

I'm not sure why this would ever happen, much less when the automatic refresh is turned off completely. I'll have to investigate some.

It looks like your were debugging just before some of the non-responsive periods. I'll start there, in terms of reproducing the problem.

You also mentioned a SOAP error, but I don't see that in the logs. Do you have any more information about that? What did the dialog say?
Ian Olsen
SourceGear

papacha
Posts: 8
Joined: Tue Nov 06, 2007 2:07 pm

Re: VS2005 hangs while refreshing vault status

Post by papacha » Mon Jun 01, 2009 3:31 pm

The SoapException generated isn't really an error. It's a business rule validation that failed in our web service. That's how the web service notifies the client of certain errors. I've seen this behavior when other types of exceptions are thrown. I don't think it's web service specific.

Let me know if you need me to try anything else on our end.

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Re: VS2005 hangs while refreshing vault status

Post by ian_sg » Mon Jun 01, 2009 3:34 pm

I see. I'm actually seeing incredibly frequent refreshes throughout the log, even during periods you didn't say were nonresponsive.

To help me narrow the possibilities, would you try this? Turn the auto-refresh back on, but set the interval high, to something like 120 minutes (and restart VS). Does that make any difference?
Ian Olsen
SourceGear

Post Reply