I'm having a strange problem that I think is related to pulseaudio, even though it doesn't seem logical.
I'm writing a Java application for decoding and displaying video streams from an ip camera.
I use Xuggler for decoding.
After having trouble with the audio, I followed this guide to make Java Sound Engine available:
Then I got the sound working.
But my Java application needs to run some Linux commands such as "ping", "amixer" and "wget" from time to time.
The Java code I'm using for calling those commands is as follows:
Every time this code is ran, I get the following error:
Process p = Runtime.getRuntime().exec(command);
exitCode = p.waitFor();
Assertion 'pa_atomic_load(&(b)->_ref) > 0' failed at pulsecore/memblock.c:589, function pa_memblock_unref(). Aborting.
Then the application dies.
Before upgrading from Ubuntu 10.04 to 12.04 I had OSS (Open Sound System) installed, and it worked perfectly.
But OSS is deprecated.
Does someone know what may be the problem?
Are there any libraries that needs an update?