LOS ANGELES — Opening in theatres amid controversy over animal treatment on set and calls for a boycott, “A Dog’s Purpose” still managed to earn $18.4 million, according to studio estimates Sunday.

Tracking expectations had pegged the family film to open in the mid $20-million range, but it had a healthy debut nonetheless for a movie that cost only $22 million to produce.

Representatives of Universal Pictures, which distributed the Amblin-produced film starring Dennis Quaid, say the opening was in line with their hopes.

Audiences gave the film an “A” CinemaScore, indicating that word of mouth should be positive going forward.

“It’s a great start for what I think is going to be a long-term playout on the title,” said Nick Carpou, Universal’s president of domestic distribution.

First place at the box office went again to M. Night Shyamalan’s multiple personality thriller “Split.” It grossed $26.3 million in its second weekend in theatres — a relatively minuscule 34 per cent drop from its first weekend, which is nearly unheard of for a horror thriller.

Rounding out the top five were “Hidden Figures” in third with $14 million, new opener “Resident Evil: The Final Chapter” in fourth with $13.9 million, and “La La Land” in fifth place with $12.1 million.

Damien Chazelle’s candy colored musical crossed the $100 million mark domestically after earning 14 Oscar nominations that helped fuel its earnings.

“They definitely got a nice boost,” comScore senior media analyst Paul Dergarabedian said. “They’re riding that perfect wave of Oscar attention with the perfect release pattern.”

But even with the newly anointed Oscar nominees and the sleeper hit of “Split,” many eyes were on “A Dog’s Purpose” this weekend. On Jan. 18, TMZ released a video of a frightened dog from “A Dog’s Purpose” that apparently was forced into rushing water during the making of the film. The footage quickly went viral.

PETA called for a boycott of the film, while the studio and filmmakers cancelled its press junket and premiere but still proceeded with releasing the film in over 3,000 locations as planned.

Carpou acknowledged that the video, which he and the filmmakers have said is “highly edited,” surfaced at “a very inopportune moment in the build-up to the release of our movie” and they knew that it would have some effect.

And yet, Carpou said, “It’s very difficult to qualify what is a success for this film by trying to quantify negative result because of some controversy.”

Other industry observers, like Dergarabedian, note that the video and the resulting media attention actually heightened awareness about the movie.

Dergarabedian also thinks that, even without the controversy, the weekend likely would have played out in the same way, with “A Dog’s Purpose” taking second place to “Split.”

“It had an impact, we just don’t know what the impact is,” Dergarabedian said. “To have close to $20 million is a pretty good showing. I really feel like we just don’t know what the impact was. I think it’s a fine result for the film.”

Estimated ticket sales for Friday through Sunday at U.S. and Canadian theatres, according to comScore. Final domestic figures will be released Monday.

1.”Split,” $26.3 million.

2.”A Dog’s Purpose,” $18.4 million.

3.”Hidden Figures,” $14 million.

4.”Resident Evil: The Final Chapter,” $13.9 million.

5.”La La Land,” $12.1 million

6.”xXx: The Return of Xander Cage,” $8.3 million.

7.”Sing,” $6.2 million.

8.”Rogue One: A Star Wars Story,” $5.1 million.

9.”Monster Trucks,” $4.1 million.

10.”Gold,” $3.5 million.

___

Universal and Focus are owned by NBC Universal, a unit of Comcast Corp.; Sony, Columbia, Sony Screen Gems and Sony Pictures Classics are units of Sony Corp.; Paramount is owned by Viacom Inc.; Disney, Pixar and Marvel are owned by The Walt Disney Co.; Miramax is owned by Filmyard Holdings LLC; 20th Century Fox and Fox Searchlight are owned by 21st Century Fox; Warner Bros. and New Line are units of Time Warner Inc.; MGM is owned by a group of former creditors including Highland Capital, Anchorage Advisors and Carl Icahn; Lionsgate is owned by Lions Gate Entertainment Corp.; IFC is owned by AMC Networks Inc.; Rogue is owned by Relativity Media LLC.

___

Follow AP Film Writer Lindsey Bahr on Twitter at: https://twitter.com/ldbahr

Lindsey Bahr, The Associated Press