google / UIforETW

User interface for recording and managing ETW traces
https://randomascii.wordpress.com/2015/04/14/uiforetw-windows-performance-made-easier/
Apache License 2.0
1.55k stars 201 forks source link

UI for ETW version 1.56 - Locks up when I choose to Start Tracing. #154

Closed lviolette closed 2 years ago

lviolette commented 2 years ago

UI for ETW changes to (Not Responding) right after I click on start tracing. In the UI, it shows: Starting tracing to disk... Tracing is started.

Then goes to (Not Responding) in the titlebar and the whole app turns grey (like when any app shows Not Responding). UIforETW

Unfortunately I can't attach the dmp file I generated with UIforETW. Here's a public one-drive link: https://1drv.ms/u/s!AmoCoOcZk4GBgqQOKKrSg_PiU4V9tA?e=D6pENR

randomascii commented 2 years ago

It is known and expected that UIforETW will hang for "a bit" when starting tracing. It invokes xperf.exe several times and doesn't pump messages again until all of those invocations have completed.

It is unusual for UIforETW to hang permanently.

So, if UIforETW hangs briefly then that is "fine". If it never recovers then that means that xperf.exe has hung. I rarely see this but it can happen. Specifically, if I have certain applications (I'm not sure which) halted in a debugger when I try to start tracing then xperf.exe will hang. I guess xperf is trying to communicate with the halted process to tell it to start emitting events.

So, look (in Task Manager) for invocations of xperf.exe that are not responding. Checking UIforETW's Show commands option may help with understanding this.

lviolette commented 2 years ago

Thank you for the feedback I hadn't been able to reproduce the permanent freeze again. Thanks for your hard work.