Open Dranni21312 opened 2 years ago
We know about this one, cause unknown
I don't know much about internals of the plugin, but I took a look at how the file is created in the repository
In Dalamud/Entry point.cs, lines 260 and 261 are as follows:
if (!logFile.Exists)
logFile.Create();
The FileInfo.Create() call used here creates and opens a FileStream to the file, which is not correctly closed or disposed of, which will in turn leave the file open and can result in this behavior.
This call should be wrapped in a using block or contained within a using statement as follows:
using (logFile.Create());
I don't have an easy way to test if this fixes this behavior, but there's a good chance it might.
Note: this would also explain this issue happening only during the run when the file is created
Update disclaimer
What did you do?
Steps to reproduce:
The result is the dalamud.log file created is a zero length file and does not contain any relevant log data.
Subsequent launches of the game facilitate normal logging behavior.
Using the .31 build.
Platform
Windows
Wine/Proton runner version
No response
Relevant log output
No response