Open phamson02 opened 3 days ago
As this error happened after I stop the stream, maybe it is better to improve this condition
if (
len(self.char_iter.items) > 0
and self.char_iter.iterated_text == ""
and (not self.char_iter.immediate_stop.is_set())
):
Thank you very much for reporting this issue and especially for that really helpful analysis. Will look into that.
Using CoquiEngine for synthesizing Japanese and occasionally I got this RecursionError. The error trace message is included below.
Upon further investigation, it seems the issue arises because
self.char_iter.immediate_stop
is set toTrue
in the error scenario. Despite this, theplay()
function continues to be called, even thoughself.char_iter
cannot proceed (due toimmediate_stop
is set). A possible fix is to reset thisimmediate_stop
flag here, but I am not sure if this is indended.