-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
.NETIssue or Pull requests regarding .NET codeIssue or Pull requests regarding .NET codebugSomething isn't workingSomething isn't workingexperimentalAssociated with an experimental featureAssociated with an experimental featureprocessessamplessk team issueA tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)A tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)staleIssue is stale because it has been open for a while and has no activityIssue is stale because it has been open for a while and has no activity
Description
Describe the bug
MermaidRenderer
uses the same temp-file location for all invocations. This results in file contention that leads to an IOException
.
Message:
System.IO.IOException : The process cannot access the file 'C:\Users\crickman\AppData\Local\Temp\mermaid_temp.html' because it is being used by another process.
Stack Trace:
FileSystem.DeleteFile(String fullPath)
MermaidRenderer.GenerateMermaidImageAsync(String mermaidCode, String filenameOrPath) line 117
...
To Reproduce
Steps to reproduce the behavior:
- Add a second sample to
GettingStartedWithProcesses
that invokesMermaidRenderer
- Run samples with parallel execution enavled
Expected behavior
Samples execute without exception. (Use a unique temporary file for each invocation)
Platform
- Language: C#
joslat
Metadata
Metadata
Assignees
Labels
.NETIssue or Pull requests regarding .NET codeIssue or Pull requests regarding .NET codebugSomething isn't workingSomething isn't workingexperimentalAssociated with an experimental featureAssociated with an experimental featureprocessessamplessk team issueA tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)A tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)staleIssue is stale because it has been open for a while and has no activityIssue is stale because it has been open for a while and has no activity
Type
Projects
Status
No status