wildside96 / bst-player

Automatically exported from code.google.com/p/bst-player
0 stars 0 forks source link

Memory leaks on each repeat #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I load and play a .wmv video in WinMediaPlayer, works fine but when repeats 
itselfs, browser's memory increase about 200kb on each repeat. I mean, memory 
leaks.

What is the expected output? What do you see instead?
keep the same memory resource.

What version of the product are you using? On what operating system?
XP, IE6/FF3, GWT 1.7, BST 1.1

Please provide any additional information below.

AbstractMediaPlayer player;
try {
    player = new WinMediaPlayer(GWT.getHostPageBaseURL() +"Media/car.wmv",true,"670px","690px");
    player.setLoopCount(-1);
    player.setControllerVisible(false);             
    } catch(LoadException e) {} 
    catch(PluginVersionException e) {       
    } catch(PluginNotFoundException e) {               
    }

HorizontalSplitPanel hzsp = new HorizontalSplitPanel();
hzsp.setRightWidget(player);

Original issue reported on code.google.com by ricardo.maring@gmail.com on 13 Jun 2010 at 11:13

GoogleCodeExporter commented 9 years ago
Hi,

May I ask which tool you are using to monitor browser's memory?  I can't 
reproduce this problem due to a bug in the API (Issue 24). 

Then, how about setting loopCount to a positive high value?

Regards.

Original comment by sbrah...@gmail.com on 16 Jun 2010 at 9:06

GoogleCodeExporter commented 9 years ago
I answered your Issue 24. Use: player.setLoopCount(0); it repeats 
indefinitely in IE. 

I'm using Windows TaskManager to monitor browser's memory. Also i 
tried setting loopCount to a positive high value but persist the same 
problem. 

i don't know what to do. This browser sesion must be active during the 
24 hours of the day showing videos but the memory leak will make the 
browser stop. 

Original comment by ricardo.maring@gmail.com on 17 Jun 2010 at 3:42

GoogleCodeExporter commented 9 years ago
Which version of WMP are you using?

Original comment by sbrah...@gmail.com on 17 Jun 2010 at 11:19

GoogleCodeExporter commented 9 years ago
With Issue 24 now fixed, this is a rather serious issue.

Original comment by sbrah...@gmail.com on 17 Jun 2010 at 5:00

GoogleCodeExporter commented 9 years ago
I'm Using WMP11.

Also, the problem persist with others files like .mov .flv that VLCPlayer loads.

Original comment by ricardo.maring@gmail.com on 20 Jun 2010 at 4:01

GoogleCodeExporter commented 9 years ago
Some changes to reduce these leaks is now committed with rev 146. You may have 
to build from source.

Notable however is a new module property 'bstplay.enableLogger' which 
enables/disables the Logger widget.  When disabled, all debug messages (from 
DebugEvent) are ignored/suppressed effectively reducing the amount of data in 
memory over time.  It is enabled by default, but can be disabled with the 
following line in your apps module gwt.xml:

    <!-- Disable Logger -->
    <set-property name="bstplayer.enableLogger" value="false"/>

Hope to have your feedback.
Regards.

Original comment by sbrah...@gmail.com on 21 Jun 2010 at 9:38

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r168.

Original comment by sbrah...@gmail.com on 7 Sep 2010 at 4:03

GoogleCodeExporter commented 9 years ago
Browser memory running quite cool for all players with negative 
loopCount/RepeatMode.REPEAT_ALL.

Original comment by sbrah...@gmail.com on 7 Sep 2010 at 4:11