Segfault when starting gNB with USRPb210
Hello, referring to issue #696 (closed), I have followed the steps to run the qtscope on RFSIMULATOR on a machine with Ubuntu 22:
sudo apt-get install libqt5charts5-dev
cd ~/openairinterface5g/cmake_targets/
./build_oai --build-lib nrqtscope --ninja
cd ran_build/build/
cmake -DENABLE_NRQTSCOPE=ON ../../../ && ninja nrqtscope
sudo apt-get install qtwayland5
sudo apt-get remove qt5-gtk-platformtheme
sudo -E QT_QPA_PLATFORM=wayland ./nr-softmodem --rfsim --sa -O ~/openairinterface5g/targets/PROJECTS/GENERIC-NR-5GC/CONF/gnb.sa.band78.fr1.106PRB.usrpb210.conf --dqt
I can confirm that qtscope is working on RFSIMULATOR(I have attached a screenshot of that).
Hint there is an issue with share screening of slack which requires to change the settings of wayland, the issue is explained in this link:
If you have changed the setting based on the provided link, you will not be able to see the scope on RFSIMULATOR.
I tried the same scenario with USRP210 instead of RFSIMULATOR, and I cannot see the scope and gNB stops via segmentation fault . Here is the tail of the log.
WARNING: QApplication was not created in the main() thread.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QStandardPaths: runtime directory '/run/user/1000' is not owned by UID 0, but a directory permissions 0700 owned by UID 1000 GID 1000
QSocketNotifier: Can only be used with threads started with QThread
QStandardPaths: runtime directory '/run/user/1000' is not owned by UID 0, but a directory permissions 0700 owned by UID 1000 GID 1000
[1] 79006 segmentation fault sudo -E QT_QPA_PLATFORM=wayland ./nr-softmodem --sa -O --dqt -E
I followed the solution provided in the following link for this problem,
https://gitlab.eurecom.fr/oai/openairinterface5g/-/tree/develop/openair1/PHY/TOOLS?ref_type=heads
But still the issue is there and I cannot see the nrqtscope. I tried different combination of the commands but it is the same.
Case 1:
Command:
sudo -E QT_QPA_PLATFORM=wayland ./nr-softmodem --sa -O ~/openairinterface5g/targets/PROJECTS/GENERIC-NR-5GC/CONF/gnb.sa.band78.fr1.106PRB.usrpb210.conf --dqt -E
Output:
sleep...
sleep...
sleep...
sleep...
sleep...
sleep...
sleep...
sleep...
sleep...
[PHY] Command line parameters for the UE: -C 3619200000 -r 106 --numerology 1 --ssb 516
[NR_MAC] Frame.Slot 384.0
WARNING: QApplication was not created in the main() thread.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QStandardPaths: runtime directory '/run/user/1000' is not owned by UID 0, but a directory permissions 0700 owned by UID 1000 GID 1000
QSocketNotifier: Can only be used with threads started with QThread
QStandardPaths: runtime directory '/run/user/1000' is not owned by UID 0, but a directory permissions 0700 owned by UID 1000 GID 1000
[1] 94609 segmentation fault sudo -E QT_QPA_PLATFORM=wayland ./nr-softmodem --sa -O --dqt -E
**Case 2: **
Command:
sudo -E QT_QPA_PLATFORM=wayland -E XDG_RUNTIME_DIR=/run/user/0 ./nr-softmodem --sa -O ~/openairinterface5g/targets/PROJECTS/GENERIC-NR-5GC/CONF/gnb.sa.band78.fr1.106PRB.usrpb210.conf --dqt -E
Output:
sleep...
sleep...
sleep...
sleep...
sleep...
sleep...
sleep...
sleep...
sleep...
[PHY] Command line parameters for the UE: -C 3619200000 -r 106 --numerology 1 --ssb 516
[NR_MAC] Frame.Slot 384.0
WARNING: QApplication was not created in the main() thread.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
[1] 98395 IOT instruction sudo -E QT_QPA_PLATFORM=wayland -E XDG_RUNTIME_DIR=/run/user/0 ./nr-softmodem
**Case 3: **
Command:
sudo -E QT_QPA_PLATFORM=wayland XDG_RUNTIME_DIR=/run/user/0 ./nr-softmodem --sa -O ~/openairinterface5g/targets/PROJECTS/GENERIC-NR-5GC/CONF/gnb.sa.band78.fr1.106PRB.usrpb210.conf --dqt -E
Output:
sleep...
sleep...
sleep...
sleep...
sleep...
sleep...
sleep...
sleep...
sleep...
[PHY] Command line parameters for the UE: -C 3619200000 -r 106 --numerology 1 --ssb 516
[NR_MAC] Frame.Slot 384.0
WARNING: QApplication was not created in the main() thread.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
[1] 101299 IOT instruction sudo -E QT_QPA_PLATFORM=wayland XDG_RUNTIME_DIR=/run/user/0 ./nr-softmodem
**Case 4: **
Command:
sudo -E XDG_RUNTIME_DIR=/run/user/0 QT_QPA_PLATFORM=wayland./nr-softmodem --sa -O ~/openairinterface5g/targets/PROJECTS/GENERIC-NR-5GC/CONF/gnb.sa.band78.fr1.106PRB.usrpb210.conf --dqt -E
Output:
sleep...
sleep...
sleep...
sleep...
sleep...
sleep...
sleep...
sleep...
sleep...
[PHY] Command line parameters for the UE: -C 3619200000 -r 106 --numerology 1 --ssb 516
[NR_MAC] Frame.Slot 384.0
WARNING: QApplication was not created in the main() thread.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
[1] 101299 IOT instruction sudo -E QT_QPA_PLATFORM=wayland XDG_RUNTIME_DIR=/run/user/0 ./nr-softmodem -
Did anyone else had the same issue?
Best Regards,
Arash