Default Camera crashing all the time

Has anyone experienced this bug with camera, I can't even start it up, it has started crashing 2 weeks ago while I was on ViperOne rom, now i have flashed cm11 and still the same, I just can't start it up, tried with force stopping the app, clearing cache/data and nothing
edit: if anyone encounters that sometimes camera is working and sometimes not, you just need to hit the phone around camera
It seems that when my phone has fallen from the table flex cable from camera has been losing contact and that was the issue..


Sent from my One using XDA Premium 4 mobile app
HTC ONE M7