bugMyPaint - Bugs: bug #19649, Error while saving

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #19649: Error while saving

Submitted by:  Anna Celarek <ania>
Submitted on:  Sun 15 Apr 2012 08:38:47 PM UTC  
 
Severity: 3 - NormalPriority: 5 - Normal
Status: FixedPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Release: 1.0.0Planned Release: None
Operating System: Linux

Mon 07 Oct 2013 04:06:53 AM UTC, comment #3:

I also receive this error on two different machines (both running Mint) : Traceback (most recent call last):
File "/usr/share/mypaint/gui/filehandling.py", line 449, save_as_cb(self=<gui.filehandling.FileHandler object>, action=<gtk.Action object at 0x9b5acfc (GtkAction at 0x9a47208)>)
# Do not change working file
self.save_as_dialog(self.save_file, suggested_filename = current_filename, export=True)
else:
variables: {'self.save_file': ('local', <bound method FileHandler.wrapper of <gui.filehandling.FileHandler object at 0x9bb98cc>>), 'self.save_as_dialog': ('local', <bound method FileHandler.save_as_dialog of <gui.filehandling.FileHandler object at 0x9bb98cc>>), 'current_filename': ('local', ''), 'export': (None, []), 'suggested_filename': (None, []), 'True': ('builtin', True)}
File "/usr/share/mypaint/gui/filehandling.py", line 509, save_as_dialog(self=<gui.filehandling.FileHandler object>, save_method_reference=<bound method FileHandler.wrapper of <gui.filehandling.FileHandler object>>, suggested_filename='', start_in_folder=None, export=True, **options={'multifile': True})
# Do not change working file
save_method_reference(filename, True, **options)
else:
variables: {'True': ('builtin', True), 'options': ('local', {'multifile': True}), 'save_method_reference': ('local', <bound method FileHandler.wrapper of <gui.filehandling.FileHandler object at 0x9bb98cc>>), 'filename': ('local', u'/home/pmpope/Pictures/painting/birdwatcher.png')}
File "/usr/share/mypaint/gui/drawwindow.py", line 46, wrapper(self=<gui.filehandling.FileHandler object>, args=(u'/home/pmpope/Pictures/painting/birdwatcher.png', True), *kwargs={'multifile': True})
try:
func(self, args, *kwargs)
# gtk main loop may be called in here...
variables: {'self': ('local', <gui.filehandling.FileHandler object at 0x9bb98cc>), 'args': ('local', (u'/home/pmpope/Pictures/painting/birdwatcher.png', True)), 'func': ('local', <function save_file at 0x9885c34>), 'kwargs': ('local', {'multifile': True})}
File "/usr/share/mypaint/gui/filehandling.py", line 292, save_file(self=<gui.filehandling.FileHandler object>, filename=u'/home/pmpope/Pictures/painting/birdwatcher.png', export=True, **options={'multifile': True})
thumbnail_pixbuf = self.doc.model.render_thumbnail()
helpers.freedesktop_thumbnail(self.filename, thumbnail_pixbuf)
variables: {'thumbnail_pixbuf': ('local', <gtk.gdk.Pixbuf object at 0x1485e504 (GdkPixbuf at 0xc583fa0)>), 'helpers.freedesktop_thumbnail': ('global', <function freedesktop_thumbnail at 0x96ddd84>), 'self.filename': ('local', <gui.filehandling.FileHandler object at 0x9bb98cc>)}
File "/usr/share/mypaint/lib/helpers.py", line 133, freedesktop_thumbnail(filename=None, pixbuf=<gtk.gdk.Pixbuf object at 0x1485e504 (GdkPixbuf at 0xc583fa0)>)
uri = filename2uri(filename)
file_hash = hashlib.md5(uri).hexdigest()
variables: {'filename2uri': ('global', <function filename2uri at 0x96dde9c>), 'uri': (None, []), 'filename': ('local', None)}
File "/usr/share/mypaint/lib/helpers.py", line 245, filename2uri(path=None)
def filename2uri(path):
path = os.path.abspath(path)
#print 'encode', repr(path.encode('utf-8'))
variables: {'path': ('local', None), 'os.path.abspath': ('global', <function abspath at 0xb74c0f7c>)}
File "/usr/lib/python2.7/posixpath.py", line 352, abspath(path=None)
"""Return an absolute path."""
if not isabs(path):
if isinstance(path, _unicode):
variables: {'path': ('local', None), 'isabs': ('global', <function isabs at 0xb74c002c>)}
File "/usr/lib/python2.7/posixpath.py", line 61, isabs(s=None)
"""Test whether a path is absolute"""
return s.startswith('/')
variables: {'s': ('local', None)}
AttributeError: 'NoneType' object has no attribute 'startswith'

pmpope <pmpope>
Fri 04 Jan 2013 06:19:36 PM UTC, comment #2:

This bug is already Fixed in git, but is marked as Open. I am now
marking it Closed because a new stable version, 1.1.0, is
available, meaning that this bug no longer affects the current
stable release.

Please reopen if this problem reoccurs with the new version of
MyPaint!

Andrew Chadwick <achadwick>
Project Administrator
Tue 17 Apr 2012 06:28:57 PM UTC, comment #1:

It's fixed in git already (6272e1d6c496), I think it's annoying but harmless.

Martin Renold <martinxyz>
Project Administrator
Sun 15 Apr 2012 08:38:47 PM UTC, original submission:

When trying to save an image as png, I got an error message with this details. It didn't actually crash, so it's perhaps not severe, but the message suggested to report it.

MyPaint 1.0.0
OpenSuse 12.1
KDE 4.7.2

Traceback (most recent call last):
File "/usr/share/mypaint/gui/filehandling.py", line 449, save_as_cb(self=<gui.filehandling.FileHandler object>, action=<gtk.Action object at 0x1653cd0 (GtkAction at 0x191cb20)>)
# Do not change working file
self.save_as_dialog(self.save_file, suggested_filename = current_filename, export=True)
else:
variables: {'self.save_file': ('local', <bound method FileHandler.wrapper of <gui.filehandling.FileHandler object at 0x164d410>>), 'self.save_as_dialog': ('local', <bound method FileHandler.save_as_dialog of <gui.filehandling.FileHandler object at 0x164d410>>), 'current_filename': ('local', ''), 'export': (None, []), 'suggested_filename': (None, []), 'True': ('builtin', True)}
File "/usr/share/mypaint/gui/filehandling.py", line 509, save_as_dialog(self=<gui.filehandling.FileHandler object>, save_method_reference=<bound method FileHandler.wrapper of <gui.filehandling.FileHandler object>>, suggested_filename='', start_in_folder=None, export=True, **options={'alpha': False})
# Do not change working file
save_method_reference(filename, True, **options)
else:
variables: {'True': ('builtin', True), 'options': ('local', {'alpha': False}), 'save_method_reference': ('local', <bound method FileHandler.wrapper of <gui.filehandling.FileHandler object at 0x164d410>>), 'filename': ('local', u'/home/ania/Desktop/nerz.png')}
File "/usr/share/mypaint/gui/drawwindow.py", line 46, wrapper(self=<gui.filehandling.FileHandler object>, args=(u'/home/ania/Desktop/nerz.png', True), *kwargs={'alpha': False})
try:
func(self, args, *kwargs)
# gtk main loop may be called in here...
variables: {'self': ('local', <gui.filehandling.FileHandler object at 0x164d410>), 'args': ('local', (u'/home/ania/Desktop/nerz.png', True)), 'func': ('local', <function save_file at 0x15b6de8>), 'kwargs': ('local', {'alpha': False})}
File "/usr/share/mypaint/gui/filehandling.py", line 292, save_file(self=<gui.filehandling.FileHandler object>, filename=u'/home/ania/Desktop/nerz.png', export=True, **options={'alpha': False})
thumbnail_pixbuf = self.doc.model.render_thumbnail()
helpers.freedesktop_thumbnail(self.filename, thumbnail_pixbuf)
variables: {'thumbnail_pixbuf': ('local', <gtk.gdk.Pixbuf object at 0x22dc6e0 (GdkPixbuf at 0x2ea6e80)>), 'helpers.freedesktop_thumbnail': ('global', <function freedesktop_thumbnail at 0x1187410>), 'self.filename': ('local', <gui.filehandling.FileHandler object at 0x164d410>)}
File "/usr/share/mypaint/lib/helpers.py", line 133, freedesktop_thumbnail(filename=None, pixbuf=<gtk.gdk.Pixbuf object at 0x22dc6e0 (GdkPixbuf at 0x2ea6e80)>)
uri = filename2uri(filename)
file_hash = hashlib.md5(uri).hexdigest()
variables: {'filename2uri': ('global', <function filename2uri at 0x1187668>), 'uri': (None, []), 'filename': ('local', None)}
File "/usr/share/mypaint/lib/helpers.py", line 245, filename2uri(path=None)
def filename2uri(path):
path = os.path.abspath(path)
#print 'encode', repr(path.encode('utf-8'))
variables: {'path': ('local', None), 'os.path.abspath': ('global', <function abspath at 0x7f593e42ea28>)}
File "/usr/lib64/python2.7/posixpath.py", line 343, abspath(path=None)
"""Return an absolute path."""
if not isabs(path):
if isinstance(path, unicode):
variables: {'path': ('local', None), 'isabs': ('global', <function isabs at 0x7f593e429e60>)}
File "/usr/lib64/python2.7/posixpath.py", line 53, isabs(s=None)
"""Test whether a path is absolute"""
return s.startswith('/')
variables: {'s': ('local', None)}
AttributeError: 'NoneType' object has no attribute 'startswith'

Anna Celarek <ania>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pmpope (Posted a comment)
  • -unavailable- added by achadwick (Posted a comment)
  • -unavailable- added by martinxyz (Posted a comment)
  • -unavailable- added by ania (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 04 Jan 2013 06:19:36 PM UTCachadwickOpen/ClosedOpen=>Closed
    Tue 17 Apr 2012 06:28:57 PM UTCmartinxyzStatusNone=>Fixed
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup