Deadlock on adding new empty file

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

Moderator: SourceGear

Post Reply
smoelands
Posts: 5
Joined: Fri Jan 06, 2012 5:44 am

Deadlock on adding new empty file

Post by smoelands » Fri Jan 06, 2012 7:28 am

Hi,

We are using vault standard version 5.1.2.19281 (client and server) and are running into problems when trying to check in a newly added empty file (a resx.designer file in an ASP.NET project) from VS2010 and the Vault client.

When committing the change set including the empty file, VS (and I assume the Vault plugin) hangs with the message Uploading file. I need to forcibly close VS because it won't stop by itself. When blocked, I see the VS-process take 25% of my CPU. Because my computer has 4 cores I'm assuming it takes up all the processing power of one of the cores.

I also tried adding the new files using the stand-alone Vault client but this resulted in the same behaviour whereby only the following message is displayed in the client:
[6-1-2012 13:07:04] Preparing data to begin transaction
There is a workaround for this problem. I need to manually add a comment line to the resx.designer file to check it in. Just adding some whitespace characters is not enough.

Could you please look into this or is this a known bug for which a solution is already available?

Thank you in advance.

Kind regards, Sander Moelands

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Deadlock on adding new empty file

Post by Beth » Fri Jan 06, 2012 8:37 am

Do you have other .resx files checked into Vault? Do you have the other associated files checked in? By that I mean did you check in your .cs and .Designer.cs (or .vb and .Designer.vb) files already?

How did you create your .resx file?
Beth Kieler
SourceGear Technical Support

smoelands
Posts: 5
Joined: Fri Jan 06, 2012 5:44 am

Re: Deadlock on adding new empty file

Post by smoelands » Fri Jan 06, 2012 9:02 am

I have no problem checkin in .resx files. If I try two separate commits, first adding the .resx file and in the second commit checking in the .Designer.cs file then VS hangs on the second commit. So it really is the .Designer.cs file which is producing the problems.

The .resx file was created in VS by using the default add new item option and then choosing the resource file. VS will then generate the empty .Designer.cs file by itself.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Deadlock on adding new empty file

Post by Beth » Fri Jan 06, 2012 10:45 am

I'm not reproducing the behavior you are seeing.

Is the file size 1 KB or 0 KB?

Could you send me a screenshot of what your project tree looks like in the VS solution explorer? You can send that in an email to support at sourcegear.com (attn: Beth) with a link to this forum thread.
Beth Kieler
SourceGear Technical Support

smoelands
Posts: 5
Joined: Fri Jan 06, 2012 5:44 am

Re: Deadlock on adding new empty file

Post by smoelands » Tue Jan 10, 2012 8:20 am

The file is exactly 0 bytes in size.

As requested I've send you an email with some screenshots of how my project is set-up.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Deadlock on adding new empty file

Post by Beth » Thu Jan 26, 2012 10:50 am

For other users that may come across this, we're discussing this offline.

HS: 224619
Beth Kieler
SourceGear Technical Support

Post Reply