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

Matlab crashes when running LCS_ellipse.m #4

Open
XingyunGao opened this issue Mar 3, 2019 · 5 comments
Open

Matlab crashes when running LCS_ellipse.m #4

XingyunGao opened this issue Mar 3, 2019 · 5 comments

Comments

@XingyunGao
Copy link

After compiling the cpp file and generating the "mexmaci64" file successfully (I'm working on MacOS), I ran the "LCS_ellipse.m". However, the Matlab crashed every time I ran this file. Could you please help me figure out the possible causes of this problem? Thank you!

@XingyunGao
Copy link
Author

screen shot 2019-03-03 at 1 41 33 pm

screen shot 2019-03-03 at 1 42 43 pm

screen shot 2019-03-03 at 1 45 22 pm

p.s. These are the screenshots of Problem Report for MATLAB. Hope it will help.

@AlanLuSun
Copy link
Owner

It should work in MacOS although we haven't tested our code in MacOS environment yet and the code could successfully run in 64-bit Windows OS. I think the mex file generated by your computer wasn't a successful file although it had been generated successfully. Please pay attention to the difference of mex generation command between Windows OS and MacOS.

@xiahaa
Copy link

xiahaa commented May 20, 2020

After compiling the cpp file and generating the "mexmaci64" file successfully (I'm working on MacOS), I ran the "LCS_ellipse.m". However, the Matlab crashed every time I ran this file. Could you please help me figure out the possible causes of this problem? Thank you!

I figure out the problem.
How to fix:
line 3199

void freePairGroupList( PairGroupList * list)
{
    if(list == NULL || list->pairGroup == NULL)
    {
        error("freePairGroupList,invalidate free");
        return;
    }
    free(list->pairGroup);
    list->pairGroup = NULL;
    free(list);
    list = NULL;
}

the author free list->pairGroup and list, then call list->pairGroup=NULL, since you have free list, you cannot visit its member.....

@dcmesh
Copy link

dcmesh commented Feb 22, 2022

@xiahaa Just ran into this problem, along with a couple others, but I finally got mine working on mac.

@AlanLuSun As of this post, this bug is still present in the code. Should I make a pull request for this?

@xiahaa
Copy link

xiahaa commented Mar 2, 2022

@dcmesh
I do not think Alan is still maintaining this repository since he hasn't answered any questions since 2-3 years ago...
In fact, I think I have answered and solved more issues than him.....

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

4 participants