From 72220aa811087e8f4ee49639ff1798995d127ae5 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Tue, 19 Jul 2022 12:44:06 +0200 Subject: [PATCH] enb,phy: do not start start plots if LTE workers don't exist this was causing a segfault when the GUI was enabled in SA mode, i.e. without LTE cells we only support the GUI with LTE enabled. --- srsenb/src/phy/phy.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/srsenb/src/phy/phy.cc b/srsenb/src/phy/phy.cc index e211b157c..db0f75831 100644 --- a/srsenb/src/phy/phy.cc +++ b/srsenb/src/phy/phy.cc @@ -349,7 +349,9 @@ void phy::configure_mbsfn(srsran::sib2_mbms_t* sib2, srsran::sib13_t* sib13, con // Start GUI void phy::start_plot() { - lte_workers[0]->start_plot(); + if (lte_workers.get_nof_workers() > 0) { + lte_workers[0]->start_plot(); + } } int phy::init_nr(const phy_args_t& args, const phy_cfg_t& cfg, stack_interface_phy_nr& stack)