sebastianmaqueda / xuggle

Automatically exported from code.google.com/p/xuggle
0 stars 0 forks source link

Writing trailers while closing a dangling media container on BLOCKABLE media could cause JVM deadlock #130

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hard to reproduce but:
1) Create a container that is writable and successfully write a header.
2) Do not write the trailer, but let the container fall out of scope
3) Wait for a collection/finalize to occur

If the trailer call blocks, it will end up blocking on the Java finalizer
thread which is bad. 

The fix is to NOT write trailers for people if they forget to do it.  

Original issue reported on code.google.com by art.cla...@gmail.com on 29 May 2009 at 8:55

GoogleCodeExporter commented 8 years ago
Fixed in r596

Original comment by art.cla...@gmail.com on 29 May 2009 at 8:56