microsoft/perfview
在 GitHub 查看Freeze processing in EventPipeEventSource if uncaught exception is thrown in callback.
Open
#1,290 建立於 2020年10月15日
bughelp wanted
倉庫指標
- Star
- (3,819 star)
- PR 合併指標
- (平均合併 1小時 51分鐘) (30 天內合併 2 個 PR)
描述
Environment
- Microsoft.Diagnostics.Tracing.TraceEvent: 2.0.61
- Microsoft.Diagnostics.NETCore.Client: 0.2.141901
- EventPipe sender app and receiver app's TFM: net5.0-rc2
Steps to reproduce
- run app which produce EventSource event periodically
- start EventPipe session by DiagnosticClient
- create EventPipeEventSource from event stream
- set callback to DynamicEventParser.All
- Exception will be thrown in callback
- start processing
full test code is uploaded to gist
Expected result
callback is invoked periodicaly, or at least terminate event processing when EventPipeEventSource.StopProcessing is called.
Actual result
callback was never invoked again, and EventPipeEventSource.Process never returned, even if EventPipeEventSource.StopProcessing was called.