At the height of a popularity that rivaled that of Chaplin , he was arrested and charged with the rape and murder of a young actress , Virginia Rappe , allegedly during a wild party held in a San Francisco hotel room in late 1921 .