marytts / gradle-marytts-voicebuilding-plugin

A replacement for the legacy VoiceImportTools in MaryTTS
http://mary.dfki.de/
GNU General Public License v3.0
16 stars 12 forks source link

wav task crashes due to resources unavailable #113

Closed soyoungplus closed 4 years ago

soyoungplus commented 5 years ago

I'm adapting the voice-cmu-slt to run on a different much larger dataset, but I am getting this error:


1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':lab'.
> Could not copy file '/home/ubuntu/voice-cmu-slt/build/resources/data/16k-LJ015-0102.lab' to '/home/ubuntu/voice-cmu-slt/build/lab/16k-LJ015-0102.lab'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':wav'.
> Multiple task action failures occurred:
   > unable to create native thread: possibly out of memory or process/resource limits reached
   > A failure occurred while executing de.dfki.mary.voicebuilding.tasks.RunnableExec
      > Cannot run program "/usr/bin/sox": error=11, Resource temporarily unavailable
   > A failure occurred while executing de.dfki.mary.voicebuilding.tasks.RunnableExec
      > Cannot run program "/usr/bin/sox": error=11, Resource temporarily unavailable
   > A failure occurred while executing de.dfki.mary.voicebuilding.tasks.RunnableExec
      > Cannot run program "/usr/bin/sox": error=11, Resource temporarily unavailable
...snipped...

I am not so familiar with gradle, but I assume there are too many threads being spawned and no management of resources (eg a thread pool)

Wondering if you have thoughts on how to fix this?

psibre commented 4 years ago

I assume this will have been fixed by upgrading to the latest Worker API in #116.

Please reopen if the issue persists.