Mac Miller first gained a following at age 18 with his mixtape “K.I.D.S.” in 2010, and early in his career was known for party-style songs with videos that went viral.

After his 2011 debut “Blue Side Park” was released by an independent label and topped the charts, Miller turned to jazz and funk influences on later albums. Those releases often received praise from critics, but did not perform as well commercially as his first album.

The rapper, whose most popular songs included “Loud,” “Smile Back” and a collaboration with Grande called “The Way,” released his latest album “Swimming” this summer. It hit No. 3 on the Billboard 200 list of top albums.

Rapper Wiz Khalifa, who like Miller grew up in Pittsburgh and was close to him, tweeted on Friday: “Praying for Mac’s family and that he rest easy.”

Mac Miller and Grande broke up earlier this year, after dating for two years, according to media reports.

In May, Miller was arrested in Los Angeles in connection with a car crash and was later charged with driving under the influence.

Grande, after a Twitter user appeared to blame her for the break-up, wrote on the social media platform in May that the relationship was “toxic” and she had “cared for him and tried to support his sobriety & prayed for his balance for years.”

Miller was scheduled to launch a U.S. tour next month, and had tweeted about it on Thursday. “I wish it started tomorrow,” he wrote.