-
-
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
Error freeing memory LibSVM when exiting sample application #5115
Comments
I found that it is not a svm issue: every time a SGVector goes out of scope there is this error
|
sorry for the late reply! i had problems in the past to run shogun on windows, could you please share more info about your development environment? SGVector and SGMatrix are autoreferenced, so if they go out of scope and nobody holds reference to it, it'll be destructed. btw: if you are around irc/gitter/matrix you can ping us there and have a sync discussion about this |
I am using Microsoft Visual Studio Enterprise 2019 Version 16.7.1 x64, Windows SDK 10.0.18362.0, using CMAKE generated projects. Shogun project preprocessor defines are> The same issue happens with the |
try the develop branch instead! :) |
@karlnapf unfortunately that will not work.... |
@spiovesan i'm a bit puzzled... if you use master, how come you dont have SG_REF/UNREF calls in your code? |
Sorry my fault, It was the |
@spiovesan oh ok that is then rather interesting, coz as said i had trouble running code itself... the in case of the example you've given:
this is basically a simple function you've created and called? and once the function returns you get that error? |
I deleted everything from that sample and wrote these few lines to verify that the issue is not related to anything else:
When the variables go out of scope leaving the brackets, you get the error in the |
ooooh 🐙 |
This is the stack trace
and the debugger stops here, where line 186 is last brace in
|
so the solution is here: #4927 |
I manually changed the my cloned develop branch with your 868a7ab commit and it works. Waiting for the merge into the toolbox. |
@spiovesan that's great news! thnx a lot for this feedback! |
I found a new issue in the classifier_mklmulticlass.cpp sample.
but that function allocates memory data in mkl\MKLMulticlass.cpp at line 436 with a
then with the changes in SGVector.cpp we did
the dtor fails to free the |
I build shogun master on Windows 10 x64, VisualStudio 2019.
I built the sample classifier_minimal_svm, it works but I get this error exiting the application
This is the stack trace:
I see in previous release there was this line of code now removed
The text was updated successfully, but these errors were encountered: