Drop-down menus and options missing from some stimuli and reactions

Bug #1047466 reported by Luigi Pezzotta
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Cuttlefish
Triaged
High
Unassigned

Bug Description

Hello,
for some reason a few stimuli and reactions don't show their necessary drop-down menus or other options; most do, however.

The following stimuli don't show a drop-down menu or other options:
- application starts/stops
- bluetooth device connects/disconnects

The following stimuli show all needed options:
- at time of day
- usb device plugged in/unplugger
- power cable plugged in/unplugged (only shows "Also check up on startup", but I don't think it should have any more options)
- connect to/disconnect from WLAN
- wake up

The following reactions don't show a drop-down menu or other options:
- start/stop application
- activate/deactivate reflex

The following reactions show all needed options:
- start application (advanced mode)
- change volume
- change default printer
- change desktop background
- wait
- change proxy mode
- change pidgin status
- hello world writer

The stimuli and reactions I haven't listed don't show any option, however I think they don't need any. If they should, they aren't working as well.

I've tested only a reflex with "usb device plugged in" with "start application (advanced mode)", and the application works well in this case. Both the stimulus and the reaction show needed options.

I have included a screenshot in which I've selected the "application starts" stimulus, showing that there is no option. Other non-working stimuli/reactions are basically the same.

Thanks in advance!

Revision history for this message
Luigi Pezzotta (sunshadow86) wrote :
description: updated
Revision history for this message
Alex (noneed4anick) wrote :

Hey Luigi,

that sounds strange. Can you check in the preferences, if the logging is enabled? If not, enable it. Afterwards try again to configure those actions and events that won't work and review the content of /tmp/cuttlefish.log
If that file lists any errors, please provide the file here.

Thanks for your help :-)

Changed in cuttlefish:
status: New → Incomplete
Revision history for this message
Luigi Pezzotta (sunshadow86) wrote :

Hello again,
I've attached the log file. It gives a few different errors.

Thanks!

Revision history for this message
Alex (noneed4anick) wrote :

Hi Luigi,

thanks for your fast reaction. As far as I can tell, there are three different error types. Sadly I can not work on cuttlefish this weekend, but I'll review and work on the bugs on monday hopefully.

I'll keep you up to date :-)

Changed in cuttlefish:
importance: Undecided → High
status: Incomplete → Confirmed
status: Confirmed → Triaged
Revision history for this message
Sober (linux-return-zero) wrote :

Hy Alex,
same here: no applications available when selecting "Applications starts / stops", Log attached.

Revision history for this message
Luigi Pezzotta (sunshadow86) wrote :

Hi,
I just want to add that the problem is still there on Quantal 64bit. I upgraded from Precise with Cuttlefish already installed.
Also, the problem does not appear on my netbook, on which I still have Precise (32bit in this case).

Revision history for this message
Heath Paddock (heathbar) wrote :

I am no python wizard, but I noticed this entry frequently showing up in the log:

ERROR in cuttlefish.engine.Engine: local variable 'icon' referenced before assignment
Traceback (most recent call last):
  File "/opt/extras.ubuntu.com/cuttlefish/cuttlefish/CuttlefishWindow.py", line 224, in on_tvActions_cursor_changed
    self._actionUI.setup(self._editAction)
  File "/opt/extras.ubuntu.com/cuttlefish/cuttlefish/ui.py", line 106, in setup
    self._elements = self._editor.begin()
  File "/opt/extras.ubuntu.com/cuttlefish/cuttlefish/plugins/run.py", line 111, in begin
    'name': SelectAppParam('Application')
  File "/opt/extras.ubuntu.com/cuttlefish/cuttlefish/params.py", line 231, in __init__
    self._list_entries(t.get_root_directory())
  File "/opt/extras.ubuntu.com/cuttlefish/cuttlefish/params.py", line 258, in _list_entries
    self._list_entries(iter.get_directory())
  File "/opt/extras.ubuntu.com/cuttlefish/cuttlefish/params.py", line 256, in _list_entries
    self._model.append([appinfo.get_executable(), icon, appinfo.get_name()])
UnboundLocalError: local variable 'icon' referenced before assignment

So I edited /opt/extras.ubuntu.com/cuttlefish/cuttlefish/params.py.
After line 239 (i = appinfo.get_icon()) and before line 240 (try:) I added:

icon = self._theme.load_icon('application-x-executable', self._size, Gtk.IconLookupFlags.USE_BUILTIN)

Now it works.

Revision history for this message
Luigi Pezzotta (sunshadow86) wrote :

Thanks for your workaround! It works for me as well!

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.