Clicking submenu items not working if the submenu has not been explicitly clicked

Bug #1318263 reported by MrPendulum
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Variety
Confirmed
Low
Unassigned

Bug Description

As of a fresh install of Ubuntu 14.04 64 bit, the options in the playback menu (or at least "Previous" and "Next") do not seem to work. Just updated to Variety 0.4.18, problem is still present.

Expected action: to advance to the next wallpaper, or roll back to the previous
Result: No change in wallpaper whatsoever.

Wallpaper does change on startup. And after the specified time period (currently 30 minutes).

Only image source enabled is a local folder of images, every other source is disabled.

I'm not seeing anything obvious in the attached log file. After starting verbose logging, I tried "Next" twice, followed by "Previous" twice.

Revision history for this message
MrPendulum (mrpendulum) wrote :
Revision history for this message
MrPendulum (mrpendulum) wrote :

Issue still present on Variety 0.4.19

Revision history for this message
MrPendulum (mrpendulum) wrote :

I should mention, however, that wallpapers can be manually changes using the Wallpaper Selector. It's only the applet menu that doesn't progress or reverse.

Revision history for this message
Peter Levi (peterlevi) wrote :

Please enable just one local folder in Variety (e.g. /usr/share/backgounds), quit it, then run it with the option "-vvv" - this would increase the verbosity of the log, perform 4-5 attempts to call Next from the menu (now under Image instead of Playback) , set a wallpaper from the wallpaper selector 2-3 times (to see what is different there), then attempt to call Previous 2-3 times and then attach here the longer log file that was generated. Thanks.

Revision history for this message
Javier Antonio Nisa Avila (javiernisa) wrote :
Download full text (863.3 KiB)

usuario@usuario-Compaq-Mini-110c-1000:~$ /opt/extras.ubuntu.com/variety/bin/variety -vvv
DEBUG: 2014-07-16 22:55:36,714: logcall() 'VarietyWindow: __init__()'
DEBUG: 2014-07-16 22:55:36,719: logcall() 'VarietyWindow: start([u'-vvv'])'
DEBUG: 2014-07-16 22:55:36,722: logcall() 'VarietyWindow: prepare_config_folder()'
DEBUG: 2014-07-16 22:55:36,725: logcall() 'VarietyWindow: perform_upgrade()'
INFO: 2014-07-16 22:55:36,726: perform_upgrade() 'Last run version was 0.4.19 or earlier, current version is 0.4.19'
DEBUG: 2014-07-16 22:55:36,727: logcall() 'VarietyWindow: create_downloaders_cache()'
DEBUG: 2014-07-16 22:55:36,728: logcall() 'VarietyWindow: register_clipboard()'
DEBUG: 2014-07-16 22:55:36,731: logcall() 'VarietyWindow: process_command([u'-vvv'], {'initial_run': True})'
INFO: 2014-07-16 22:55:36,732: process_command() 'Received command: [u'-vvv']'
DEBUG: 2014-07-16 22:55:36,733: logcall() 'VarietyWindow: parse_options([u'-vvv'], {'report_errors': False})'
DEBUG: 2014-07-16 22:55:36,741: logcall() 'VarietyWindow: load_banned()'
INFO: 2014-07-16 22:55:36,742: load_banned() 'Missing or invalid banned URLs list, no URLs will be banned'
DEBUG: 2014-07-16 22:55:36,743: logcall() 'VarietyWindow: load_history()'
DEBUG: 2014-07-16 22:55:36,750: logcall() 'VarietyWindow: get_desktop_wallpaper()'
DEBUG: 2014-07-16 22:55:36,751: get_desktop_wallpaper() 'Running get_wallpaper script'
INFO: 2014-07-16 22:55:36,796: load() 'Jumble loading'
INFO: 2014-07-16 22:55:36,799: _walk_modules() 'Jumble loading module in __init__ from /opt/extras.ubuntu.com/variety/share/variety/plugins/__init__.py'
INFO: 2014-07-16 22:55:36,801: _walk_modules() 'Jumble loading module in QuotationsPageSource from /opt/extras.ubuntu.com/variety/share/variety/plugins/quotes/QuotationsPageSource.py'
INFO: 2014-07-16 22:55:36,851: load() 'Jumble found plugin class: <class 'QuotationsPageSource.QuotationsPageSource'>: {'author': 'Peter Levi', 'name': 'TheQuotationsPage.com', 'version': '0.1', 'description': u'Obtiene citas de TheQuotationsPage.com'}'
INFO: 2014-07-16 22:55:36,853: _walk_modules() 'Jumble loading module in LocalFilesSource from /opt/extras.ubuntu.com/variety/share/variety/plugins/quotes/LocalFilesSource.py'
INFO: 2014-07-16 22:55:36,855: load() 'Jumble found plugin class: <class 'LocalFilesSource.LocalFilesSource'>: {'author': 'Peter Levi', 'name': 'Local text files', 'version': '0.1', 'description': u'Muestra citas, definidas en archivos de texto locales.\nPonga sus propios archivos txt en: ~/.config/variety/pluginconfig/quotes/.\nEl formato del archivo es:\n\ncita -- autor\n.\nsegunda cita -- otro autor\n.\netc.\n\nEjemplo: http://rvelthuis.de/zips/quotes.txt'}'
INFO: 2014-07-16 22:55:36,857: _walk_modules() 'Jumble loading module in __init__ from /opt/extras.ubuntu.com/variety/share/variety/plugins/quotes/__init__.py'
INFO: 2014-07-16 22:55:36,858: _walk_modules() 'Jumble loading module in GoodreadsSource from /opt/extras.ubuntu.com/variety/share/variety/plugins/quotes/GoodreadsSource.py'
INFO: 2014-07-16 22:55:36,861: load() 'Jumble found plugin class: <class 'GoodreadsSource.GoodreadsSource'>: {'author': 'Peter Levi', 'name': 'Goodreads', 'version': '0.1', 'desc...

Revision history for this message
Javier Antonio Nisa Avila (javiernisa) wrote :
Revision history for this message
Peter Levi (peterlevi) wrote :

Javier, you are experiencing a different bug, I have committed a fix for it, it will be released soon. RichSands, please do provide the log from -vvv.

Peter Levi (peterlevi)
Changed in variety:
status: New → Incomplete
Revision history for this message
MrPendulum (mrpendulum) wrote :

Sorry for the delay Peter. Please find the log attached. I didn't see anything obvious occur whilst I was clicking next/previous.

Some other environment conditions I should mention: I'm running two monitors, and the local folder I have selected contains 235 high resolution wallpapers.

Revision history for this message
Peter Levi (peterlevi) wrote :

RichSands, when you click Next and Previous, does the image name in Variety's menu change? E.g. is it as though the clicks are not registered at all, or as though they are registered, but the desktop wallpaper is not changed?

Revision history for this message
MrPendulum (mrpendulum) wrote :

The image name does not change at all, it remains the same.

The name does change when I use the wallpaper selector, however.

I was just watching the console output closely while changing (after a complete clean out of all config files and reinstall of variety), something I did notice. Everytime I select an image using the wallpaper selector, this error appears:

/home/username/.config/variety/scripts/set_wallpaper: line 129: xfconf-query: command not found

After clicking next about 20-30 times, the wallpaper did indeed change at one point O_O and this error also appeared in the console. I couldn't get this to repeat however.

Revision history for this message
Peter Levi (peterlevi) wrote :

The xfconf error is expected, ignore it.

So when you run with -vvv and you press Next/Previous most of the time you don't get anything at all on the console, is that right (except one time)?

It seems that Variety is not picking the GUI event at all... Does any of the items in the Image submenu work? What if you enable quotes (Preferences/Effects/Quotes) - a Quote submenu will appear - please try if any of the menu items there will work.

Revision history for this message
Peter Levi (peterlevi) wrote :

I suppose this may be the reason: http://stackoverflow.com/questions/5221326/submenu-item-does-not-call-function-with-working-solution

Try clicking explicitly on the "Image" menu item before clicking the "Next" submenu item (do not rely on it to show automatically) and se if this would change the behavior.

Revision history for this message
MrPendulum (mrpendulum) wrote :

Bingo. Explicitly clicking the image menu first, and previous/next work entirely as expected. Nice find!

Revision history for this message
Peter Levi (peterlevi) wrote :

The GNOME bug is here: https://bugzilla.gnome.org/show_bug.cgi?id=695488, still in Unconfirmed state.

We know the reason, but I wonder if there is a good workaround for this upstream bug...
I wonder why you are the only one reporting this bug. I don't experience it, probably it happens only on some machines.

summary: - Indicator playback menu not working in Ubuntu 14.04
+ Clicking submenu items not working if the submenu has not been
+ explicitly clicked
Changed in variety:
status: Incomplete → Confirmed
importance: Undecided → Low
Revision history for this message
Peter Levi (peterlevi) wrote :

I managed to reproduce it on 14.04, but the bug presents itself only if I have initially right-clicked Variety's indicator icon, and then try to left-click the menu item, not if I have left-clicked them both or right-clicked them both. Can you confirm this behavior?

Revision history for this message
Peter Levi (peterlevi) wrote :
Revision history for this message
MrPendulum (mrpendulum) wrote :

Once again, you are right on the mark. I've tested a variety of scenarios:

*If I right click the indicator icon, left clicking does not work (unless I explicitly left-click the "image menu" instead of just hovering).
*If I right click the indicator icon, right clicking does work and does not need the explicit click of the menu item.
*If I left click the the indicator menu, left clicking works without needing the explicit click.
*If I left click the indicator menu, right clicking does not work (unless I explicitly left-click the "image menu" instead of just hovering).

In my situation, I always right click the indicator icon (leftover habit from my Windows days I guess), then left click the option I want.

Revision history for this message
Peter Levi (peterlevi) wrote :

And the same bug is obviously present even in official Ubuntu indicators, such as the network manager.
Unfortunately the suggested workaround in that StackOverflow thread does not work. Button-press-event is also not triggered.

This is either a GTK bug (possibly a regression), or a specific Ubuntu bug with the way the indicator constructs and presents its menu.
Variety had a similar bug in the past with the right-click menu of the thumbs window - it was shown on right-click, and then only right-click used to work to trigger the submenu items: https://bugs.launchpad.net/variety/+bug/1044909

Potentially the indicator-related code in Ubuntu suffers from the same problem at the moment.

Revision history for this message
Peter Levi (peterlevi) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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