Skip to content

crash if log is used? #328

@jmecosta

Description

@jmecosta

no actions from my side, just this crash after minutes for registering

Application: Scalar.exe
CoreCLR Version: 4.700.19.57202
.NET Core Version: 3.0.2
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.IOException: The process cannot access the file 'D:\prod\structures-master.git\logs\scalar_maintenance_service.log' because it is being used by another process.
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
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 Scalar.Common.Tracing.LogFileEventListener.SetLogFilePath(String newfilePath) in E:\A_work\23\s\Scalar.Common\Tracing\LogFileEventListener.cs:line 41
at Scalar.CommandLine.RunVerb.Execute(ScalarEnlistment enlistment) in E:\A_work\23\s\Scalar\CommandLine\RunVerb.cs:line 61
at Scalar.CommandLine.ScalarVerb.ForExistingEnlistment.Execute(GitAuthentication authentication) in E:\A_work\23\s\Scalar\CommandLine\ScalarVerb.cs:line 615
at Scalar.CommandLine.ScalarVerb.ForExistingEnlistment.Execute() in E:\A_work\23\s\Scalar\CommandLine\ScalarVerb.cs:line 605
at Scalar.Program.<>c.

b__0_4(ScalarVerb verb) in E:\A_work\23\s\Scalar\Program.cs:line 94
at CommandLine.ParserResultExtensions.WithParsed[T](ParserResult1 result, Action1 action)
at Scalar.Program.Main(String[] args) in E:\A_work\23\s\Scalar\Program.cs:line 51

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions