URL:
<http://gna.org/bugs/?18415>
Summary: error thrown when opening file after file.
Project: MyPaint
Submitted by: morgajel
Submitted on: Sun 24 Jul 2011 06:55:28 PM GMT
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: current trunk
Planned Release: None
Operating System: kubuntu natty
_______________________________________________________
Details:
while trying to determine if there's some type of internal memory leak, I
reopened the same 3 files again and again, not drawing at all. eventually I
received this message:
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 0xa49f3ec (GtkRecentAction at 0xa094080)>)
fn = helpers.uri2filename(uri)
self.open_file(fn)
variables: {'self.open_file': ('local', <bound method FileHandler.wrapper
of <gui.filehandling.FileHandler object at 0xa49c94c>>), '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
0xa49c94c>), 'args': ('local', (u'/home/jmorgan/Downloads/arena.ora',)),
'func': ('local', <function open_file at 0xa3664c4>), '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 0xa4c7bcc>>), 'feedback_cb': (None, []),
'self.gtk_main_tick': ('local', <function gtk_main_tick at 0xa36648c>),
'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 0xa4c7bcc>>), 'kwargs': ('local',
{'feedback_cb': <function gtk_main_tick at 0xa36648c>}), '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', 0), 'self.load_layer_from_pixbuf': ('local',
<bound method Document.load_layer_from_pixbuf of <lib.document.Document
instance at 0xa4c7bcc>>), 'pixbuf': ('local', <gtk.gdk.Pixbuf object at
0x38e01964 (GdkPixbuf at 0xce8c418)>), '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 0x38e01964 (GdkPixbuf at 0xce8c418)>, x=0,
y=0)
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 0xa30486c>), 'self': ('local', <lib.document.Document
instance at 0xa4c7bcc>), 'self.do': ('local', <bound method Document.do of
<lib.document.Document instance at 0xa4c7bcc>>), 'y': ('local', 0), '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
0x1625684c>), 'self.command_stack.do': ('local', <bound method CommandStack.do
of <lib.command.CommandStack instance at 0x1622e34c>>)}
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 0x1625684c>>)}
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 0x1625682c>>),
'self.data': ('local', [0, 0, 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, 0, 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 0xaa41c68> >>), 'pixbuf': ('local', [0, 0,
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 200,
load_from_data(self=<lib.tiledsurface.Surface; proxy of <Swig Object of type
'TiledSurface *' at 0xaa41c68> >, 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: {'h': ('local', 7808), 'data': ('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)), 's': (None, []),
'pixbufsurface.Surface': ('global', <class lib.pixbufsurface.Surface at
0xa2f2b6c>), 'w': ('local', 11776), 'alpha': (None, []), 'y': ('local', 0),
'x': ('local', 0), 'True': ('builtin', True)}
File "/home/jmorgan/mypaint/lib/pixbufsurface.py", line 44,
__init__(self=<lib.pixbufsurface.Surface instance>, x=0, y=0, w=11776, h=7808,
alpha=True, data=array([[[0, 0, 0, 0],
[0, 0, 0, 0],
...0, 0, 0, 0],
[0, 0, 0, 0]]], dtype=uint8))
self.epixbuf = gdk.Pixbuf(gdk.COLORSPACE_RGB, alpha, 8, self.ew,
self.eh)
dx = x-self.ex
RuntimeError: could not create GdkPixbuf object
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?18415>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs