DumpGpu Open Empty

i use to DumpGpu command, try to open OpenGPUDumpViewer.bat. But Google Chrome show is empty. Google Chrome Console have json parse error GPUDumpViewer.html:13 Uncaught SyntaxError: Unexpected non-whitespace character after JSON at position 345 (line 13 column 2)
at JSON.parse ()
at GPUDumpViewer.html:209:27
at Array.forEach ()
at load_json_dict_sequence (GPUDumpViewer.html:200:8)
at init_page (GPUDumpViewer.html:5759:13)
at onload (GPUDumpViewer.html:6590:158)

I also encountered the same issue, and below is how I resolved it.
The cause was unreadable characters being recorded in Base/Passes.json, which was triggered by the Windows title string.
Since this information isn’t critical in the dump, I solved it by simply filtering out any characters other than ASCII when saving.

DumpGPU.cpp

bool DumpJsonToFile(const TSharedPtr& JsonObject, const FString& FileName, uint32 WriteFlags = FILEWRITE_None)
{
  FString OutputString;
  TSharedRef<TJsonWriter<TCHAR, TPrettyJsonPrintPolicy>> Writer = TJsonWriterFactory<TCHAR, TPrettyJsonPrintPolicy>::Create(&OutputString);
  FJsonSerializer::Serialize(JsonObject.ToSharedRef(), Writer);


  // fix begin : using only ASCII characters in JSON files to avoid encoding issues
  for (TCHAR& Char : OutputString)
  {
    Char = (Char >= 0 && Char <= 127) ? Char : '#';
  }
  // fix end

  return DumpStringToFile(OutputString, FileName, WriteFlags);
}