High-quality-ellipse-detection icon indicating copy to clipboard operation
High-quality-ellipse-detection copied to clipboard

Matlab crashes when running LCS_ellipse.m

Open XingyunGao opened this issue 5 years ago • 5 comments

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 avatar Mar 03 '19 18:03 XingyunGao

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.

XingyunGao avatar Mar 03 '19 21:03 XingyunGao

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.

AlanLuSun avatar Mar 05 '19 02:03 AlanLuSun

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.....

xiahaa avatar May 20 '20 15:05 xiahaa

@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?

dcmesh avatar Feb 22 '22 20:02 dcmesh

@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.....

xiahaa avatar Mar 02 '22 07:03 xiahaa