High-quality-ellipse-detection
High-quality-ellipse-detection copied to clipboard
Matlab crashes when running LCS_ellipse.m
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!
![screen shot 2019-03-03 at 1 41 33 pm](https://user-images.githubusercontent.com/45549761/53702337-adc39c00-3dba-11e9-8118-63553189c38c.png)
![screen shot 2019-03-03 at 1 42 43 pm](https://user-images.githubusercontent.com/45549761/53702338-adc39c00-3dba-11e9-90ce-cbcd4c207107.png)
![screen shot 2019-03-03 at 1 45 22 pm](https://user-images.githubusercontent.com/45549761/53702339-adc39c00-3dba-11e9-8693-61425ef5889c.png)
p.s. These are the screenshots of Problem Report for MATLAB. Hope it will help.
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.
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 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 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.....