PresentMon icon indicating copy to clipboard operation
PresentMon copied to clipboard

Frequently All Present is makred as "Lost" in one of my PC.

Open cdjzzzz opened this issue 1 year ago • 3 comments

OS:Win11, compiled PresentMon with X86, run as admin.

This happens only in one of my PCes(totaly 3). with a couple of start/stop sesstion, this happens. in the function PMTraceConsumer::EnqueueDeferredCompletions(...) @ PresentMonTraceConsumer.cpp present->IsLost always is true with any process in my computer.

cdjzzzz avatar Aug 11 '22 04:08 cdjzzzz

Can you explain what you mean by a couple of start/stop sessions? Is it working initially?

Also, is it possible to provide a short ETL captured on this PC that shows the problem? (https://github.com/GameTechDev/PresentMon/blob/main/CONTRIBUTING.md#requesting-features-and-reporting-issues)

the "start/stop sessions", i mean launch PresentMon and terminate it a couple of times. But i can't reproduce this with ETL captured on. Any ohter way to log it?

cdjzzzz avatar Aug 12 '22 05:08 cdjzzzz

If you can try:

  • Modify PresentData\Debug.hpp to set "#define DEBUG_VERBOSE 1" (https://github.com/GameTechDev/PresentMon/blob/main/PresentData/Debug.hpp#L6)
  • Rebuild PresentMon
  • Run "PresentMon...exe -no_top > log.txt"
  • Ctrl+c after some time (long enough to include the problem but not too long that log.txt is too large)
  • Double check all presents were indeed lost, and that log.txt has data -- ideally should several"p###" presents created and have instances of "IsLost=false->true"

If that works and still has the problem, if you can forward the log.txt and also an ETL captured from the PC that is working, then I can try to figure out what might be missing and why.