Error message: predictDsurface

Hi,
I have been implementing a muli-session unconditional likelihood model on a fixed trapping grid (~20 m spacing) with a user defined (5 m spacing) habitat mask (3 level factor) and session covariates on Density (there is also 2 group factors, age and sex, for g(0) but I don't think they are germane to the problem).
I'd like to use predictDsurface() to get habitat-specific total estimates of density (i.e. summed across all group combinations) for each session, but on implementing predictDsurface on the fitted model I get the error:
Error in pmax(temp, 0) : cannot mix 0-length vectors with others
which I am unable to interpret
Alternatively I could try the (non-recommended) predict.secr() I suppose?
Thanks for any advice,
James
I have been implementing a muli-session unconditional likelihood model on a fixed trapping grid (~20 m spacing) with a user defined (5 m spacing) habitat mask (3 level factor) and session covariates on Density (there is also 2 group factors, age and sex, for g(0) but I don't think they are germane to the problem).
I'd like to use predictDsurface() to get habitat-specific total estimates of density (i.e. summed across all group combinations) for each session, but on implementing predictDsurface on the fitted model I get the error:
Error in pmax(temp, 0) : cannot mix 0-length vectors with others
which I am unable to interpret
Alternatively I could try the (non-recommended) predict.secr() I suppose?
Thanks for any advice,
James