Tweak the phrasing of crash dialog to better explain what happened

* In particular make it clear that crashes caught in the injected program may or
  may not be a RenderDoc bug. Even if we could point the finger to a particular
  DLL we can't necessarily tie that DLL to the responsibility of either us or
  the application.
This commit is contained in:
baldurk
2019-09-17 11:43:01 +01:00
parent 6cee53a36d
commit 3005172aa5
2 changed files with 30 additions and 4 deletions
+29 -4
View File
@@ -49,7 +49,9 @@ CrashDialog::CrashDialog(PersistantConfig &cfg, QVariantMap crashReportJSON, QWi
m_ReportPath = crashReportJSON[lit("report")].toString();
m_ReportMetadata = crashReportJSON;
bool replayCrash = crashReportJSON[lit("replaycrash")].toUInt() != 0;
const bool replayCrash = crashReportJSON[lit("replaycrash")].toUInt() != 0;
const bool manualReport =
crashReportJSON.contains(lit("manual")) && crashReportJSON[lit("manual")].toUInt() != 0;
// remove metadata we don't send directly
m_ReportMetadata.remove(lit("report"));
@@ -119,9 +121,32 @@ CrashDialog::CrashDialog(PersistantConfig &cfg, QVariantMap crashReportJSON, QWi
ui->capturePreviewFrame->hide();
}
QString text =
tr("<p>RenderDoc encountered a serious problem. Please take a moment to look over this "
"form and send it off so that RenderDoc can get better!</p>");
QString text;
if(manualReport)
{
text =
tr("<p>Thank you for reporting a problem! Please take a moment to look over this "
"form to check what is being sent.</p>");
}
else if(replayCrash)
{
text =
tr("<p>RenderDoc encountered a serious problem. Please take a moment to look over this "
"form to check what has been gathered then send it off so that RenderDoc can get "
"better!</p>");
}
else
{
text =
tr("<p>A crash happened while RenderDoc was injected into your application. It's not "
"feasible to tell whether the crash was in your application or in RenderDoc's capturing "
"code. The minidump <a href=\"%1\">in the zip</a> might show the problem.</p>"
"<p>If you don't think your application crashed on its own please take a moment to "
"look over this form to check what has been gathered then send it off so that RenderDoc "
"can get better!</p>")
.arg(QUrl::fromLocalFile(m_ReportPath).toString());
}
if(m_Config.CheckUpdate_UpdateAvailable)
{
+1
View File
@@ -2701,6 +2701,7 @@ void MainWindow::on_action_Send_Error_Report_triggered()
json[lit("version")] = lit(FULL_VERSION_STRING);
json[lit("gitcommit")] = QString::fromLatin1(RENDERDOC_GetCommitHash());
json[lit("replaycrash")] = 1;
json[lit("manual")] = 1;
json[lit("report")] = (QString)report;
CrashDialog crash(m_Ctx.Config(), json, this);