-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
RandomForest segfaults once deserialized. #5060
Comments
Hmmm, I guess this is why the random forest meta example sometimes fails locally... Have you tried to run it in gdb yet? |
Nope, I still need to check properly. |
The stacktrace is the following:
It seems like we have some null pointer here... |
From what I can tell is that |
Thank you @gf712 for the insight! |
If we add
The issue should be caused by this problem below here (taken from the source code).
I am not super familiar with the serialization framework, so are there any possible ways to make it work again? |
Hmm I see, it needs the template parameter. @vigsterkr I guess we need to replace |
When using the python interface, if we serialize and then deserialize a
RandomForest
object, we will get asegfault
if we try to call theapply_regression
method from the deserialized object. See the code below for an example.The text was updated successfully, but these errors were encountered: