pocketsphinx icon indicating copy to clipboard operation
pocketsphinx copied to clipboard

segmentation fault after n x 4096 bytes written to a text file

Open richardalo opened this issue 6 years ago • 1 comments

I'm trying to run this command pocketsphinx_continuous -hmm /home/richard/test/PSAudio/en-us-adapt -lm /home/richard/test/PSAudio/en-us.lm.bin -dict /home/richard/test/PSAudio/newmerge01.dict -infile ./1001.wav > ./result1001.txt

and I get a segmentation fault. The file ./1001.wav is ~ 191Mbytes I've tried chopping ~10Mbytes off the front of the file, and this seems to have the effect of changing the number of bytes written to the text file. Thus far: 0; 4096; 8192

The version of pocketsphinx is from Debian|stable: pocketsphinx_0.8+5prealpha-2+b1_amd64.deb

I'm unfamiliar with the working of pocketsphinx, and it's been a while since I ran a debugger, so I'll need some guidance on which files you may need to investigate this.

richardalo avatar Feb 09 '19 15:02 richardalo

Hmm. This sounds bad, though it is almost certainly something to do with the memory problems in the 5prealpha front-end.

If you are still interested in trying this, please try the latest version, something like:

pocketsphinx single -hmm en-us-adapt -lm en-us.lm.b-n -dict newmergedict01.dict 1001.wav

dhdaines avatar Sep 07 '22 23:09 dhdaines