Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QT GUI Inspector Sink causes the GRC UI to freeze/crash #47

Open
paul-k-young opened this issue Jan 13, 2023 · 2 comments
Open

QT GUI Inspector Sink causes the GRC UI to freeze/crash #47

paul-k-young opened this issue Jan 13, 2023 · 2 comments

Comments

@paul-k-young
Copy link

Adding the QT GUI Inspector Sink to a flowgraph (even an empty one) causes the following messages to be repeated, and for the UI to lock up then crash. The full details can be found in this bug: gnuradio/gnuradio#6452

Traceback (most recent call last):
File "C:\Users\paulk\radioconda\lib\site-packages\gnuradio\grc\gui\DrawingArea.py", line 223, in draw
self._flow_graph.draw(cr)
File "C:\Users\paulk\radioconda\lib\site-packages\gnuradio\grc\gui\canvas\flowgraph.py", line 535, in draw
draw_element(cr)
File "C:\Users\paulk\radioconda\lib\site-packages\gnuradio\grc\gui\canvas\block.py", line 280, in draw
port.draw(cr)
File "C:\Users\paulk\radioconda\lib\site-packages\gnuradio\grc\gui\canvas\port.py", line 134, in draw
cr.rectangle(*self._area)
TypeError: Context.rectangle() takes exactly 4 arguments (0 given)

I was able to reproduce this behavior on a Windows radioconda install. The behavior was observed even after a full upgrade (conda update --all). None of the core QT GUI components had this issue, so I'm adding a bug here.

@paul-k-young
Copy link
Author

3.10.5.0 has a slightly different error message (DrawingArea.py has the error on line 222)

File "C:\Users\paulk\radioconda\lib\site-packages\gnuradio\grc\gui\DrawingArea.py", line 222, in draw
self._flow_graph.draw(cr)
File "C:\Users\paulk\radioconda\lib\site-packages\gnuradio\grc\gui\canvas\flowgraph.py", line 535, in draw
draw_element(cr)
File "C:\Users\paulk\radioconda\lib\site-packages\gnuradio\grc\gui\canvas\block.py", line 280, in draw
port.draw(cr)
File "C:\Users\paulk\radioconda\lib\site-packages\gnuradio\grc\gui\canvas\port.py", line 134, in draw
cr.rectangle(*self._area)
TypeError: Context.rectangle() takes exactly 4 arguments (0 given)

@paul-k-young
Copy link
Author

Update - the GRC code wasn't gracefully handling some canvas params that were being passed as ints (it only worked for strings). I'm not sure whether that's an issue with the block or with grc, although I have a PR for grc pending.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant