URL:
  <http://gna.org/bugs/?18409>

                 Summary: failed image load
                 Project: MyPaint
            Submitted by: morgajel
            Submitted on: Sun 24 Jul 2011 03:43:45 AM GMT
                Severity: 4 - Important
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: updated trunk
         Planned Release: None
        Operating System: kubuntu natty

    _______________________________________________________

Details:

While writing up the last bug report, I re-opened the wrong arena.png when I
meant to open arena.ora. I then tried to open the correct file and got this
error.
Note that the dialog box popped up, and when I viewed the image, there were
large chunks of one layer missing. Unsure if it was related to the last
side-by-side loading of arena.png and arena.ora or the previous failure.

closing mypaint and reopening arena.ora seems to look correct.




Traceback (most recent call last):
  File "/home/jmorgan/mypaint/gui/filehandling.py", line 487,
open_recent_cb(self=<gui.filehandling.FileHandler object>,
action=<gtk.RecentAction object at 0x9b8311c (GtkRecentAction at 0x9779c80)>)
            fn = helpers.uri2filename(uri)
            self.open_file(fn)
  variables: {'self.open_file': ('local', <bound method FileHandler.wrapper
of <gui.filehandling.FileHandler object at 0x9b825ec>>), 'fn': ('local',
u'/home/jmorgan/Downloads/arena.ora')}
  File "/home/jmorgan/mypaint/gui/drawwindow.py", line 40,
wrapper(self=<gui.filehandling.FileHandler object>,
*args=(u'/home/jmorgan/Downloads/arena.ora',), **kwargs={})
            try:
                func(self, *args, **kwargs)
                # gtk main loop may be called in here...
  variables: {'self': ('local', <gui.filehandling.FileHandler object at
0x9b825ec>), 'args': ('local', (u'/home/jmorgan/Downloads/arena.ora',)),
'func': ('local', <function open_file at 0x9a3d304>), 'kwargs': ('local',
{})}
  File "/home/jmorgan/mypaint/gui/filehandling.py", line 240,
open_file(self=<gui.filehandling.FileHandler object>,
filename=u'/home/jmorgan/Downloads/arena.ora')
            try:
                self.doc.model.load(filename,
feedback_cb=self.gtk_main_tick)
            except document.SaveLoadError, e:
  variables: {'self.doc.model.load': ('local', <bound method Document.load of
<lib.document.Document instance at 0x9bac86c>>), 'feedback_cb': (None, []),
'self.gtk_main_tick': ('local', <function gtk_main_tick at 0x9a3d2cc>),
'filename': ('local', u'/home/jmorgan/Downloads/arena.ora')}
  File "/home/jmorgan/mypaint/lib/document.py", line 353,
load(self=<lib.document.Document instance>,
filename=u'/home/jmorgan/Downloads/arena.ora', **kwargs={'feedback_cb':
<function gtk_main_tick>})
            try:
                load(filename, **kwargs)
            except gobject.GError, e:
  variables: {'load': ('local', <bound method Document.load_ora of
<lib.document.Document instance at 0x9bac86c>>), 'kwargs': ('local',
{'feedback_cb': <function gtk_main_tick at 0x9a3d2cc>}), 'filename': ('local',
u'/home/jmorgan/Downloads/arena.ora')}
  File "/home/jmorgan/mypaint/lib/document.py", line 620,
load_ora(self=<lib.document.Document instance>,
filename=u'/home/jmorgan/Downloads/arena.ora', feedback_cb=<function
gtk_main_tick>)
                t1 = time.time()
                self.load_layer_from_pixbuf(pixbuf, x, y)
                layer = self.layers[0]
  variables: {'y': ('local', 1344), 'self.load_layer_from_pixbuf': ('local',
<bound method Document.load_layer_from_pixbuf of <lib.document.Document
instance at 0x9bac86c>>), 'pixbuf': ('local', <gtk.gdk.Pixbuf object at
0xa216e3c (GdkPixbuf at 0xa383a58)>), 'x': ('local', 0)}
  File "/home/jmorgan/mypaint/lib/document.py", line 278,
load_layer_from_pixbuf(self=<lib.document.Document instance>,
pixbuf=<gtk.gdk.Pixbuf object at 0xa216e3c (GdkPixbuf at 0xa383a58)>, x=0,
y=1344)
            arr = helpers.gdkpixbuf2numpy(pixbuf)
            self.do(command.LoadLayer(self, arr, x, y))
  variables: {'arr': ('local', array([[[0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        ..., 
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0]],

       [[0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        ..., 
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0]],

       [[0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        ..., 
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0]],

       ..., 
       [[0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        ..., 
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0]],

       [[0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        ..., 
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0]],

       [[0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        ..., 
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0]]], dtype=uint8)), 'command.LoadLayer': ('global', <class
lib.command.LoadLayer at 0x99e983c>), 'self': ('local', <lib.document.Document
instance at 0x9bac86c>), 'self.do': ('local', <bound method Document.do of
<lib.document.Document instance at 0x9bac86c>>), 'y': ('local', 1344), 'x':
('local', 0)}
  File "/home/jmorgan/mypaint/lib/document.py", line 222,
do(self=<lib.document.Document instance>, cmd=<lib.command.LoadLayer
instance>)
            self.split_stroke()
            self.command_stack.do(cmd)
  variables: {'cmd': ('local', <lib.command.LoadLayer instance at
0x5ad54a4c>), 'self.command_stack.do': ('local', <bound method CommandStack.do
of <lib.command.CommandStack instance at 0xa419e2c>>)}
  File "/home/jmorgan/mypaint/lib/command.py", line 24,
do(self=<lib.command.CommandStack instance>, command=<lib.command.LoadLayer
instance>)
            self.redo_stack = [] # discard
            command.redo()
            self.undo_stack.append(command)
  variables: {'command.redo': ('local', <bound method LoadLayer.redo of
<lib.command.LoadLayer instance at 0x5ad54a4c>>)}
  File "/home/jmorgan/mypaint/lib/command.py", line 117,
redo(self=<lib.command.LoadLayer instance>)
            self.before = layer.save_snapshot()
            layer.load_from_pixbuf(self.data)
        def undo(self):
  variables: {'layer.load_from_pixbuf': ('local', <bound method
Layer.load_from_pixbuf of <lib.layer.Layer instance at 0x5ad54a2c>>),
'self.data': ('local', [0, 1344, array([[[0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        ..., 
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0]],

       [[0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        ..., 
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0]],

       [[0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        ..., 
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0]],

       ..., 
       [[0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        ..., 
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0]],

       [[0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        ..., 
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0]],

       [[0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        ..., 
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0]]], dtype=uint8)])}
  File "/home/jmorgan/mypaint/lib/layer.py", line 36,
load_from_pixbuf(self=<lib.layer.Layer instance>, pixbuf=[0, 1344, array([[[0,
0, 0, 0],
        [0, 0, 0, 0],
    ...0, 0, 0, 0],
        [0, 0, 0, 0]]], dtype=uint8)])
            self.strokes = []
            self.surface.load_from_data(pixbuf)
  variables: {'self.surface.load_from_data': ('local', <bound method
Surface.load_from_data of <lib.tiledsurface.Surface; proxy of <Swig Object of
type 'TiledSurface *' at 0x9a58950> >>), 'pixbuf': ('local', [0, 1344,
array([[[0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        ..., 
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0]],

       [[0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        ..., 
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0]],

       [[0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        ..., 
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0]],

       ..., 
       [[0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        ..., 
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0]],

       [[0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        ..., 
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0]],

       [[0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        ..., 
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        [0, 0, 0, 0]]], dtype=uint8)])}
  File "/home/jmorgan/mypaint/lib/tiledsurface.py", line 201,
load_from_data(self=<lib.tiledsurface.Surface; proxy of <Swig Object of type
'TiledSurface *' at 0x9a58950> >, data=array([[[0, 0, 0, 0],
        [0, 0, 0, 0],
    ...0, 0, 0, 0],
        [0, 0, 0, 0]]], dtype=uint8))
            s = pixbufsurface.Surface(x, y, w, h, alpha=True, data=data)
            self.load_from_pixbufsurface(s)
  variables: {'self.load_from_pixbufsurface': ('local', <bound method
Surface.load_from_pixbufsurface of <lib.tiledsurface.Surface; proxy of <Swig
Object of type 'TiledSurface *' at 0x9a58950> >>), 's': ('local',
<lib.pixbufsurface.Surface instance at 0x5ad549ac>)}
  File "/home/jmorgan/mypaint/lib/tiledsurface.py", line 188,
load_from_pixbufsurface(self=<lib.tiledsurface.Surface; proxy of <Swig Object
of type 'TiledSurface *' at 0x9a58950> >, s=<lib.pixbufsurface.Surface
instance>)
            for tx, ty in s.get_tiles():
                dst = self.get_tile_memory(tx, ty, readonly=False)
                s.blit_tile_into(dst, tx, ty)
  variables: {'False': ('builtin', False), 'tx': ('local', 150), 'ty':
('local', 109), 'dst': ('local', array([[[1531, 1340,  741, 1799],
        [1552, 1355,  755, 1799],
        [1686, 1482,  847, 1928],
        ..., 
        [1559, 1362,  769, 1799],
        [1656, 1444,  809, 1928],
        [1538, 1340,  741, 1799]],

       [[1545, 1355,  755, 1799],
        [1566, 1376,  783, 1799],
        [1531, 1333,  734, 1799],
        ..., 
        [1552, 1355,  762, 1799],
        [1545, 1347,  755, 1799],
        [1531, 1340,  741, 1799]],

       [[1455, 1278,  727, 1671],
        [1545, 1347,  755, 1799],
        [1467, 1270,  663, 1799],
        ..., 
        [1552, 1362,  755, 1799],
        [1435, 1258,  701, 1671],
        [1531, 1340,  741, 1799]],

       ..., 
       [[ 324,  283,  153,  386],
        [ 341,  297,  170,  386],
        [ 454,  395,  226,  514],
        ..., 
        [ 415,  363,  185,  514],
        [ 312,  268,  139,  386],
        [ 312,  268,  139,  386]],

       [[ 415,  357,  181,  514],
        [ 339,  298,  171,  386],
        [ 341,  298,  171,  386],
        ..., 
        [ 419,  363,  189,  514],
        [ 313,  272,  142,  386],
        [ 315,  274,  142,  386]],

       [[ 339,  298,  171,  386],
        [ 339,  298,  171,  386],
        [ 339,  298,  171,  386],
        ..., 
        [ 319,  279,  148,  386],
        [ 318,  275,  145,  386],
        [ 318,  279,  147,  386]]], dtype=uint16)), 'self.get_tile_memory':
('local', <bound method Surface.get_tile_memory of <lib.tiledsurface.Surface;
proxy of <Swig Object of type 'TiledSurface *' at 0x9a58950> >>), 'readonly':
(None, [])}
  File "/home/jmorgan/mypaint/lib/tiledsurface.py", line 86,
get_tile_memory(self=<lib.tiledsurface.Surface; proxy of <Swig Object of type
'TiledSurface *' at 0x9a58950> >, tx=150, ty=109, readonly=False)
                else:
                    t = Tile()
                    self.tiledict[(tx, ty)] = t
  variables: {'Tile': ('global', <class lib.tiledsurface.Tile at 0x99d7b6c>),
't': ('local', None)}
  File "/home/jmorgan/mypaint/lib/tiledsurface.py", line 26,
__init__(self=<lib.tiledsurface.Tile instance>, copy_from=None)
            if copy_from is None:
                self.rgba = zeros((N, N, 4), 'uint16')
            else:
MemoryError: 




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?18409>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs

Reply via email to