Problem with interpolating and mixed function over a submesh in parallel

Thank you Thomas.
So I think I figured out what was wrong. I don’t know how precise this can be but might be of interest to some. Turns out whenever I create my mesh using the OpenCascade Geometry kernel of GMSH this error happens. The same mesh using the Built-in kernel doesn’t cause any problems no matter how many processors I used.