[Q] Can't connect to the Camera.

Quza

Senior Member
Jan 5, 2011
116
6
48
Bamberg
I flashed MIUI on my friends HTC Sensation and now the camera doesn't work anymore.
Here's what I did:
-S-OFF (Tacoroot and Revolutionary tool)
-Flashed V3.33 universal firmware
-Wiped everything, Data, Cache, Dalvik and 4ext: Format everything besides SD-Card (from what I read basically a Super Wipe?)
-Flashed MIUI 2.11.30 from miuiandroid.com
-Flashed GAPPS (gapps-jb-20121011-signed.zip)
-Took 1 picture, the camera.apk then went black and as I restarted it, it brought up the error. "Can't connect to the Camera."
-Wiped the phone again
-Flashed MIUI from this thread http://forum.xda-developers.com/showthread.php?t=1996118
-Flashed a camerafix tinky1 recommended (http://forum.xda-developers.com/showpost.php?p=34901856&postcount=8064)

Camera still isn't working. I hope someone can help me :) Thanks in advance!

/edit1: Flashed CM9, same error.
/edit2: Logcat from MIUI (4.1.2) http://pastebin.com/zqh7Xq24
/edit3: Logcat from Viper ROM http://pastebin.com/SwezGf8V
 
Last edited:

realsis

Senior Member
Sep 30, 2011
1,960
592
0
california
You can do some experimenting and see if it is device related, or rom related by installing a different rom and see if issue still persists. If it does then at least you know what your dealing with and problem lies within the device. If flashing another rom fixed the issue, then you know it was a rom related problem.best wishes

Sent from my HTC Sensation using xda premium
 

Quza

Senior Member
Jan 5, 2011
116
6
48
Bamberg
I flashed the most recent CM9 nightly, same error...
Did I somehow kill the camera? I just wanted to take a picture of our cat :(
 
Last edited:

dennis8

Member
Nov 29, 2012
27
0
0
charleston,usa
I got the same problem , but it starter when I updater to ics (arhd 6.8.0) after that I tried 10 diffrent roms nothing helped I know its Rom releated cause I used the cam like 10 min before I updated tried it the next day with the new Rom and it didn't work all that since ics ther is no ody who can help me about that :(

Sent from my HTC Sensation Z710e using xda app-developers app

---------- Post added at 05:24 PM ---------- Previous post was at 05:19 PM ----------

What I forgot it is just the front cam the main is working do u got the same problem ?

Sent from my HTC Sensation Z710e using xda app-developers app
 

dennis8

Member
Nov 29, 2012
27
0
0
charleston,usa
Try to install a sense rom Like viper s orso and make a complett format except for sdcard that a hint what someone else gave me it didn't help me with my problem but it might help u did u make a nandroid backup and see if that gets it fixed ?

Sent from my HTC Sensation Z710e using xda app-developers app
 

dennis8

Member
Nov 29, 2012
27
0
0
charleston,usa
Hey webharsch
I got a problem with my front camera too is there anyway I could make a logcat too that someone figures out why my front camera doesn't work .... When I change to my front cam and the screen is just black and when I take a pic sometimes it takes a while till I can use my cam again or it just jumps back to the home screen

Is there anyway a logcat can help too figure out what the problem is ?
Sent from my HTC Sensation Z710e using xda app-developers app
 

rzr86

Senior Member
May 21, 2012
8,109
2,455
258
35
Nafpaktos
Hey webharsch
I got a problem with my front camera too is there anyway I could make a logcat too that someone figures out why my front camera doesn't work .... When I change to my front cam and the screen is just black and when I take a pic sometimes it takes a while till I can use my cam again or it just jumps back to the home screen

Is there anyway a logcat can help too figure out what the problem is ?
Sent from my HTC Sensation Z710e using xda app-developers app
from play store there is an app which is called alogcat
install it or look here http://forum.xda-developers.com/showthread.php?p=30446634&postcount=4
 
  • Like
Reactions: dennis8

Quza

Senior Member
Jan 5, 2011
116
6
48
Bamberg
If you know how to use ADB:
"adb logcat -c"
open the camera app
"adb logcat -d > filename.txt"
the file will be saved in the ADB folder, then just paste it to pastebin.com
 
  • Like
Reactions: dennis8

dennis8

Member
Nov 29, 2012
27
0
0
charleston,usa
no dont know how to use it but i can look it up shouldnt be that hard or
i downloaded alogcat ran it and startet the camera when i switched to the front one it went back to the homescrenn then i open logcat and paused it right ?

---------- Post added at 10:23 PM ---------- Previous post was at 10:08 PM ----------

Okay i did it over alogcat and this came out i startet logcat ran the camera switches to the front came made a pic then it said it stop and went back to the home screen then i stop logcat and this came out

http://pastebin.com/zEWxhFXQ

here this one might be better

http://pastebin.com/uxGX9JKM
 
Last edited:

webharsh

Senior Member
May 23, 2012
283
83
0
Reston
You couldn't have told me that before, could you? %&?$!!

/edit: did it
http://pastebin.com/SwezGf8V
The logcat is same. So it means sense ROM did not change anything. I compared your logcat with mine where camera is workinng. I think following lines are the issue -
Code:
I/FD      (  162): [Ola_FaceDetector_Create:135] create num : 12
W/mm-camera(  162): whichCamera no 2nd camera
D/mm-camera(  162): mm_camera_init, open FD: -1
E/mm-camera(  162): mm_camera_init: controlFd is invalid No such file or directory FD: -1
FD seems to be face detection, either which is failing or from the warning above probably your front facing camera is not working. I'm no expert so I've no idea where to go from here.

One thing you can do is, if possible make sure your camera app is trying to connect to back camera and not front facing camera.
Second, check this thread http://forum.xda-developers.com/showthread.php?t=1388574 with similar issue. The issue is also not resolved in that thread but it seems the camera worked for one person when he changed to coredroid ROM (which is sense 3.6).
Third the person in that thread tried to change firmware but it did not help him. But if you disparately want to make your camera work. Go for it upgrade your firmware if not latest otherwise downgrade and see if it makes any difference.

same goes for you dennis8.

[/COLOR]Okay i did it over alogcat and this came out i startet logcat ran the camera switches to the front came made a pic then it said it stop and went back to the home screen then i stop logcat and this came out

http://pastebin.com/zEWxhFXQ

here this one might be better

http://pastebin.com/uxGX9JKM
It seems your logcat are not full (is pastebin cutting your log out) so I can't see if your issue any similar. Try to create a logcat with following -
Start logcat > Start cam > take pic with back cam > switch to front cam > let came fc (or close?) > wait few seconds > stop logcat

Again even with another logcat I may not be able to help any further. So try what I mentioned above to the OP.