Thanks, I'll try that route. Leak is pretty severe in that it takes up about 10MB of memory every time I re-load the video. So in little time my little device fills up.
I'm going to try experimenting with the EOS events to see if I can trigger a loop event. Maybe that will work. On Mon, Dec 17, 2012 at 2:59 PM, Adam Bark <[email protected]> wrote: > On 17/12/12 18:58, Blaine Booher wrote: > > Any takers? I'm sure it's an easy fix, but this memory leak is completely > hosing my application. > > > On Friday, December 14, 2012 2:37:24 PM UTC-5, Blaine Booher wrote: >> >> hi guys, >> >> how can i properly restart a pyglet.media.Player() instance? >> >> i've tried tearing it down and rebuilding (deleting all instances) but >> I get a memory leak. I've tried player.seek(0) which causes all kinds of >> issues. I've tried dispatch_event('on_eos') which resets the video but not >> the audio. >> >> i don't mind deleting the source and player and then rebuilding... but >> the memory leak issue is a huge pain. >> >> what else can i try? >> > > Can you open an issue on googlecode please? Put what OS you're using on > there and how exactly you're trying to delete all of the instances. Do you > know that in python things don't get cleared up immediately? How severe is > this memory leak? > > -- > You received this message because you are subscribed to the Google Groups > "pyglet-users" 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/pyglet-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "pyglet-users" 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/pyglet-users?hl=en.
