❔ dotnet-trace: Read past end of file
What could be causing this?
$ /home/user/.dotnet/tools/dotnet-trace collect -p 134867
No profile or providers specified, defaulting to trace profile 'cpu-sampling'
Provider Name Keywords Level Enabled By
Microsoft-DotNETCore-SampleProfiler 0x0000F00000000000 Informational(4) --profile
Microsoft-Windows-DotNETRuntime 0x00000014C14FCCBD Informational(4) --profile
Process : /home/user/dotnet/dotnet
Output File : /home/user/dotnet_20230608_195630.nettrace
[00:00:01:32] Recording trace 16.386 (MB)
Press <Enter> or <Ctrl+C> to exit...
Trace completed.
$ /home/user/.dotnet/tools/dotnet-trace collect -p 134867
No profile or providers specified, defaulting to trace profile 'cpu-sampling'
Provider Name Keywords Level Enabled By
Microsoft-DotNETCore-SampleProfiler 0x0000F00000000000 Informational(4) --profile
Microsoft-Windows-DotNETRuntime 0x00000014C14FCCBD Informational(4) --profile
Process : /home/user/dotnet/dotnet
Output File : /home/user/dotnet_20230608_195630.nettrace
[00:00:01:32] Recording trace 16.386 (MB)
Press <Enter> or <Ctrl+C> to exit...
Trace completed.
$ /home/user/.dotnet/tools/dotnet-trace report dotnet_20230608_195630.nettrace topN -n 2
[ERROR] System.Exception: Read past end of stream.
at FastSerialization.IOStreamStreamReader.Fill(Int32 minimum)
at FastSerialization.MemoryStreamReader.ReadByte()
at FastSerialization.Deserializer.ReadObject()
at Microsoft.Diagnostics.Tracing.EventPipeEventSource.Process()
at Microsoft.Diagnostics.Tracing.Etlx.TraceLog.CopyRawEvents(TraceEventDispatcher rawEvents, IStreamWriter writer)
at Microsoft.Diagnostics.Tracing.Etlx.TraceLog.<>c__DisplayClass120_0.<FastSerialization.IFastSerializable.ToStream>b__0()
at FastSerialization.DeferedRegion.Write(Serializer serializer, Action toStream)
at Microsoft.Diagnostics.Tracing.Etlx.TraceLog.FastSerialization.IFastSerializable.ToStream(Serializer serializer)
at FastSerialization.Serializer.WriteObjectData(IFastSerializable obj, Tags beginTag)
at FastSerialization.Serializer.WriteObjectRef(IFastSerializable obj, Boolean defered)
at FastSerialization.Serializer.Write(IFastSerializable obj)
at FastSerialization.Serializer..ctor(IStreamWriter writer, IFastSerializable entryObject)
at FastSerialization.Serializer..ctor(String filePath, IFastSerializable entryObject)
(a few more lines)
$ /home/user/.dotnet/tools/dotnet-trace report dotnet_20230608_195630.nettrace topN -n 2
[ERROR] System.Exception: Read past end of stream.
at FastSerialization.IOStreamStreamReader.Fill(Int32 minimum)
at FastSerialization.MemoryStreamReader.ReadByte()
at FastSerialization.Deserializer.ReadObject()
at Microsoft.Diagnostics.Tracing.EventPipeEventSource.Process()
at Microsoft.Diagnostics.Tracing.Etlx.TraceLog.CopyRawEvents(TraceEventDispatcher rawEvents, IStreamWriter writer)
at Microsoft.Diagnostics.Tracing.Etlx.TraceLog.<>c__DisplayClass120_0.<FastSerialization.IFastSerializable.ToStream>b__0()
at FastSerialization.DeferedRegion.Write(Serializer serializer, Action toStream)
at Microsoft.Diagnostics.Tracing.Etlx.TraceLog.FastSerialization.IFastSerializable.ToStream(Serializer serializer)
at FastSerialization.Serializer.WriteObjectData(IFastSerializable obj, Tags beginTag)
at FastSerialization.Serializer.WriteObjectRef(IFastSerializable obj, Boolean defered)
at FastSerialization.Serializer.Write(IFastSerializable obj)
at FastSerialization.Serializer..ctor(IStreamWriter writer, IFastSerializable entryObject)
at FastSerialization.Serializer..ctor(String filePath, IFastSerializable entryObject)
(a few more lines)
3 Replies
did the app that you were attached to crash
no
the application was still running when I ^C'd
might just be be failure to check for EINTR
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.