What is going on?!

 I don't know if I'm just being stupid because I'm extra emotional lately.. but my boyfriend and I have been together for 14 months and we were long distance for the first 5.. since we are no longer long distant, everything has been going great.. yesterday everything was great.. we both got called into work and everything was fine there.. I worked an 8 and he worked a 12 so he got home later than I did.. I was sleeping this morning when he came in, picked me up and carried me to the guest room and laid me on the bed.. all he said to me was "if I were you, I'd stay as far away from me as possible." He left the room and locked our bedroom door. I tried talking to him and he won't speak to me or even look at me. I'm at a loss here.. 
**UPDATE**
He texted me that he was finishing up from cutting his moms grass and asked if I wanted to do dinner because he wanted to talk. So I agreed to hear his side. We ended up not doing dinner because his mother kept asking him to do things so he wouldn't leave her house 🙄😫.. well, a friend asked me to go out with her to the grocery store, and not wanting to push anything I went along. After I talked to him about it of course. I don't have to "ask", I just do out of respect.. also to give him a chance if he wanted another go at talking. He was it was okay to go and so I went. While I was gone, I get some text about how he still loves me and he doesn't want me to leave. That none of this is my fault and it's all his. I wasn't exactly sure how to respond so I just left it alone. I get home and our bedroom door is locked once again.. so I take a shower and go to lay in the guest room and there's a single carnation (I don't like roses) laying on the bed. I'm still so confused. I have so many unanswered questions and I have no idea what to do.. I love this man with all my heart and I don't want to leave him.. I just can't keep doing this. 

**update** 

So  a couple weeks ago we got into some random small fights and I was so upset.. I was going to work upset and irritable and a friend asked what was wrong.. I broke down and told her what had been going on.. this friend is a mutual friend at our job and I vented to her.. i trust her very much.. the 3 of us and her fiancée are very close.. she confronted him about it one night at work and everything worked itself out.. maybe I was wrong for venting to a friend, but I had to talk to someone.. I bottle it up and then I become upset and it's not good.. come to find out he was upset because she confronted him.. he doesn't like his personal stuff told to people and I respect it but he doesn't mind if I vent to her.. so I do because she knows him and they have similar past so she helps me understand and see another side.. I thought friends were for venting things too.. he has a buddy he always vents to about everything including something's from our relationship.. so long, confusing story is, he's upset because I vented to a friend..