On Fri, Oct 7, 2011 at 1:22 AM, xcoder <[email protected]> wrote:
> i'm using python cocos2d and pyglet and I developed the program is > more than long animations are also very high memory (some of the > animations the same). and finally my program has excepted error : > MemoryError. and crash. Please help me urgently. > > my sample code is : > > explosion_seq = pyglet.image.ImageGrid(imgs, 15, 10) > sprite_anim = > Sprite(pyglet.image.Animation.from_image_sequence(explosion_seq, > anim_speed)) > vidlayer.add(sprite_anim,z=1) > > -- > At first look theres nothing strange there. Talking about memory leaks, theres issue 169 in cocos bug tracker with leaks related to tilemaps, and theres some leak in pyglet related to text. You can investigate by selectively disabling some scene parts to try to isolate the culprit. Also, you can read about python gc module and pepper your code with appropriate gc calls to see if there are noncollectable objects. For more help from the list probably you need to build a small runnable script that manifest the problem, and upload with the media somewhere. -- claudio -- You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cocos-discuss?hl=en.
