Default Galaxy S2 (i9100) camera not working

Hello

Since like half a year from now I have been suffering from a weird issue: the camera app shows a message "Cannot connect to the camera" and shuts down. No app can access though, torch, other camera apps...

I have discovered that this happens when the phone overheats (what happens very often, I changed the modem and works better, but still. I have wiped, changed the kernel... I am using CM11 Snapshot 7 I belive, shouldnt happenthis ).

After some time, it usually works again. These last days, the situation is awful, camera not working almost every day, this pisses me off.

Any clue on what it could be? When I say overheat, I mean CPU at about 62-65 Celsius degrees (about 148 Farenheit for those using the imperial system). The phone is almost 3 year old, I know I will have to change it very soon, but I would like to be able to use it anyway .

Thanks in advance guys, any clue or you are having the same issue, please post!