xlearn
xlearn copied to clipboard
terminate error 'std::logic_error'
_
| |
__ _| | ___ __ _ _ __ _ __ \ / / | / _ / ` | '__| ' \
<| || __/ (| | | | | | | //__/___|_,|| || ||
terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_M_construct null not valid Aborted (core dumped)
I was tried to using xlearn in python code by pip (environment: Ubuntu 18, Python3, gcc, clang... was installed). But I got a problem like above. And There are same open issues #215 #194
The main reason is log_file
parameter was missed while xlearn runned(by python). And this part is in src/solver/solver.cc
. I think this is because of OS version or C compiler version issue. And I found this by c++ debugger. (gdb)
After fix some parameter code on src/solver/solver.cc
and build xlearn again, it works well.
Has anyone solved the problem like this? I share this case for xlearn's user