kdik / godot-text-to-speech

MIT License
28 stars 4 forks source link

Window closes instantly when running. #1

Closed EeziPZ closed 11 months ago

EeziPZ commented 1 year ago

Edit: Tested in 3.2 and is working. Must be some conflict with 3.5.

Game window instantly closes when trying to run yield($TextToSpeech2D.say(text, TextToSpeech.VOICE_AWB, speed), "completed")

No errors or debugging output.

Godot version 3.5.1 Windows 10

Created a new project and installed the plugin. Same issue happens with the example scene.

kdik commented 1 year ago

Hi, I was able to reproduce the issue.

3.4.5 works as well, the issues seem to begin starting with 3.5.0 and only on Windows, Linux works fine.

Until I find out the root cause of this a temporary workaround would be to stick with 3.4.5.

teddybear082 commented 1 year ago

Hi do you think the reason with godot 3.5.1 could be because there is not a win64 lib just win 32?

Or actually maybe the issue is this? (mentions something breaking for gdnative in enums?) https://github.com/godot-rust/gdnative/pull/1011

kdik commented 1 year ago

Even though the folder is named win32, the plugin is already 64bit.

I did some debugging. I debugged a bit and the issue seems to be on line 97 in tts.c, but my findings weren't conclusive and I haven't found a fix https://github.com/kdik/godot-text-to-speech/blob/cc9f88841b5749a00b9afdc73d70f3513d3e94ca/src/tts.c#L97

teddybear082 commented 1 year ago

Ok thanks for letting me know and the quick response!!

kdik commented 11 months ago

This issue has been fixed with, the fix is included in version 1.1