rhasspy / wyoming-openwakeword

Wyoming protocol server for openWakeWord wake word detection system
MIT License
83 stars 23 forks source link

fix deadlock #2 #3

Closed dumpfheimer closed 8 months ago

dumpfheimer commented 8 months ago

This seems to fix a deadlock that was commonly occurring for me. See issue https://github.com/rhasspy/wyoming-openwakeword/issues/2 for details.

custom trace logs that lead to this DEBUG:wyoming_openwakeword.handler:released audio lock 108 DEBUG:root:released clients_lock: openwakeword: 317 DEBUG:root:got clients_lock openwakeword: 200 DEBUG:wyoming_openwakeword.handler:getting audio lock 108 DEBUG:root:getting state.audio_lock and clients_lock DEBUG:root:getting embeddings_lock and clients_lock: openwakeword: 270 DEBUG:root:getting embeddings_lock: openwakeword: 200 DEBUG:wyoming_openwakeword.handler:got audio lock 108 DEBUG:wyoming_openwakeword.handler:released audio lock 108 DEBUG:wyoming_openwakeword.handler:getting audio lock 108 < server was stuck here
dumpfheimer commented 8 months ago

unfortunately, it locked up over night again. this still seems to be an improvement, as before it often only took a few seconds or minutes

dumpfheimer commented 8 months ago

This seems to work fine now

synesthesiam commented 8 months ago

Thanks!