I'm trying to integrate Crashpad with Qt, with some QML in my code.
Here the crash report is generated successfully without any issue.
CrashpadClient *client = initializeCrashpad();
if (!client) {
std::cout << "Crash not processed";
}
QApplication a(argc, argv);
//Here it generates a crash report
//but I don't need it here
std::cout << 3 / 0;
QQuickView* view = new QQuickView;
view->setSource(QUrl::fromLocalFile("InteractiveComboBox.qml"));
view->show();
a.exec();
But If I do make a crash happen after initializing Qml, it's not able to generate a report.
CrashpadClient *client = initializeCrashpad();
if (!client) {
std::cout << "Crash not processed";
}
QApplication a(argc, argv);
QQuickView* view = new QQuickView;
view->setSource(QUrl::fromLocalFile("InteractiveComboBox.qml"));
view->show();
//Here it doesn't generate a crash report
//and I need it here
std::cout << 3 / 0;
a.exec();
How do I make it generate a crash report after executing QML code?
Update : For a workaround on this, I reinitialized crashpad after view->show()