Windows Version
Microsoft Windows [Version 10.0.26200.8655]
WSL Version
2.9.3.0
Are you using WSL 1 or WSL 2?
Kernel Version
WSLC
Distro Version
WSLC
Other Software
NuGet: Microsoft.WSL.Containers 2.9.3
Repro Steps
- Put a breakpoint at the exception
- When hitting the breakpoint, stop the project, don't allow it to dispose or terminate.
- Start the program again
var sessionSettings = new SessionSettings("BugSession", Config.RootDataPath)
{
CpuCount = 2,
MemorySizeInMB = 2048,
};
using var session = new Session(sessionSettings);
try
{
session.Start();
foreach(var img in session.GetImages())
Console.WriteLine(img.Name);
throw new NotImplementedException();
}
finally
{
session.Terminate();
}
Expected Behavior
Connect to the existing session or force close and start a new one.
Actual Behavior
Upon the second run, after the abrupt stop, I get the following error message.
System.Runtime.InteropServices.COMException: 'Cannot create a file when that file already exists.
Cannot create a file when that file already exists.
'
Diagnostic Logs
No response
Windows Version
Microsoft Windows [Version 10.0.26200.8655]
WSL Version
2.9.3.0
Are you using WSL 1 or WSL 2?
Kernel Version
WSLC
Distro Version
WSLC
Other Software
NuGet: Microsoft.WSL.Containers 2.9.3
Repro Steps
Expected Behavior
Connect to the existing session or force close and start a new one.
Actual Behavior
Upon the second run, after the abrupt stop, I get the following error message.
Diagnostic Logs
No response