Happened again, and quickly this time....

"AudioDecoder-2" daemon prio=5 tid=0x02d95e78 nid=0x1714 in
Object.wait() [7aff000..7affd8c]
at java.lang.Object.wait(Native Method)
- waiting on <0x106a4088> (a
com.slim.softsqueeze.audio.AudioBuffer)
at java.lang.Object.wait(Object.java:429)
at
com.slim.softsqueeze.audio.AudioBuffer.write(AudioBuffer.java:275)
- locked <0x106a4088> (a
com.slim.softsqueeze.audio.AudioBuffer)
at
com.slim.softsqueeze.audio.AudioDecoder.decodeFrame(AudioDecoder.java:336)
at
com.slim.softsqueeze.audio.AudioDecoder.run(AudioDecoder.java:313)
at java.lang.Thread.run(Thread.java:534)

"AudioStream-2" daemon prio=5 tid=0x072e8c00 nid=0x1304 in
Object.wait() [797f000..797fd8c]
at java.lang.Object.wait(Native Method)
- waiting on <0x10ebbb80> (a
com.slim.softsqueeze.audio.AudioBuffer)
at java.lang.Object.wait(Object.java:429)
at
com.slim.softsqueeze.audio.AudioBuffer.write(AudioBuffer.java:223)
- locked <0x10ebbb80> (a
com.slim.softsqueeze.audio.AudioBuffer)
at
com.slim.softsqueeze.audio.AudioStream.run(AudioStream.java:76)
at java.lang.Thread.run(Thread.java:534)

"AudioDecoder-0" daemon prio=5 tid=0x072f4520 nid=0xfc runnable
[79bf000..79bfd8c]
at java.lang.Thread.yield(Native Method)
at
com.sun.media.codec.audio.mp3.JS_MP3DecoderStream.decodeNextFrame(JS_MP3DecoderStream.java:195)
at
com.sun.media.codec.audio.mp3.JS_MP3DecoderStream.read(JS_MP3DecoderStream.java:146)
- locked <0x10d64f38> (a
com.sun.media.codec.audio.mp3.JS_MP3DecoderStream)
at
com.slim.softsqueeze.audio.AudioDecoder.decodeFrame(AudioDecoder.java:332)
at
com.slim.softsqueeze.audio.AudioDecoder.run(AudioDecoder.java:313)
at java.lang.Thread.run(Thread.java:534)


Looks like AudioDecoder-0 doesn't know that it's done decoding.

No AudioDecoders subsequent to that have been cleaned up either. I have
0,2,3,4 hanging around at this point (1 did get cleaned up...)

One idea is to not make these deamons, but manage them directly. If you
can go to Java 1.5 (Tiger) there's some great new stuff in
java.util.concurrent for pooling and managing threads.

-bill


-- 
wyldbill
_______________________________________________
Discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss

Reply via email to