Solved the segmentation fault issue, still a bug in solid angle calculation. Changed GSkyRegion::solidangle() return type.