dialogos-project / dialogos

The DialogOS dialog system.
https://www.dialogos.app
GNU General Public License v3.0
21 stars 8 forks source link

concurrency issues in MaryTTS node #204

Open timobaumann opened 5 years ago

timobaumann commented 5 years ago

Some sort of concurrency issue when neither "wait until done" nor "wait for previous synthesis to finish" is checked and TTS is called in rapid succession.

Actual behaviour See attached dialog model. counter.txt This sometimes works, sometimes ends up in some sort of deadlock.

Expected behavior Says "fo- thr- tw- one".

Installation information (please complete the following information): Linux, repository

timobaumann commented 5 years ago

I can trace this to marytts.util.data.audio.AudioPlayer#cancel() not returning. @alexanderkoller , could you check whether this is also the issue on MacOS, so might be a Linux/Alsa/Pulseaudio issue? And/or anyone with Windows who could test this?

timobaumann commented 5 years ago

I've pushed some stderr logging to make it easy to find where (if) this locks. Please see https://github.com/timobaumann/dialogos/tree/timo/204 .