"Remember" Jason Segal (Nick)?  He's a smart man; he wrote this 2008 comedy with himself as its star & set it in Hawaii
He runs into trouble when 
he finds himself sharing a girlfriend ..... Definitely, Maybe (2008).