HemaNage / gstreamer-java

Automatically exported from code.google.com/p/gstreamer-java
1 stars 0 forks source link

ElementFactory leaks memory #113

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run Maven build
2. ElementFactoryTest.testGarbageCollection() will fail (approximately 15% of 
the time)
3. If it does not, go to step 1.

I tried increasing the number of iterations from 10 to 1000 but it didn't help. 
I believe something is genuinely preventing the reference from getting 
garbage-collected.

What is the expected output? What do you see instead?

Expected output: test should pass 100% of the time
Actual output: test fails 15% of the time with:

java.lang.AssertionError: Factory not garbage collected
    at org.junit.Assert.fail(Assert.java:91)
    at org.junit.Assert.assertTrue(Assert.java:43)
    at org.gstreamer.ElementFactoryTest.testGarbageCollection(ElementFactoryTest.java:175)

Have you tried to verify this is a gstreamer-java specific issue, and not a 
problem with the gstreamer framework itself?

This issue has to do with Java garbage collection, so it can't be related to 
the gstreamer framework itself.

What version of the product are you using? On what operating system?
SVN revision 579 under Ubuntu 12.04

Original issue reported on code.google.com by cow...@bbs.darktech.org on 14 Sep 2012 at 12:47

GoogleCodeExporter commented 8 years ago
for me it's always finish successfuly

Original comment by lfar...@lfarkas.org on 26 Nov 2012 at 12:24