Closed patryk9200 closed 7 months ago
which tab did you click on? Tracing or Timeline? or Graph?
Actually I had problem on all of them. If you want I can send you my binary log file so you will be able to look into it yourself.
yes if you email it to my first name dot last name at microsoft, I'll try to reproduce it locally. Thanks!
Thanks, I have received your binlog. It seems corrupted and this is what I see:
Error when reading the file: System.IO.InvalidDataException: String record number 14622 is invalid: string index -11 is not within 7257.
at Microsoft.Build.Logging.StructuredLogger.BuildEventArgsReader.GetStringFromRecord(Int32 index) in C:\MSBuildStructuredLog\src\StructuredLogger\BinaryLogger\BuildEventArgsReader.cs:line 1189
at Microsoft.Build.Logging.StructuredLogger.BuildEventArgsReader.ReadBuildEventArgsFields(Boolean readImportance) in C:\MSBuildStructuredLog\src\StructuredLogger\BinaryLogger\BuildEventArgsReader.cs:line 925
at Microsoft.Build.Logging.StructuredLogger.BuildEventArgsReader.ReadBuildMessageEventArgs() in C:\MSBuildStructuredLog\src\StructuredLogger\BinaryLogger\BuildEventArgsReader.cs:line 662
at Microsoft.Build.Logging.StructuredLogger.BuildEventArgsReader.Read() in C:\MSBuildStructuredLog\src\StructuredLogger\BinaryLogger\BuildEventArgsReader.cs:line 145
at Microsoft.Build.Logging.StructuredLogger.BinLogReader.Replay(Stream stream, Progress progress) in C:\MSBuildStructuredLog\src\StructuredLogger\BinaryLogger\BinLogReader.cs:line 104
The file size I got is 246,731 bytes and the MD5 is 6308353b8f96b4ddf1777d268210b83d. Did the file get corrupted?
It looks like it, I have exactly the same MD5. That's interesting, because I've build my project couple of times and I always got the same result, maybe there is some other issue that breaks this file when I'm building my application. I will check, if I can still reproduce it.
I think you might have a crash that kills msbuild mid-build, so the log gets interrupted. You can try running MSBuild.exe under the debugger to see the crash. Also enable LocalDumps in the registry to automatically capture a dump of every crashing process.
I've made a defensive fix, and the argument exception doesn't reproduce for me.
@KirillOsenkov Thanks for fixing this, that looks great! It doesn't reproduce for me too.
Hi,
When I was working with StructuredLog I've got an unexpected error with this message: