Are you checking the 'Use SSL' box under the 'advanced' tab, changing the port to '995' and choosing 'password' as the authentication, while setting up the account?
When I was being asked repeatedly for my gmail password, this seemed to fix it. It never crashed on me though, only the endless...