Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std::bad_alloc when loading from file using Python interface #148

Closed
yuxhuang opened this issue May 14, 2019 · 2 comments
Closed

std::bad_alloc when loading from file using Python interface #148

yuxhuang opened this issue May 14, 2019 · 2 comments

Comments

@yuxhuang
Copy link

yuxhuang commented May 14, 2019

Hi,

I have a consistently reproducible std::bad_alloc error when trying to load a trained model SVC().load_from_file('/path/to/model'). On Windows,

  File "path\to\thundersvm.py", line 473, in load_from_file
    thundersvm.get_sv(csr_row, csr_col, csr_data, data_size, c_void_p(self.model))
OSError: exception: access violation reading 0x00000000000000AB

And on Linux,

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted (core dumped)

On both Windows and Linux, I built the code from your master branch with CUDA 10.0.

Attached is the model file that causes the error.
SVC.zip

QinbinLi added a commit that referenced this issue May 14, 2019
@QinbinLi
Copy link
Member

Hi @yuxhuang

Thanks for your feedback. We have fixed this bug. You can update the library and try again.

@yuxhuang
Copy link
Author

@GODqinbin thanks, it works fine now. Much appreciated.

@zeyiwen zeyiwen closed this as completed Jun 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants