Again, your detectFace function does nothing except call its self endlessly - that is why it is crashing.