Red Hat Bugzilla – Bug 1285880
[abrt] cinnamon: cinnamon-slideshow.py:134:ensure_file_is_image:TypeError: cannot concatenate 'str' and 'NoneType' objects
Last modified: 2016-12-20 11:19:47 EST
Description of problem:
this happened with a homedir of a F22 install (restoed from backup) used on F23.
I'll try to clean manually now, but seeing Bug 1228963 (F21), I figured I'd send off the ABRT report.
Version-Release number of selected component:
cmdline: /usr/bin/python2 /usr/share/cinnamon/cinnamon-slideshow/cinnamon-slideshow.py
runlevel: N 5
cinnamon-slideshow.py:134:ensure_file_is_image:TypeError: cannot concatenate 'str' and 'NoneType' objects
Traceback (most recent call last):
File "/usr/share/cinnamon/cinnamon-slideshow/cinnamon-slideshow.py", line 124, in on_next_file_complete
File "/usr/share/cinnamon/cinnamon-slideshow/cinnamon-slideshow.py", line 134, in ensure_file_is_image
self.add_image_to_playlist(self.collection_path + "/" + item.get_name())
TypeError: cannot concatenate 'str' and 'NoneType' objects
Local variables in innermost frame:
file_type: <enum G_FILE_TYPE_REGULAR of type GFileType>
item: <FileInfo object at 0x7f5074a204b0 (GFileInfo at 0x7f5068007c60)>
self: <__main__.CinnamonSlideshow at /org/Cinnamon/Slideshow at 0x7f5076b170d0>
file_list: [<FileInfo object at 0x7f5074a204b0 (GFileInfo at 0x7f5068007c60)>, <FileInfo object at 0x7f5074a20550 (GFileInfo at 0x7f5068007cc0)>, <FileInfo object at 0x7f5074a205a0 (GFileInfo at 0x7f5068007d20)>, <FileInfo object at 0x7f5074a205f0 (GFileInfo at 0x7f5068007d80)>, <FileInfo object at 0x7f5074a20640 (GFileInfo at 0x7f5068007e40)>, <FileInfo object at 0x7f5074a20690 (GFileInfo at 0x7f5068007ea0)>, <FileInfo object at 0x7f5074a206e0 (GFileInfo at 0x7f5068007f00)>, <FileInfo object at 0x7f5074a20730 (GFileInfo at 0x7f5068007f60)>, <FileInfo object at 0x7f5074a20780 (GFileInfo at 0x7f5068008000)>, <FileInfo object at 0x7f5074a207d0 (GFileInfo at 0x7f5068008030)>, <FileInfo object at 0x7f5074a20820 (GFileInfo at 0x7f5068008090)>, <FileInfo object at 0x7f5074a20870 (GFileInfo at 0x7f50680080f0)>, <FileInfo object at 0x7f5074a208c0 (GFileInfo at 0x7f5068008150)>, <FileInfo object at 0x7f5074a20910 (GFileInfo at 0x7f5068008210)>, <FileInfo object at 0x7f5074a20960 (GFileInfo at 0x7f5068008270)>, <FileInfo object at 0x7f5074a209b0 (GFileInfo at 0x7f50680082d0)>, <FileInfo object at 0x7f5074a20a00 (GFileInfo at 0x7f5068008330)>, <FileInfo object at 0x7f5074a20a50 (GFileInfo at 0x7f5068008390)>, <FileInfo object at 0x7f5074a20aa0 (GFileInfo at 0x7f5068008630)>, <FileInfo object at 0x7f5074a20af0 (GFileInfo at 0x7f5068008690)>, <FileInfo object at 0x7f5074a20b40 (GFileInfo at 0x7f50680086f0)>, <FileInfo object at 0x7f5074a20b90 (GFileInfo at 0x7f5068008750)>, <FileInfo object at 0x7f5074a20be0 (GFileInfo at 0x7f5068008810)>, <FileInfo object at 0x7f5074a20c30 (GFileInfo at 0x7f5068008870)>, <FileInfo object at 0x7f5074a20c80 (GFileInfo at 0x7f50680088d0)>]
Potential duplicate: bug 1228963
Created attachment 1099430 [details]
Created attachment 1099431 [details]
There is the upstream bug https://github.com/linuxmint/Cinnamon/issues/4280 for F21
I found the issue. item.get_name() is returning None, which is causing the exception. This is because the enumerate_children_async call on line 103 is only requesting the type and content-type fields. Add standard::type to the list of requested fields and that fixes the issue.
--- /usr/share/cinnamon/cinnamon-slideshow/cinnamon-slideshow.py.orig 2016-02-21 16:03:26.812873506 -0600
+++ /usr/share/cinnamon/cinnamon-slideshow/cinnamon-slideshow.py 2016-02-21 16:01:33.196094974 -0600
@@ -100,7 +100,7 @@
folder_at_path = Gio.file_new_for_path(self.collection_path)
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora 'version'
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 23 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
Thank you for reporting this bug and we are sorry it could not be fixed.