gnuradio-companion, grc, crashes on launch

Bug #783685 reported by Roger E Critchlow Jr
34
This bug affects 5 people
Affects Status Importance Assigned to Milestone
gnuradio (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: gnuradio

grc on lucid works fine, on natty launch results in the following traceback:
----------------------------------
rec@elf11:~/Projects/arftcl/gnuradio$ grc
<<< Welcome to GNU Radio Companion 3.2.2 >>>
Error: 'options'
>>> Failue
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/MainWindow.py", line 174, in new_page
    flow_graph = self._platform.get_new_flow_graph()
  File "/usr/lib/python2.7/dist-packages/gnuradio/grc/base/Platform.py", line 149, in get_new_flow_graph
    def get_new_flow_graph(self): return self.FlowGraph(self)
  File "<string>", line 4, in __init__
  File "/usr/lib/python2.7/dist-packages/gnuradio/grc/base/FlowGraph.py", line 37, in __init__
    self.import_data()
  File "/usr/lib/python2.7/dist-packages/gnuradio/grc/base/FlowGraph.py", line 192, in import_data
    self._options_block = self.get_parent().get_new_block(self, 'options')
  File "/usr/lib/python2.7/dist-packages/gnuradio/grc/base/Platform.py", line 159, in get_new_block
    def get_new_block(self, flow_graph, key): return self.Block(flow_graph, n=self._blocks_n[key])
  File "/usr/lib/python2.7/dist-packages/gnuradio/grc/base/odict.py", line 34, in __getitem__
    return self._data[key]
KeyError: 'options'
Error: 'options'
>>> Failue
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/MainWindow.py", line 174, in new_page
    flow_graph = self._platform.get_new_flow_graph()
  File "/usr/lib/python2.7/dist-packages/gnuradio/grc/base/Platform.py", line 149, in get_new_flow_graph
    def get_new_flow_graph(self): return self.FlowGraph(self)
  File "<string>", line 4, in __init__
  File "/usr/lib/python2.7/dist-packages/gnuradio/grc/base/FlowGraph.py", line 37, in __init__
    self.import_data()
  File "/usr/lib/python2.7/dist-packages/gnuradio/grc/base/FlowGraph.py", line 192, in import_data
    self._options_block = self.get_parent().get_new_block(self, 'options')
  File "/usr/lib/python2.7/dist-packages/gnuradio/grc/base/Platform.py", line 159, in get_new_block
    def get_new_block(self, flow_graph, key): return self.Block(flow_graph, n=self._blocks_n[key])
  File "/usr/lib/python2.7/dist-packages/gnuradio/grc/base/odict.py", line 34, in __getitem__
    return self._data[key]
KeyError: 'options'
Traceback (most recent call last):
  File "/usr/bin/grc", line 53, in <module>
    ActionHandler(args, Platform())
  File "/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/ActionHandler.py", line 70, in __init__
    self.handle_states(Actions.APPLICATION_INITIALIZE)
  File "/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/ActionHandler.py", line 332, in handle_states
    Actions.get_action_from_name(Actions.ELEMENT_DELETE).set_sensitive(bool(self.get_flow_graph().get_selected_elements()))
  File "/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/MainWindow.py", line 281, in get_flow_graph
    return self.get_page().get_flow_graph()
AttributeError: 'NoneType' object has no attribute 'get_flow_graph'
------------------------------
rec@elf11:~/Projects/arftcl/gnuradio$ lsb_release -rd
Description: Ubuntu 11.04
Release: 11.04
rec@elf11:~/Projects/arftcl/gnuradio$ apt-cache policy gnuradio-companion
gnuradio-companion:
  Installed: 3.2.2.dfsg-1ubuntu6
  Candidate: 3.2.2.dfsg-1ubuntu6
  Version table:
 *** 3.2.2.dfsg-1ubuntu6 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty/universe amd64 Packages
        100 /var/lib/dpkg/status

Tags: natty oneiric
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

I get the same error message when attempting to run grc on Ubuntu Oneiric.

Changed in gnuradio (Ubuntu):
status: New → Confirmed
tags: added: natty oneiric
Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

This seems to be an old bug with the preferences loading in GRC:
http://www.ruby-forum.com/topic/190977

Temporary workaround (works in Natty):
touch ~/.gnuradio/config.conf
cat /etc/gnuradio/conf.d/grc.conf >> ~/.gnuradio/config.conf

Revision history for this message
Noman Akbar (noman-akbar486) wrote :

i am getting the same error.....how can i fix it?

Revision history for this message
John Brooks (frogging101) wrote :

I can confirm that this bug exists, and the above fix mentioned by azimout works in Oneiric.

Revision history for this message
Adam (i450006) wrote :

I confirm the same problem!

but the solution from Noman (#3) worked for me, thanks!

Revision history for this message
Vernon Bostian (dalebostian) wrote :

New instalation of GNU radio. The instalation was confirmed. Pushing the icon causes it to flash but the app doesent start. Ubuntu 18.10 newest gnuradio package.

Changed in gnuradio (Ubuntu):
status: Confirmed → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.