mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user