findCirclesGrid hangs in c++ but not python

I know the original file is the same, because it’s the same file. I check that the ‘preprocessed’ image—after I blur and grey scale it— is identical by saving it in each implementation and then using beyond compare on the 2 outputs. They are identical.