FunASR icon indicating copy to clipboard operation
FunASR copied to clipboard

server got "core dumped" if client disconnect to network and then connect again

Open wbz5087 opened this issue 1 year ago • 2 comments

Our server is running on Ubuntu with docker (funasr:funasr-runtime-sdk-online-cpu-0.1.5) provided using command: nohup bash run_server_2pass.sh \ --model-dir damo/speech_paraformer-large-contextual_asr_nat-zh-cn-16k-common-vocab8404-onnx \ --online-model-dir damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-online-onnx \ --vad-dir damo/speech_fsmn_vad_zh-cn-16k-common-onnx \ --punc-dir damo/punc_ct-transformer_zh-cn-common-vad_realtime-vocab272727-onnx \ --itn-dir thuduj12/fst_itn_zh \ --decoder-thread-num 32 \ --io-thread-num 8 \ --port 10095 \ --certfile 0 \ --hotword /workspace/models/hotwords.txt > log.out 2>&1 &

Our client is c# demo from FunASR. The first connect is correct. image

Then if we disconnect the Internet and connect again. Some error occured. Shown as: image And the Server: image

Now, if I restart the server with "nohup ...", the error still exists: image

wbz5087 avatar Dec 15 '23 10:12 wbz5087

I tried python and html demo just now. When I disconnect the Internet for like 30 seconds, the client crushed (python). Html has no response. I think these demos have no reconnect mechanism, so the server is safe. But in c# demo, there exists reconnect mechanism, so it will cause server to be down.

wbz5087 avatar Dec 18 '23 02:12 wbz5087

The client in C# is contributed by the community and might not be sending data according to the communication protocol, which could lead to server crashes. Similar issues have been fixed before and will be released in the next version.

lyblsgo avatar Dec 18 '23 09:12 lyblsgo

try funasr:funasr-runtime-sdk-online-cpu-0.1.6

lyblsgo avatar Jan 03 '24 08:01 lyblsgo

I will have a try! Many thanks!

wbz5087 avatar Jan 04 '24 05:01 wbz5087