parlance / ctcdecode

PyTorch CTC Decoder bindings
MIT License
829 stars 245 forks source link

load_lm appear Segmentation fault (core dumped) #115

Closed Chen1399 closed 5 years ago

Chen1399 commented 5 years ago

`#0 0x00007f79c932ce24 in std::basic_string<char, std::char_traits, std::allocator >::~basic_string() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6

1 0x000056110f8943cc in void std::_Destroy(std::string*) ()

2 0x000056110f89348b in void std::_Destroy_aux::__destroy<std::string>(std::string, std::string*) ()

3 0x000056110f891610 in void std::_Destroy<std::string>(std::string, std::string*) ()

4 0x000056110f88de99 in void std::_Destroy<std::string, std::string>(std::string, std::string*, std::allocator&) ()

5 0x000056110f888acd in std::vector<std::string, std::allocator >::~vector() ()

6 0x000056110f8b8f8a in lm::ngram::Config::~Config() ()

7 0x000056110f8b6b0f in Scorer::load_lm(std::string const&) ()

8 0x000056110f8b6801 in Scorer::setup(std::string const&, std::vector<std::string, std::allocator > const&) ()

9 0x000056110f8b66dc in Scorer::Scorer(double, double, std::string const&, std::vector<std::string, std::allocator > const&) ()

10 0x000056110fa040df in paddle_get_scorer(double, double, char const, char const, int) ()

11 0x000056110f87eea1 in CTCBeamDecoder::CTCBeamDecoder(char const, char const) ()

` There is a error.

Chen1399 commented 5 years ago

std::vector can't destructor.