I have the same problem as the two people above, after upgrading to Yosemite - it hangs or won't boot when the magsafe power adapter is connected. If the MBP is running on battery it will boot fine and operates normally.
I have a mid 2012 15" MacBook Pro, I upgraded to Yosemite and chose the default setting to use FileVault 2 Encryption. The installation seemed to go well and when I checked the privacy and security settings after installation I could see that FileVault was starting to encrypt my drive (I have a 750gb hybrid hard drive).
However when I restarted the system I started to have problems (please bear in mind that the encryption process was reporting 2 days to completion - this is a background process that is supposed to allow interruption) Then my MBP wouldn't boot at all, it would just hang on the progress bar after I'd entered my password. This was only with the power adapter connected. If I disconnected the power adapter it would boot normally. If I connected the MagSafe adapter once the system has booted the beach ball of doom appeared and the whole thing locked up. I did try launch the activity monitor (and then applied power) but I couldn't glean anything useful.
I have now had to resort to a fresh install of Yosemite with FileVault turned off. I had to erase my main partition to do this. initial testing showed that it was operating normally with the power adapter connected after the fresh install - I'm sure FileVault is the cause.
My theory is that there is a bug in the encryption process which means it can get stuck or stops working correctly - The encryption process will only run when the external power source is applied and this is when I was having trouble. So this seems to match my symptoms. I presume the encryption process attempts to resume at boot or I f there is power connected.
I'm now in the process of running a 20 hour restore over ethernet from my time machine backup. 😢 Fingers crossed. I would give FilwVault 2 a miss.