I also have the warning "variance calculation failed" on one of my models, but I really don't see what the problem would be.
I am studying a chimpanzee population and trying to estimate population size using fecal samples. I am comparing different models with the same capture and polygon data, and eventually I will also perform an AIC test. My problem is that variance calculation fails at only 1 model:
> ngogosex <- read.capthist('CaptXYsex-2013-01-08.txt', 'Perimeter-2013-02-01.txt',
+ fmt = 'XY', detector = 'polygon', covnames="Sex")
No errors found

> ngogosex.fit1=secr.fit(ngogosex, trace=FALSE, buffer=5000, groups="Sex",
+ model=list(D~g, g0~g), method='BFGS')
Warning message:
In secr.fit(ngogosex, trace = FALSE, buffer = 5000, groups = "Sex", :
using default starting values
> ngogosex.fit2=secr.fit(ngogosex, trace=TRUE, buffer=5000, groups="Sex",
+ model=D~g, method='BFGS')
Warning messages:
1: In secr.fit(ngogosex, trace = FALSE, buffer = 5000, groups = "Sex", :
using default starting values
2: In secr.fit(ngogosex, trace = FALSE, buffer = 5000, groups = "Sex", :
variance calculation failed
I have already run ngogosex.fit2 with a different polygon file and it worked fine, so I really do not understand what could be the problem here.
Thanks for your help,
Anne-Celine