[Bugs] #4418 sugar UNSP: Can't copy images to clipboard

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Fri Feb 15 07:03:15 EST 2013


#4418: Can't copy images to clipboard
------------------------------------------+---------------------------------
    Reporter:  dsd                        |          Owner:  humitos    
        Type:  defect                     |         Status:  accepted   
    Priority:  Unspecified by Maintainer  |      Milestone:  0.98       
   Component:  sugar                      |        Version:  Unspecified
    Severity:  Unspecified                |       Keywords:             
Distribution:  Unspecified                |   Status_field:  Unconfirmed
------------------------------------------+---------------------------------
Changes (by humitos):

 * cc: godiard (added)


Comment:

 I tried this again in 13.1.0 os30 and the error in {{{shell.log}}}
 disappeared (without applying my patch).

 I researched this a bit more and I found that the problem seems to be in
 Paint Activity instead of the Clipboard because Paint fails when I try to
 open the clipboard object from the clipboard menu: with "Open" (there is
 no Activities to select, it opens only with Paint).

 On the other hand, if I click on "Keep" from the clipboard menu and then
 open it with ImageViewer I can see the image properly but if after I click
 on "Keep" I open it with Paint I see a white canvas.

 In both situations (open it with Paint) I'm getting this error in Paint
 log:
 {{{
 1360928680.318162 DEBUG root: reading file /home/olpc/.sugar/default/data
 /856be15a-66bf-4ca9-948c-663e572c663c_wi4b7O.bmp, mimetype: image/bmp,
 title: Image clipping
 Traceback (most recent call last):
   File "/usr/lib/python2.7/site-packages/sugar3/activity/activity.py",
 line 538, in __canvas_map_cb
     self.read_file(self._jobject.file_path)
   File "/home/olpc/Activities/Paint.activity/OficinaActivity.py", line
 144, in read_file
     self.area.load_from_file(file_path)
   File "/home/olpc/Activities/Paint.activity/Area.py", line 244, in
 load_from_file
     cairo.ImageSurface.create_from_png(file_path)
 MemoryError
 }}}

 I see two things here:
  1. the path does not exist immediately after Paint is opened
  1. Paint is trying to open a 'png' and the image is 'bmp'

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/4418#comment:5>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list