xlearn icon indicating copy to clipboard operation
xlearn copied to clipboard

terminate error 'std::logic_error'

Open yoonkt200 opened this issue 5 years ago • 0 comments

   _
  | |

__ _| | ___ __ _ _ __ _ __ \ / / | / _ / ` | '__| ' \

<| || __/ (| | | | | | | //__/___|_,|| || ||

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

yoonkt200 avatar Nov 26 '19 04:11 yoonkt200