Comment 1 for bug 129001

Revision history for this message
Tudor Holton (tudor) wrote :

I, too, have experienced this. I also can't see a trigger for the bug. At one point I thought it was not deallocating memory from old media items, so I put in a thread that reports the memory usage and triggers the garbage collector, but I couldn't see either a gradual increase in memory usage, which would suggest a memory leak, or a spike. So that suggests it's either happening really quickly for some reason, or something else has crashed, like the JMF.

I have now removed the instatiantion of a JMF player for every media item found. It now instantiates a player for every item once, and then waits for the time to be changed from unknown. Once it has a time, it stores the time elsewhere and kills the player. It then creates a new player when the media is moved into the playlist and kills the player when it is removed from the playlist for whatever reason. This should cut down on the memory usage alot just in case. It also allows SYNplayer to handle much more media at a time.