-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parselmouth.praat.call stuck in "Change gender" #68
Comments
Hi, @auspicious3000!
But it definitely sounds like a bug, and should not happen. Do you perhaps have a small script that reproduces the problem and that you can share? This way, I could have a hands-on look at the problem. |
Just to be extra clear: in principle, as far as I know, nothing should stop multiprocessing use of |
After more exploration, I find it does hang forever in some cases, but the cause is not multiprocessing. I will let you know as soon as I find more details. Sorry for the confusion. |
Thank you for the update! I perfectly understand it's hard to figure out the actual problem, whenever multiprocessing is/was involved :-) |
@YannickJadoul I just managed to make a minimal reproducing example. I send it to your email because there is data. Thanks for your help! |
@auspicious3000, that's great! Thank you very much; I did gt your email :-) I will see if I can figure out where things go wrong! |
So, I already sent @auspicious3000 an email about this, but quickly a summary to get something in the public record of the repository:
|
This will be fixed in Praat 6.2.02, according to the answer here: praat/praat#1926 I've looked up the fix, and it's in this commit: praat/praat@f8b74b5 I should also start working on Parselmouth 0.5.0, I guess, which will include a new version of Praat and this fix. |
@YannickJadoul That sounds reasonable! Looking forward to the newer version of parselmouth. |
I got confirmation from @auspicious3000 (per email) that the solution proposed here works: praat/praat#1926 (comment); many thanks to @PaulBoersma! Minor note to add: the |
I'll keep this open until we have a next minor Parselmouth release, which will include an update of Praat and the fixes in 6.2.02. |
Should the argument time_step be set to 0.8/pitch_floor ? |
Agh, you're right. I'm very sorry. Too hasty in typing that reply. I edited the post. Thanks a lot! |
This bug still exists in version 0.4.3. "Change gender" does not throw an exception, it still is caught in an infinite loop. |
@maitycyrus, yeah, I still haven't had the time to finish up 0.5.0. |
Hello,
I have multiple processes of a function calling the parselmouth.praat.call(...). After certain number of iterations, the program hangs forever. Is this because the praat.call() also spawns another subprocess? What would be the recommended way to use praat.call in multiprocessing?
Thanks!
The text was updated successfully, but these errors were encountered: