“buffer overflow detected”

I want to test my 360.000 words German speech model, but unfortunately I got an error message. Simon displays the following text:

The recognition reported the following error:
Failed to setup recognition: Julius did not initialize correctly

I will recompile the model, then test again.

Update May 7, 2012: I tested it again – almost the same error message. Obviously, it is difficult to initialize Julius when the active vocabulary contains 360.000 words.

Update 2: It is possible to recognize a dictionary of up to 50.000 words. If the dictionary is bigger, then an error message appears (see link above).

Update 3: On my computer (Linux Mint 12) is julius version 4.1.5 installed. The current version is version 4.2.1. Maybe I should install the latest version of julius.

Update 4: Maybe I should compile Julius from source:

When you want to change some sompile-time settings of Julius (ex. vocabulary size limit or input length limit, search algorithm variants. …). you should compile Julius from the source codes.

Is there a vocabulary size limit of Julius that comes with the pre-packaged julius 4.1.5? Should I remove this installation from my computer, and compile instead from source? There are specific libraries required to install julius. Probably, I already have them installed. Now I try to install Julius:

cd /home/ubuntu/Documents/julius-4.2.1

And now I have a problem:

./configure
creating cache ./config.cache
checking host system type… x86_64-unknown-linux
checking host specific optimization flag… no
checking for gcc… gcc
checking whether the C compiler (gcc ) works… yes
checking whether the C compiler (gcc ) is a cross-compiler… no
checking whether we are using GNU C… yes
checking whether gcc accepts -g… yes
checking how to run the C preprocessor… gcc -E
checking for a BSD compatible install… /usr/bin/install -c
checking for rm… /bin/rm
checking for Cygwin environment… no
checking for mingw32 environment… no
checking for executable suffix… no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating mkbingram/Makefile
creating mkbinhmm/Makefile
creating adinrec/Makefile
creating adintool/Makefile
creating mkss/Makefile
creating generate-ngram/Makefile
creating jclient-perl/Makefile
creating man/Makefile
configuring in mkgshmm
running /bin/sh ./configure –cache-file=.././config.cache –srcdir=.
loading cache .././config.cache
checking for a BSD compatible install… (cached) /usr/bin/install -c
checking for rm… (cached) /bin/rm
checking for perl… /usr/bin/perl
checking for Cygwin environment… (cached) no
checking for mingw32 environment… (cached) no
checking for executable suffix… (cached) no
updating cache .././config.cache
creating ./config.status
creating Makefile
creating mkgshmm
configuring in gramtools
running /bin/sh ./configure –cache-file=.././config.cache –srcdir=.
loading cache .././config.cache
checking host system type… x86_64-unknown-linux
checking host-specific optimization flag… no
checking for gcc… (cached) gcc
checking whether the C compiler (gcc ) works… yes
checking whether the C compiler (gcc ) is a cross-compiler… no
checking whether we are using GNU C… (cached) yes
checking whether gcc accepts -g… (cached) yes
checking how to run the C preprocessor… (cached) gcc -E
checking for a BSD compatible install… (cached) /usr/bin/install -c
checking for Cygwin environment… (cached) no
checking for mingw32 environment… (cached) no
checking for executable suffix… (cached) no
checking host specific optimization flag… skipped
checking for rm… (cached) /bin/rm
checking for perl… (cached) /usr/bin/perl
checking for yywrap in -lfl… no
configure: error: flex library not found! installation terminated
configure: error: ./configure failed for gramtools
ubuntu@ubuntu-MS-7597 ~/Documents/julius-4.2.1 $

It doesn’t seem to work. I should install the flex library. Now I do the following:
sudo apt-get install flex
And now again in the Linux Mint terminal:
./configure
make
sudo make install (I don’t know whether the sudo is required or not)

It didn’t work out. I think that I will stick to the pre-packaged installation.

Tags:

One Response to ““buffer overflow detected””