Re: Cannot resize GRC window panels

2023-02-15 Thread Ryan Volz

Hi,

And now the conclusion to this riveting saga...

Further investigation has revealed that the problem is that the drag 
indicator icons were not being found with the conda xorg-libxcursor 
package installed. You can still actually click and drag to resize the 
panel boundaries, there's just no visual indication. This happens 
because installing that package causes X11 to look for cursors in the 
conda prefix but not the system prefix, and unless you're using the 
Adwaita theme it won't find them.


You can set the XCURSOR_PATH environment variable to point to your 
system cursor installation (probably /usr/share/icons) to get things 
working properly again:


export XCURSOR_PATH=/usr/share/icons:/usr/share/pixmaps
gnuradio-companion

I also have a fix to the xorg-libxcursor package so that it will fall 
back to the system directories when looking for cursors. That should be 
rolled out soon so that the environment variable workaround is not 
necessary after an upgrade.


Cheers,
Ryan

On 2/15/23 3:02 PM, Ryan Volz wrote:

Hi all,

I have found the package that is the culprit: xorg-libxcursor. This is 
newly pulled in with the latest radioconda release because gr-fosphor -> 
glfw3 -> xorg-libxcursor.


So if you don't need gr-fosphor, you can `mamba uninstall 
xorg-libxcursor` as a temporary workaround.


It shouldn't be strictly needed anyway since things will fall back on 
using the Xorg libraries from outside of conda, but for some reason it 
is a requirement of the glfw3 package. Now I'll have to investigate 
either fixing xorg-libxcursor or removing that dependency.


Cheers,
Ryan

On 2/13/23 6:51 PM, Jeff Long wrote:
On Fedora 37, it seems to work fine on the host and in radioconda, 
both using 3.24.36.


On Mon, Feb 13, 2023 at 5:01 PM Ryan Volz > wrote:


    Hi Ville,

    I can confirm that I experience the same thing using conda. If I 
had to

    guess, it might be a change/bug with newer versions of GTK 3? That's
    the
    main relevant thing that could be different between using GRC through
    conda and distribution packages. The latest radioconda is using
    gtk3=3.24.36, but I see the same with 3.24.35 and 3.24.34. My Ubuntu
    has
    gtk 3.24.33, so maybe something did change between 3.24.33 and 
3.24.34?

    More investigation is needed.

    Cheers,
    Ryan

    On 2/13/23 1:55 PM, Ville Eerola wrote:
 > Hi,
 >
 > I have a fresh install of GNU Radio (3.10.5.1) on a Ubuntu 22.04.
    The
 > problem is that I cannot resize the panels in GRC in that For
    example, I
 > cannot make the console panel larger/smaller. In a previous
 > installation, in a different machine, it works OK. When I hover 
the

 > mouse cursor on top of the panel boundaries, the cursor turns to a
 > double arrow, and it is possible to move the dividing edge to
    resize the
 > panels.
 >
 > Other software (e.g. gedit) allows me to resize the panels just
    fine in
 > this new computer.
 >
 > Failing setup:
 > Machine: Intel NUC PC (NUC 11PAHi7 Core i7)
 > OS: Fresh install of Ubuntu 22.04.1 LTS (with all updates 
installed)

 > GNU Radio version: 3.10.5.1, installed via Radioconda (today)
 >
 > The other machine (which works OK) has
 > Machine: Intel i9-10900K, nVidia RTX 2070 SUPER
 > OS: Ubuntu 22.04.1 LTS
 > GNU Radio version: 3.10.5.1 (Installed via Ubuntu package)
 >
 > I have tried to look for information about this issue without
    luck, but
 > maybe I didn't guess the right search terms.
 >
 > Regards, Ville
 >
 > --
 > Ville Eerola
 > ville.eer...@iki.fi 
 > 050-4804435
 >





Re: Issue with UHD and GNUradio

2023-02-15 Thread Marcus Müller

Hi James,


as I just commented somewhere on the internet [1] (was that you? Hi :) !), unless you 
really have a reason to use more modern version of UHD, you would use an image that fits 
the UHD host side, and not the other way around.



Assuming you do have a specific need for a specific version of UHD: So, you need to have a 
GNU Radio that was *build* against the right version of UHD. You can't "change GNU Radio" 
after it's been built to work with an incompatible version of UHD!



Sadly, you did not mention how you installed your UHD and your GNU Radio – a bit hard to 
help you like that! But, as a rule of thumb: If you're already in the process of changing 
parts of your software infrastructure, it's a good point in time to update your Ubuntu to 
at least 22.04 LTS.



Which version of UHD do you need? How did you install that version?


Best regards,
Marcus


[1] 
https://stackoverflow.com/questions/75466147/install-gnuradio-to-use-local-version-of-uhd#comment133152282_75466147


On 16.02.23 00:13, Jones, James (jtjones49) wrote:

Hello, I need to use the latest version of UHD to work with my USRP image. The version 
that comes with GNUradio will not work as it is not updated. I have the latest version 
of UHD installed on my computer, but when installing GNUradio it installs and uses the 
outdated and incompatible version of UHD. How can I change GNUradio to use the version 
of UHD installed on my computer? I am running Ubuntu 20 and was originally following the 
instructions sent by Ettus Research attached to this email.


If you need any more information, please ask and thank you.


Re: Issue with UHD and GNUradio

2023-02-15 Thread Marcus D. Leech

On 15/02/2023 18:13, Jones, James (jtjones49) wrote:
Hello, I need to use the latest version of UHD to work with my USRP 
image. The version that comes with GNUradio will not work as it is not 
updated. I have the latest version of UHD installed on my computer, 
but when installing GNUradio it installs and uses the outdated and 
incompatible version of UHD. How can I change GNUradio to use the 
version of UHD installed on my computer? I am running Ubuntu 20 and 
was originally following the instructions sent by Ettus Research 
attached to this email.


If you need any more information, please ask and thank you.


I'll note that Ubuntu 22.04 has more-recent versions of both GR and UHD:

GR  3.10.1.1
UHD 4.1.0.5-3

You didn't mention which USRP you have -- for some of them, there 
haven't been any meaningful updates in at least

  a couple or three years.   So older UHD will be just fine.



Re: Issue with UHD and GNUradio

2023-02-15 Thread Marcus Müller

Hi James,


as I just commented somewhere on the internet [1] (was that you? Hi :) !), unless you 
really have a reason to use more modern version of UHD, you would use an image that fits 
the UHD host side, and not the other way around.



Assuming you do have a specific need for a specific version of UHD: So, you need to have a 
GNU Radio that was *build* against the right version of UHD. You can't "change GNU Radio" 
after it's been built to work with an incompatible version of UHD!



Sadly, you did not mention how you installed your UHD and your GNU Radio – a bit hard to 
help you like that! But, as a rule of thumb: If you're already in the process of changing 
parts of your software infrastructure, it's a good point in time to update your Ubuntu to 
at least 22.04 LTS.



Which version of UHD do you need? How did you install that version?


Best regards,
Marcus


[1] 
https://stackoverflow.com/questions/75466147/install-gnuradio-to-use-local-version-of-uhd#comment133152282_75466147


On 16.02.23 00:13, Jones, James (jtjones49) wrote:

Hello, I need to use the latest version of UHD to work with my USRP image. The version 
that comes with GNUradio will not work as it is not updated. I have the latest version 
of UHD installed on my computer, but when installing GNUradio it installs and uses the 
outdated and incompatible version of UHD. How can I change GNUradio to use the version 
of UHD installed on my computer? I am running Ubuntu 20 and was originally following the 
instructions sent by Ettus Research attached to this email.


If you need any more information, please ask and thank you.


Re: MPSK SNR Estimator Probe

2023-02-15 Thread Marcus Müller

Hi Symon,

As explained in our FAQ[1], you need to have a source of known power and observe it. Then 
you can put your observation of signals of interest into relation to that.


In this case, you'd need a reference transmitter for PSK of known power at your receiver 
input.


Best regards,
Marcus

[1] 
https://wiki.gnuradio.org/index.php/FAQ#How_do_I_know_the_exact_voltage/power_of_my_received_input_signal?



On 14.02.23 10:28, Szymon Kowalewski wrote:

Hi all,

I have a problem when trying to measure noise/signal power. I have been trying to use 
the SNR Estimator probe. The documentation states that "Some calibration is required to 
convert dBx of the signal and noise power estimates to real measurements, such as dBm.". 
What type of calibration is needed and what is actually measured by this block (what is 
dBx)?


Kr,
Szymon




Issue with UHD and GNUradio

2023-02-15 Thread Jones, James (jtjones49)
Hello, I need to use the latest version of UHD to work with my USRP image. The 
version that comes with GNUradio will not work as it is not updated. I have the 
latest version of UHD installed on my computer, but when installing GNUradio it 
installs and uses the outdated and incompatible version of UHD. How can I 
change GNUradio to use the version of UHD installed on my computer? I am 
running Ubuntu 20 and was originally following the instructions sent by Ettus 
Research attached to this email.

If you need any more information, please ask and thank you.

# Instructions for installing Volk + UHD + GNU Radio on Ubuntu 20.04
#

cd
mkdir -p Software/Sources
cd Software/Sources

#
# VOLK

sudo apt install git cmake g++ python3-dev liborc-0.4-dev liborc-0.4-0
git clone --recursive https://github.com/gnuradio/volk.git
pushd volk
git checkout v2.5.1
mkdir build
cd build
cmake ..
make
make test
sudo make install
sudo ldconfig
popd
# verify that this VOLK is working
# this takes a while ...
volk_profile

#
# UHD
# https://files.ettus.com/manual/page_build_guide.html#build_dependencies_ubuntu

sudo apt install git cmake autoconf automake build-essential ccache 
cpufrequtils doxygen ethtool g++ inetutils-tools libboost-all-dev libncurses5 
libncurses5-dev libusb-1.0-0 libusb-1.0-0-dev libusb-dev python3-dev 
python3-mako python3-numpy python3-requests python3-scipy python3-setuptools 
python3-ruamel.yaml 
git clone https://github.com/EttusResearch/uhd.git
pushd uhd
git checkout v4.2.0.1
mkdir build
cd build
cmake -DUHD_PYTHON_DIR=lib/python3.8/dist-packages 
-DUSRP_MPM_PYTHON_DIR=lib/python3.8/dist-packages ../host
make
make test
sudo make install
sudo ldconfig
popd
# verify that this UHD is working
uhd_config_info --print-all

#
# GNU Radio
# 
https://wiki.gnuradio.org/index.php?title=UbuntuInstall#Focal_Fossa_.2820.04.29_through_Impish_Indri_.2821.10.29

sudo apt install git cmake g++ libboost-all-dev libgmp-dev swig python3-numpy 
python3-mako python3-sphinx python3-lxml doxygen libfftw3-dev libsdl1.2-dev 
libgsl-dev libqwt-qt5-dev libqt5opengl5-dev python3-pyqt5 liblog4cpp5-dev 
libzmq3-dev python3-yaml python3-click python3-click-plugins python3-zmq 
python3-scipy python3-gi python3-gi-cairo gir1.2-gtk-3.0 libcodec2-dev 
libgsm1-dev pybind11-dev python3-matplotlib libsndfile1-dev python3-pip 
libsoapysdr-dev soapysdr-tools libiio-dev libad9361-dev libspdlog-dev 
python3-packaging python3-jsonschema
sudo pip3 install pygccxml pyqtgraph
git clone https://github.com/gnuradio/gnuradio.git
cd gnuradio
git checkout v3.10.3.0
mkdir build
cd build
cmake ..
make
make test
sudo make install
sudo ldconfig
popd
# verify that this GNU Radio is working
gnuradio-config-info --print-all


double free or corruption error when two instances of an OOT block is called in GRC

2023-02-15 Thread Grace Yeung
Hi, I have a gnuradio out-of-tree block written in C++ that runs fine in 
grc 3.8.1.0. But when I have two of them running simultaneously in the 
flowgraph, grc crashes and gives me the error:


double free or corruption (!prev)

I am not using any free() functions. I use std::vector's in my code 
which should handle dynamic memory allocation automatically. What could 
be causing this error?


The only other place I see in the code that deals with pointers is the 
calling of "new" in the definition of the make function which returns an 
sptr:

  probeExtract::sptr
  probeExtract::make(const char* filtName, const char* maskName, 
int mlsrM, int numChan, int sampPerBit, int Tblock, int edgeBufferSize, 
int structureType)

  {
  return gnuradio::get_initial_sptr
  (new probeExtract_impl(filtName, maskName, mlsrM, numChan, 
sampPerBit, Tblock, edgeBufferSize, structureType));

  }
I suppose I do not need to worry about free'ing the pointer which is 
handled internally by python?


After putting in some debugging statements, I see variations of similar 
error such as:

corrupted size vs. prev_size while consolidating

Any advice would be greatly appreciated. Thank you.

Grace

--
Grace K. Yeung, MS
NorthWest Research Associates
301 Webster Street
Monterey, CA 93940
gr...@nwra.com
https://www.nwra.com



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Cannot resize GRC window panels

2023-02-15 Thread Ryan Volz

Hi all,

I have found the package that is the culprit: xorg-libxcursor. This is 
newly pulled in with the latest radioconda release because gr-fosphor -> 
glfw3 -> xorg-libxcursor.


So if you don't need gr-fosphor, you can `mamba uninstall 
xorg-libxcursor` as a temporary workaround.


It shouldn't be strictly needed anyway since things will fall back on 
using the Xorg libraries from outside of conda, but for some reason it 
is a requirement of the glfw3 package. Now I'll have to investigate 
either fixing xorg-libxcursor or removing that dependency.


Cheers,
Ryan

On 2/13/23 6:51 PM, Jeff Long wrote:
On Fedora 37, it seems to work fine on the host and in radioconda, both 
using 3.24.36.


On Mon, Feb 13, 2023 at 5:01 PM Ryan Volz > wrote:


Hi Ville,

I can confirm that I experience the same thing using conda. If I had to
guess, it might be a change/bug with newer versions of GTK 3? That's
the
main relevant thing that could be different between using GRC through
conda and distribution packages. The latest radioconda is using
gtk3=3.24.36, but I see the same with 3.24.35 and 3.24.34. My Ubuntu
has
gtk 3.24.33, so maybe something did change between 3.24.33 and 3.24.34?
More investigation is needed.

Cheers,
Ryan

On 2/13/23 1:55 PM, Ville Eerola wrote:
 > Hi,
 >
 > I have a fresh install of GNU Radio (3.10.5.1) on a Ubuntu 22.04.
The
 > problem is that I cannot resize the panels in GRC in that For
example, I
 > cannot make the console panel larger/smaller. In a previous
 > installation, in a different machine, it works OK. When I hover the
 > mouse cursor on top of the panel boundaries, the cursor turns to a
 > double arrow, and it is possible to move the dividing edge to
resize the
 > panels.
 >
 > Other software (e.g. gedit) allows me to resize the panels just
fine in
 > this new computer.
 >
 > Failing setup:
 > Machine: Intel NUC PC (NUC 11PAHi7 Core i7)
 > OS: Fresh install of Ubuntu 22.04.1 LTS (with all updates installed)
 > GNU Radio version: 3.10.5.1, installed via Radioconda (today)
 >
 > The other machine (which works OK) has
 > Machine: Intel i9-10900K, nVidia RTX 2070 SUPER
 > OS: Ubuntu 22.04.1 LTS
 > GNU Radio version: 3.10.5.1 (Installed via Ubuntu package)
 >
 > I have tried to look for information about this issue without
luck, but
 > maybe I didn't guess the right search terms.
 >
 > Regards, Ville
 >
 > --
 > Ville Eerola
 > ville.eer...@iki.fi 
 > 050-4804435
 >