-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOException: Log cannot be accessed because it is used by another process #1885
Comments
🤔 at first I thought that the multiple loads were from different app domains, however, the code already includes the app domain as part of the log file name (even on v0.4.0). @muhaook if you can share some code with the repro it will be great. Meanwhile, I will try to repro on my own. |
It is possible to repro the issue if multiple app-domains are created with the same friendly name. The fix should be simple: add the app-domain id. |
@pjanotti, yes, I agree. it is likely because of the same appdomain friendly name. This issue came from an internal customer. I'll try to reproduce it myself. |
Thanks @muhaook, I was able to create a repro for the issue. I will submit PR to fix it this week. |
Hi @pjanotti , it turned out to be a multi-threading issue.
The error on sample stdout/stderr:
I then made change to auto-instrumentation source code, added thread id to log file name: afterwards, no error on sample stdout/stderr and otel logs look like below. there were 2 loader log files:
Attahced please find otel logs before the fix and after the fix: |
Thanks @muhaook! I will get to it later today. |
Thanks for that @muhaook - there are then actually 2 issues:
|
Bug Report
Symptom
run console application on .Net framework 4.6.2 with test cases in it. hit exception below:
Runtime environment:
The text was updated successfully, but these errors were encountered: