Not sure what the solution is but here are two related posts
https://gramps-project.org/bugs/view.php?id=11469