Closed hengjiUSTC closed 11 months ago
Yeah this is often times coming from receiving more than one concurrent request.
What is the preferred place to fix this? seems if this crash happens the server will stay in error state and can not recover automatically. Some fix I think of:
I'm open for PRs for n°1, it's more of an example project than a real production-ready server.
What is the preferred place to fix this? seems if this crash happens the server will stay in error state and can not recover automatically. Some fix I think of:
- we should use single thread in fastapi and only process one request eachtime.
- will change this(https://github.com/hengjiUSTC/xtts-streaming-server/blob/main/server/main.py#L23) to 1 precent it from happening?
I met the same problem, did you find a solution? @hengjiUSTC @WeberJulian
I add lock to process one request at a time, and seems problem solved
I add lock to process one request at a time, and seems problem solved
I will try it, thank you!
Facing the same issue, cannot do concurrent requests in fastapi, is there a way to fix this?
@mantrakp04 Did you find anything regarding this ?
Describe the bug
I am using code at: https://github.com/hengjiUSTC/xtts-streaming-server/blob/main/server/main.py Building a Fastapi server for streaming TTS service. Got following error
To Reproduce
runnning https://github.com/hengjiUSTC/xtts-streaming-server/blob/main/server/main.py at AWS g4dn.xlarage. With 16GB Gpu and 8G cpu. Using newest 0.20.6 release.
Expected behavior
No response
Logs
No response
Environment
Additional context
I think the error do comes with xttx module when running for long time. Does any one have idea why this happening?