From: Tzvetomir (VMware) Stoyanov <tz.stoyanov@xxxxxxxxx> Added a check if there is a host-guest mapping in the loaded multiple streams. If there is no such mapping, print an error and exit the KsComboPlotDialog::update() function. Signed-off-by: Tzvetomir (VMware) Stoyanov <tz.stoyanov@xxxxxxxxx> --- src/plugins/KVMCombo.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/plugins/KVMCombo.cpp b/src/plugins/KVMCombo.cpp index ceb1f47..3ec36b6 100644 --- a/src/plugins/KVMCombo.cpp +++ b/src/plugins/KVMCombo.cpp @@ -246,7 +246,12 @@ void KsComboPlotDialog::update() _guestMap = nullptr; _guestMapCount = 0; ret = kshark_tracecmd_get_hostguest_mapping(&_guestMap); - if (ret > 0) + if (ret <= 0) { + QString err("Cannot find host / guest tracing into the loaded streams"); + QMessageBox msgBox; + msgBox.critical(nullptr, "Error", err); + return; + } else _guestMapCount = ret; KsUtils::setElidedText(&_hostFileLabel, -- 2.26.2