mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-13 01:57:07 -07:00
Merge pull request #4865 from Chocobo1/os_name
Shorten crash report on windows
This commit is contained in:
commit
56605cd0c3
5 changed files with 52 additions and 17 deletions
|
@ -259,9 +259,9 @@ const QString straceWin::getBacktrace()
|
|||
}
|
||||
}
|
||||
|
||||
logStream << "\n\nList of linked Modules:\n";
|
||||
EnumModulesContext modulesContext(hProcess, logStream);
|
||||
SymEnumerateModules64(hProcess, EnumModulesCB, (PVOID)&modulesContext);
|
||||
//logStream << "\n\nList of linked Modules:\n";
|
||||
//EnumModulesContext modulesContext(hProcess, logStream);
|
||||
//SymEnumerateModules64(hProcess, EnumModulesCB, (PVOID)&modulesContext);
|
||||
logStream << "```";
|
||||
return log;
|
||||
}
|
||||
|
|
|
@ -32,8 +32,7 @@
|
|||
|
||||
#include <QString>
|
||||
#include <QDialog>
|
||||
#include "boost/version.hpp"
|
||||
#include "libtorrent/version.hpp"
|
||||
#include "base/utils/misc.h"
|
||||
#include "ui_stacktrace_win_dlg.h"
|
||||
|
||||
class StraceDlg : public QDialog, private Ui::errorDialog
|
||||
|
@ -50,9 +49,6 @@ public:
|
|||
void setStacktraceString(const QString& trace)
|
||||
{
|
||||
// try to call Qt function as less as possible
|
||||
const int boostVerMajor = BOOST_VERSION / 100000;
|
||||
const int boostVerMinor = ((BOOST_VERSION / 100) % 1000);
|
||||
const int boostVerSubMin = BOOST_VERSION % 100;
|
||||
QString htmlStr = QString(
|
||||
"<p align=center><b><font size=7 color=red>"
|
||||
"qBittorrent has crashed"
|
||||
|
@ -65,15 +61,16 @@ public:
|
|||
"<br/><hr><br/>"
|
||||
"<p align=center><font size=4>"
|
||||
"qBittorrent version: " VERSION "<br/>"
|
||||
"Libtorrent version: " LIBTORRENT_VERSION "<br/>"
|
||||
"Libtorrent version: %1<br/>"
|
||||
"Qt version: " QT_VERSION_STR "<br/>"
|
||||
"Boost version: %1.%2.%3"
|
||||
"Boost version: %2<br/>"
|
||||
"OS version: %3"
|
||||
"</font></p><br/>"
|
||||
"<pre><code>%4</code></pre>"
|
||||
"<br/><hr><br/><br/>")
|
||||
.arg(boostVerMajor)
|
||||
.arg(boostVerMinor)
|
||||
.arg(boostVerSubMin)
|
||||
.arg(Utils::Misc::libtorrentVersionString())
|
||||
.arg(Utils::Misc::boostVersionString())
|
||||
.arg(Utils::Misc::osName())
|
||||
.arg(trace);
|
||||
|
||||
errorText->setHtml(htmlStr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue