Skip to content
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

Exit abnormally when multiple SYNTH_START commands are posted #8

Closed
iRi-E opened this issue Apr 27, 2011 · 1 comment
Closed

Exit abnormally when multiple SYNTH_START commands are posted #8

iRi-E opened this issue Apr 27, 2011 · 1 comment

Comments

@iRi-E
Copy link

iRi-E commented Apr 27, 2011

When two SYNTH_START commands are successively posted to the same model, if the second one is received before SYNTH_EVENT_START for the first one is emitted, QMAOpenJTalkPlugin shuts down and QtMMDAI crashes.

In this case I get error messages like bellow:

WARNING: JPCommonLabel_push_word() in jpcommon_label.c: First mora should not be short pause.
WARNING: JPCommonLabelPhoneme_convert_unvoice() in jpcommon_label.c: U cannot be unvoiced.

Error: HTS_Label_load_from_fp: label list is not initialized.
セグメンテーション違反です
$

It seems that QMAOpenJTalkPlugin::run() is not thread-safe. I think this function needs mutual exclusion.

@iRi-E
Copy link
Author

iRi-E commented May 8, 2011

I wrote a patch for this bug:

https://gist.github.com/961258

I implemented the mutual exclusion by using QMutex class.

@hkrn hkrn closed this as completed Dec 8, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants