Smith 's fourth film , '' Dogma '' , featured an all-star cast and found itself mired in controversy . The religious-themed 1999 comedy , which starred a post - '' Good Will Hunting '' Ben Affleck and Matt Damon , as well as Chris Rock , Salma Hayek , George Carlin , Alan Rickman , Linda Fiorentino , and Smith regulars Jason Lee and Jason Mewes , raised criticism by the Catholic League . The film debuted at the 1999 Cannes Film Festival , out of competition . Released on 800 screens in November 1999 , the $ 10 million film earned $ 30 million
1999 Cannes Film Festival
1999 Cannes Film Festival
Kevin Smith