-
Notifications
You must be signed in to change notification settings - Fork 354
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
EventPipeEventSource blocks until the first event is read #1060
Comments
cc @sywhang |
I have the same issue. Even in first sample code: https://github.com/dotnet/diagnostics/blob/master/documentation/design-docs/diagnostics-client-library.md |
@davmason I think a better place for this issue is the perfview repo since that's where TraceEvent and the implementation of EventPipeEventSource lives. For some reason it seems like I can't transfer this issue to PerfView repo so I just filed microsoft/perfview#1172 to track it there. |
If you follow the sample code on how to use EventPipeEventSource but replace the provider with a provider that doesn't produce any events, it will block forever in the constructor to EventPipeEventSource.
It will block on this line: https://github.com/microsoft/perfview/blob/cb1943b8ded584e136e140746e5771ca63668c5a/src/TraceEvent/EventPipe/EventPipeEventSource.cs#L68
This seems like a pitfall, and it's not clear what is happening. I've used that code pattern lots before and it's never failed, then all of a sudden it hangs my app and I have to do a lot of digging to understand why. I imagine customers will run in to it as well.
The text was updated successfully, but these errors were encountered: