alphacep / unimrcp-vosk-plugin

Open source cross-platform implementation of MRCP protocol
http://www.unimrcp.org
Apache License 2.0
17 stars 11 forks source link

Vosk API returns 'segmentation fault' from time to time #9

Open omerbitikcioglu opened 1 year ago

omerbitikcioglu commented 1 year ago

Gdb debugging results: image image image

Memory leak: image

I encountered a new error in a session:

pure virtual method called
terminate called without an active exception
Aborted (core dumped)
omerbitikcioglu commented 1 year ago

I tried with the Asterisk dialplan below.

[general]
autofallthrough = no

[from-internal]
exten =>100,1,Answer()
    same => n(record),MRCPRecog(p=ums2&&t=5000&b=1&ct=0.7&spl=tr-TR)
    same => n,GotoIf($["${RECOG_COMPLETION_CAUSE}" = "000"]?print:record) ; 000-> Success, 001-> No Match, 002-> No Input

    same => n(print),Verbose(0, RESULT : ${CALLERID(num)}: ${RECOG_INSTANCE()})
    same => n,Set(FILE(/tmp/asr_result_video.txt,,,al,u)=${CALLERID(num)}: ${RECOG_INSTANCE()})
    same => n,Goto(record)

Both segmentation fault and memory leak errors occurred again.

WARNING (VoskAPI:~HashList():util/hash-list-inl.h:117) Possible memory leak: 5118 != 5120: you might have forgotten to call Delete on some Elems
ASSERTION_FAILED (VoskAPI:CuSubMatrix():cudamatrix/cu-matrix-inl.h:41) Assertion failed: (row_offset >= 0 && col_offset >= 0 && num_rows >= 0 && num_cols >= 0 && row_offset + num_rows <= mat.num_rows_ && col_offset + num_cols <= mat.num_cols_)
nshmyrev commented 1 year ago

This is helpful, thank you!