installed and reboot variety. Not starting giving error on command line

Bug #1393136 reported by Bsienn
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Variety
Fix Released
Critical
Peter Levi

Bug Description

Ubuntu 14.04.1 64bit

variety was working perfect in same box but after new installation of ubuntu and variety. after reboot was not auto started.
Ran with command line and it gave error.

Commandline output:

WARNING: 2014-11-16 11:47:01,059: load_history() 'Could not load history file, continuing without it, no worries'
/home/bsienn/.config/variety/scripts/get_wallpaper: line 38: 3505 Segmentation fault (core dumped) gsettings get org.gnome.desktop.background picture-uri
ERROR: 2014-11-16 11:47:01,190: get_desktop_wallpaper() 'Exception when calling get_wallpaper script'
Traceback (most recent call last):
  File "/opt/extras.ubuntu.com/variety/variety/VarietyWindow.py", line 2117, in get_desktop_wallpaper
    output = subprocess.check_output(script).strip()
  File "/usr/lib/python2.7/subprocess.py", line 573, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command '/home/bsienn/.config/variety/scripts/get_wallpaper' returned non-zero exit status 139
Traceback (most recent call last):
  File "/opt/extras.ubuntu.com/variety/bin/variety", line 41, in <module>
    variety.main()
  File "/opt/extras.ubuntu.com/variety/variety/__init__.py", line 134, in main
    window.start(arguments)
  File "/opt/extras.ubuntu.com/variety/variety/VarietyWindow.py", line 164, in start
    self.update_indicator(auto_changed=False)
  File "/opt/extras.ubuntu.com/variety/variety/VarietyWindow.py", line 623, in update_indicator
    logger.info("Setting file info to: " + file)
TypeError: cannot concatenate 'str' and 'NoneType' objects
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 1082, in run
    self.function(*self.args, **self.kwargs)
  File "/opt/extras.ubuntu.com/variety/variety/VarietyWindow.py", line 1031, in _do_set_wp
    self.do_set_wp(filename, refresh_level)
  File "/opt/extras.ubuntu.com/variety/variety/VarietyWindow.py", line 1188, in do_set_wp
    logger.info("Calling do_set_wp with " + filename)
TypeError: cannot concatenate 'str' and 'NoneType' objects

Tags: crash
Revision history for this message
Bsienn (bsienn) wrote :
description: updated
description: updated
Revision history for this message
Peter Levi (peterlevi) wrote :

I reproduced it and will commit a fix.
In the meantime, please set a picture wallpaper manually from Ubuntu's Appearance (NOT a color or gradient). This should allow you to launch it.

Changed in variety:
status: New → Confirmed
importance: Undecided → Critical
assignee: nobody → Peter Levi (peterlevi)
Revision history for this message
Bsienn (bsienn) wrote :

Thanks 4 response. desktop already a wallpaper not a gradient or solid color.
Craches even with ubuntu's custom background wallpaper.

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

Are you on Unity or some other DE?

Revision history for this message
Bsienn (bsienn) wrote :

I am on Unity. Default fresh Ubuntu Install.

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

I wonder why the get_wallpaper script exits with an error.
Please try running "gsettings get org.gnome.desktop.background picture-uri" in a terminal.

Revision history for this message
Bsienn (bsienn) wrote :

sorry 4 late reply, the time-zone differs. here is the output of the command:
'file:///mnt/882C04092C03F14C/My%20Gallery/Wallpapers/Desktoppr/_166_.jpg'

i opened a picture in viewer from same directory and ran the same command and got this:
'file:///home/bsienn/.local/share/eog-wallpaper.jpg'

after doing each step, i got that same error.

i did a purge and deleted the variety congif file from /.config/variety folder.
reinstalled and same behavior.

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

I committed a fix, please confirm that the problem is fixed in the attached version.

Changed in variety:
status: Confirmed → Fix Committed
Revision history for this message
Bsienn (bsienn) wrote :

I am so glad it got fixed. thanks a lot Mr Peter Levi. Just tested and it working good. I hope the Ubuntu up/down scroll to chnage wallpaper gets fixed as well. its been too long.

Thanks.

Regards
Bsienn Khan

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

Re: up/down scroll. Actually I got in touch with the correct people there and a fix for this is already committed and released in the trusty-proposed repository. Please help verifying that the bugfix works, instructions are in this comment: https://bugs.launchpad.net/ubuntu/+source/libappindicator/+bug/1071738/comments/14

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

Bsienn, can you help me debug why get_wallpaper fails?

The current fix fixes the Python side of the code, but we still don't know why and where get_wallpaper exits with a Segmentation fault (/home/bsienn/.config/variety/scripts/get_wallpaper: line 38: 3505 Segmentation fault (core dumped))

Please edit ~/.config/variety/scripts/get_wallpaper and put some debugging "echo 111", "echo 222", etc. statements between the commands around line 38 and run it so that we see exactly which command causes the error. Then once you pinpoint it, please run it separately in a terminal to check what happens. Thanks.

Revision history for this message
Bsienn (bsienn) wrote : Re: [Bug 1393136] Re: installed and reboot variety. Not starting giving error on command line
Download full text (3.8 KiB)

I'll be very delighted to help with it. as soon i get back to my ubuntu box
i'll try ur suggestion.in about in 1 or 2 hours.
as far as i am understanding, i have to purge previous install and dell
variety config & install a previous version.
or will the default command will install the bugged version?

sudo add-apt-repository ppa:peterlevi/ppa
sudo apt-get update
sudo apt-get install variety

On Thu, Nov 20, 2014 at 7:25 AM, Peter Levi <email address hidden>
wrote:

> Bsienn, can you help me debug why get_wallpaper fails?
>
> The current fix fixes the Python side of the code, but we still don't
> know why and where get_wallpaper exits with a Segmentation fault
> (/home/bsienn/.config/variety/scripts/get_wallpaper: line 38: 3505
> Segmentation fault (core dumped))
>
> Please edit ~/.config/variety/scripts/get_wallpaper and put some
> debugging "echo 111", "echo 222", etc. statements between the commands
> around line 38 and run it so that we see exactly which command causes
> the error. Then once you pinpoint it, please run it separately in a
> terminal to check what happens. Thanks.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1393136
>
> Title:
> installed and reboot variety. Not starting giving error on command
> line
>
> Status in Variety wallpaper changer:
> Fix Committed
>
> Bug description:
> Ubuntu 14.04.1 64bit
>
> variety was working perfect in same box but after new installation of
> ubuntu and variety. after reboot was not auto started.
> Ran with command line and it gave error.
>
> Commandline output:
>
> WARNING: 2014-11-16 11:47:01,059: load_history() 'Could not load history
> file, continuing without it, no worries'
> /home/bsienn/.config/variety/scripts/get_wallpaper: line 38: 3505
> Segmentation fault (core dumped) gsettings get
> org.gnome.desktop.background picture-uri
> ERROR: 2014-11-16 11:47:01,190: get_desktop_wallpaper() 'Exception when
> calling get_wallpaper script'
> Traceback (most recent call last):
> File "/opt/extras.ubuntu.com/variety/variety/VarietyWindow.py", line
> 2117, in get_desktop_wallpaper
> output = subprocess.check_output(script).strip()
> File "/usr/lib/python2.7/subprocess.py", line 573, in check_output
> raise CalledProcessError(retcode, cmd, output=output)
> CalledProcessError: Command
> '/home/bsienn/.config/variety/scripts/get_wallpaper' returned non-zero exit
> status 139
> Traceback (most recent call last):
> File "/opt/extras.ubuntu.com/variety/bin/variety", line 41, in
> <module>
> variety.main()
> File "/opt/extras.ubuntu.com/variety/variety/__init__.py", line 134,
> in main
> window.start(arguments)
> File "/opt/extras.ubuntu.com/variety/variety/VarietyWindow.py", line
> 164, in start
> self.update_indicator(auto_changed=False)
> File "/opt/extras.ubuntu.com/variety/variety/VarietyWindow.py", line
> 623, in update_indicator
> logger.info("Setting file info to: " + file)
> TypeError: cannot concatenate 'str' and 'NoneType' objects
> Exception in thread Thread-2:
> Traceback (most recent call last):
> F...

Read more...

Revision history for this message
Bsienn (bsienn) wrote :

The scroll patch fixed he scroll issue with (libappindicator )
but the picture in enable proposed is old. my 14.04.1 ubuntu unity had different options.
i had to check the (pre-release something option) and it updated the (libappindicator ) and the scrolling is working great.

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

No need to reinstall anything for now, the Beta version uses the same get_wallpaper script. Just run it (the full path is ~/.config/variety/scripts/get_wallpaper) and make sure it gives Segmentation fault like before.

Revision history for this message
Bsienn (bsienn) wrote :

since the comit u made, i cannot replicate the error.
i was trying to install a previous verion but i am unable to do so, bcoz i didn't found how to do that. and i am very new to linux as well.

i ran the script get_wallpaper and it executes normal returning the uri of wallpaper.

Peter Levi (peterlevi)
Changed in variety:
milestone: none → 0.5.0
status: Fix Committed → Fix Released
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.