discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QT GUI Label error in v 3.10.1.1


From: Jeff Long
Subject: Re: QT GUI Label error in v 3.10.1.1
Date: Wed, 23 Nov 2022 08:28:12 -0500

This looks like something that was fixed quite a while ago in

 https://github.com/gnuradio/gnuradio/pull/3301

Tested on a recent GR, and this doesn't happen. Could you post the generated code?

On Tue, Nov 22, 2022 at 10:23 PM Jose Ruvalcaba <joruvalc@gmail.com> wrote:
Hello,

I've been noticing an issue popping out everytime I stop running my flowgraph and I was wondering if someone had some insight on it. I have a flowgraph where a signal source is connected to a probe signal block. This block is constantly updating values and are being displayed using the QT GUI Label block. However, after running my flowgraph for about 10 minutes I get the following error:

Executing: /usr/bin/python3 -u /home/spacerfvm/Documents/GNURadio_3.10_flowgraphs/func_probe_test.py


Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

Exception in thread Thread-1 (_amp_probe):

Traceback (most recent call last):

  File "/home/spacerfvm/Documents/GNURadio_3.10_flowgraphs/func_probe_test.py", line 150, in _amp_probe

    self.doc.add_next_tick_callback(functools.partial(self.set_amp,val))

  File "/usr/lib/python3/dist-packages/gnuradio/gr/hier_block2.py", line 88, in __getattr__

    return getattr(self._impl, name)

AttributeError: 'gnuradio.gr.gr_python.top_block_pb' object has no attribute 'doc'


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner

    self.run()

  File "/usr/lib/python3.10/threading.py", line 953, in run

    self._target(*self._args, **self._kwargs)

  File "/home/spacerfvm/Documents/GNURadio_3.10_flowgraphs/func_probe_test.py", line 152, in _amp_probe

    self.set_amp(val)

  File "/home/spacerfvm/Documents/GNURadio_3.10_flowgraphs/func_probe_test.py", line 182, in set_amp

    self.set_variable_qtgui_label_0(self.amp)

  File "/home/spacerfvm/Documents/GNURadio_3.10_flowgraphs/func_probe_test.py", line 189, in set_variable_qtgui_label_0

    Qt.QMetaObject.invokeMethod(self._variable_qtgui_label_0_label, "setText", Qt.Q_ARG("QString", str(self._variable_qtgui_label_0_formatter(self.variable_qtgui_label_0))))

RuntimeError: wrapped C/C++ object of type QLabel has been deleted



It seems that my issue is related to the QT GUI Label block because when I remove it and add say QT GUI Number sink, this issue doesn't appear.


Has anyone experienced this issue? If so, would anyone be able to steer me in the direction to fix it? I am currently running on Ubuntu 22.04 and am running GNU RADIO 3.10.1.1 which I installed using sudo apt-get install. I've also attached the flowgraph I am talking about.


Thanks,

Jose Ruvalcaba


reply via email to

[Prev in Thread] Current Thread [Next in Thread]