Hi!

Thanks for trying out cinnamon and taking the time to report this bug.

I can reproduce this in my computer as well.

As soon as I open the change background window, I see this error in 
.xsession-errors:

** (cinnamon-settings.py:1931): WARNING **: Couldn't register with 
accessibility bus: Did not receive a reply. Possible causes include: the remote 
application did not send a reply, the message bus security policy blocked the 
reply, the reply timeout expired, or the network connection was broken.

If I try to set a background using the Add button, and then close the window, I 
get:

Failed to convert /home/marga/.cinnamon/backgrounds/Dark_Ivy.jpg: 'NoneType' 
object has no attribute 'mode'

Nothing ever shows up in the list.

When manually starting cinnamon-settings-daemon, I got this error after opening 
the backgrounds panel:

(cinnamon-settings-daemon:2101): librsvg-WARNING **: CSS parsing error

I was able to reproduce the problem with a simplified version of the code that 
processes the images:

>>> from SettingsWidgets import *

** (.:2803): WARNING **: Couldn't register with accessibility bus: Did not 
receive a reply. Possible causes include: the remote application did not send a 
reply, the message bus security policy blocked the reply, the reply timeout 
expired, or the network connection was broken.
>>> img = Image.open('/home/marga/.cinnamon/backgrounds/Dark_Ivy.jpg')
>>> import imtools
>>> img = imtools.round_image(img, {}, False, None, 3, 255)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "imtools.py", line 170, in round_image
    mask = create_rounded_rectangle(image.size, cache, radius, opacity, pos)
  File "imtools.py", line 222, in create_rounded_rectangle
    paste(rounded_rectangle, element, (x, y))
  File "imtools.py", line 862, in paste
    if source == mask:
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 576, in __eq__
    a = (self.mode == other.mode)
AttributeError: 'NoneType' object has no attribute 'mode'

This is the code from the paste function in imtools:
def paste(destination, source, box=(0, 0), mask=None, force=False):
   if source == mask:

mask is clearly None, and this comparison is not working. It might be that this 
was triggered by a change in the _eq_ comparator in PIL, but in any case this 
is a bug that needs to be fixed.

Once again, thanks for the report.

-- 
Regards,
Marga


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to