magwyz / pastec

Image recognition open source index and search engine
http://pastec.io
GNU Lesser General Public License v3.0
620 stars 175 forks source link

Bad alloc or/and Could not open the input file #28

Closed Droppix closed 8 years ago

Droppix commented 8 years ago

Hi,

I have 2 errors : 1/ test.dat exist (created by api -> Save Index) Input: pastec -i test.dat

Output: Pastec Index v0.0.1 Reading the numbers of occurences. Counting the number of words per image. Loading the index in memory. Reading the visual words file. Could not open the input file.

2/ If I used your file (visualWordsORB.dat) Input: pastec -i visualWordsORB.dat

Output: Pastec Index v0.0.1 Reading the numbers of occurences. Counting the number of words per image. Loading the index in memory. terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted (core dumped)

Only solution work: pastec visualWordsORB.dat, but the file is always initialized.

Thanks for your help