VS crashes when adding wrap from command line (OW2)

3 views
Skip to first unread message

Konstantin

unread,
Sep 16, 2011, 8:47:18 AM9/16/11
to openwra...@googlegroups.com
Solution is opened in VS
in command line: o add-wrap nunit -scope tests
VS crashes with following exception:

Exception Type: System.IO.IOException
Exception Message: The process cannot access the file 'E:\WORK\FINAM\Inceptum.Framework\Inceptum.Framework.tests.wrapdesc' because it is being used by another process.
Exception Stack Trace:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.IO.File.Open(String path, FileMode mode, FileAccess access, FileShare share)
   at OpenFileSystem.IO.FileSystems.Local.LocalFile.Open(FileMode fileMode, FileAccess fileAccess, FileShare fileShare) in c:\TeamCity\buildAgent\work\c71e0c1ab1563c43\src\OpenFileSystem\FileSystems\Local\LocalFile.cs:line 115
   at OpenFileSystem.IO.FileExtensions.OpenRead(IFile file) in c:\TeamCity\buildAgent\work\c71e0c1ab1563c43\src\OpenFileSystem\FileExtensions.cs:line 36
   at OpenWrap.IO.IOExtensions.<>c__DisplayClass1`1.<Read>b__0() in c:\src\openwrap\src\OpenWrap\IO\IOExtensions.cs:line 15
   at OpenWrap.IO.IOExtensions.Read[T](Func`1 open, Func`2 read) in c:\src\openwrap\src\OpenWrap\IO\IOExtensions.cs:line 100
   at OpenWrap.IO.IOExtensions.Read[T](IFile file, Func`2 read) in c:\src\openwrap\src\OpenWrap\IO\IOExtensions.cs:line 15
   at OpenWrap.PackageModel.Serialization.PackageDescriptorReader.ReadAll(IDirectory directoryToReadFrom) in c:\src\openwrap\src\OpenWrap\PackageModel\Serialization\PackageDescriptorReader.cs:line 35
   at OpenWrap.PackageManagement.Monitoring.PackageDescriptorMonitor.NotifyAllClients(IFile wrapPath) in c:\src\openwrap\src\OpenWrap\PackageManagement\Monitoring\PackageDescriptorMonitor.cs:line 83
   at OpenWrap.PackageManagement.Monitoring.PackageDescriptorMonitor.HandleWrapFileUpdate(Object sender, FileSystemEventArgs e) in c:\src\openwrap\src\OpenWrap\PackageManagement\Monitoring\PackageDescriptorMonitor.cs:line 68
   at System.IO.FileSystemWatcher.OnChanged(FileSystemEventArgs e)
   at System.IO.FileSystemWatcher.NotifyFileSystemEventArgs(Int32 action, String name)
   at System.IO.FileSystemWatcher.CompletionStatusChanged(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* overlappedPointer)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)


-------------------------

Installed Extensions
NuGet Package Manager
State = Enabled
Version = 1.0.11220.104

VSCommands 2010
State = Enabled
Version = 3.7.3.0



-------------------------

Environment Data
VisualStudio.Version = 10.0
VisualStudio.Edition = Ultimate
VisualStudio.FullName = C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe
VisualStudio.RegistryRoot = Software\Microsoft\VisualStudio\10.0
VisualStudio.LocaleId = 1033
VisualStudio.DisplayMode = vsDisplayMDITabs
Time.UTC = 16.09.2011 12:43:58
Time.Local = 16.09.2011 16:43:58
OS.Architecture = x86
Environment.Version = 4.0.30319.235
Environment.HasShutdownStarted = False
Environment.OSVersion.Platform = Win32NT
Environment.OSVersion = 6.1.7601.65536
CurrentThread.Id = 1
CurrentThread.Name = [null]
CurrentThread.ThreadState = Background
CurrentThread.IsBackground = True
CurrentThread.UICulture = English (United States)
CurrentThread.Culture = Russian (Russia)
Process.PagedMemorySizeMB = 500,21484375
Process.MaxWorkingSetMB = 1,34765625
Process.NonpagedSystemMemorySizeMB = 0,270896911621094
Process.PagedSystemMemorySizeMB = 1,32799530029297
Process.PrivateMemorySizeMB = 500,21484375
Process.VirtualMemorySizeMB = 1135,66796875
Process.WorkingSetMB = 575,35546875
Process.UpTime = 01:03:51.7580000

Sebastien Lambla

unread,
Sep 16, 2011, 9:15:52 AM9/16/11
to openwra...@googlegroups.com

Hmm. That’s very strange, never seen that before. Obviously that component should not crash VS so we’ll put a fix in there for that, but I’m wondering what is keeping a lock on the file?

 

Other fix is to ensure that any read is re-attempted when there’s a lock and generate a warning. Can you fill an issue on the github site so I can keep track of that?

Konstantin

unread,
Sep 16, 2011, 10:20:55 AM9/16/11
to openwra...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages