Wallet crashes when I enter passphrase

So after updating the client I tried using my old wallet.dat file, but each time I put in my passphrase either
through client or console it gives me this messege.

I downloaded the old client and opened the wallet from there, so I could dump my private key and imported it to the new client. All seems to work now.