Question Camera app (oplus/gcam) crashes on start - OnePlus 11

Hi Everyone,
I recently got and rooted a Oneplus 11 (CPH2449) using Magisk following the guides on this forum.
Everything is working fine except for most camera apps. Both the Oneplus Camera app as well as GCam (tried several versions and ports) crash on start. The Oneplus camera app allows me to set my preferences/permissions after clearing cache but the screen then stays black and crashes in less than a second. The GCam app shows maybe a second or two of normal camera images and then crashes all the same. Some simple camera apps from the Playstore do work but seem severely limited in quality (it shows just 12,6MP and video is limited to 1080P).
I did find an older thread for a oneplus 8 or 9 I think that implied Oneplus prevents access to the cameras on rooted devices but I can't seem to find any thread describing the same problem so that seems unlikely to me.
Is there anyone who knows if this is "normal/expected"? Or more importantly can someone confirm it is actually possible to get the Oneplus Camera app functional on a rooted device?
I've seen a bunch of people posting on threads both here and on the Oneplus forum that have GCam working one a Oneplus 11 but none that actually specify if their device is rooted or not.
I'd rather not reset to factory default and configure everything all over again if I am doing it for nothing.

im rooted and cam works fine for me.
do you have any magisk modules installed?

Aside from the Systemless Hosts from Magisk itself and the guide recommended safetynet fix I didn't install any yet because that was about the time I figured out my cam wasn't working properly.
But if it should work fine I might just bite the bullet and start over.
At this point I have no idea atwhen it stopped working. Might have been right after rooting, might not have worked to begin with. Or the Oneplus phone clone tool messed up something since it just crashed halfway through on the new phone. Although it was able to pick up where it left off.
Thanks for the reply!

Aziraphale44 said:
Aside from the Systemless Hosts from Magisk itself and the guide recommended safetynet fix I didn't install any yet because that was about the time I figured out my cam wasn't working properly.
But if it should work fine I might just bite the bullet and start over.
At this point I have no idea atwhen it stopped working. Might have been right after rooting, might not have worked to begin with. Or the Oneplus phone clone tool messed up something since it just crashed halfway through on the new phone. Although it was able to pick up where it left off.
Thanks for the reply!
Click to expand...
Click to collapse
mm I would put my $ on the clone tool.
not sure about op's but I've never had any luck with those on other devices.
Have you tried gcam?

kevp75 said:
Have you tried gcam?
Click to expand...
Click to collapse
Yes I tried several versions, they all have the same issue as the OnePlus cam app.
The weird part is all messaging apps that use the camera like whatsapp, telegram do so without issue.
I am just going to assume I got unlucky at this point, start over and move on.
Thank you for your input!

Related

[Q] Camera doesn't work after installing energy rom?

Hi, I'm a new user, I tried to post on the energy rom thread but am not allowed to.
Also, googled the issue a bit and as far as I searched didn't find similar issues.
I recently bought a htc touch pro2 and flashed it with energy rom. after flashing it, the camera doesn't start (click camera and nothing happens). also i notice when accessing settings, the camera and video tabs don't display (click multimedia > pictures and videos > menu > tools > options)
I am guessing it's some setting that should be changed, but i can't figure out how to do it.
Can you help me?
thanks.
afarcas said:
Hi, I'm a new user, I tried to post on the energy rom thread but am not allowed to.
Also, googled the issue a bit and as far as I searched didn't find similar issues.
I recently bought a htc touch pro2 and flashed it with energy rom. after flashing it, the camera doesn't start (click camera and nothing happens). also i notice when accessing settings, the camera and video tabs don't display (click multimedia > pictures and videos > menu > tools > options)
I am guessing it's some setting that should be changed, but i can't figure out how to do it.
Can you help me?
thanks.
Click to expand...
Click to collapse
Are you sure it worked on the stock rom? You might try flashing back to stock, and then reflashing the custom rom. Might be a bad flash. Random things happens sometimes.
wizardknight said:
Are you sure it worked on the stock rom? You might try flashing back to stock, and then reflashing the custom rom. Might be a bad flash. Random things happens sometimes.
Click to expand...
Click to collapse
It worked. I took some pictures.
In the meantime I flashed again and still doesn't work.
Another thing I noticed is sometimes the windows key/button/pictogram stops working, as in, I click it and nothing happens, but the phone works fine
I also flashed it (again) with a stock rom - seems to be the same I had before having started this whole mess. With the stock rom, there's no camera application at all.
I'm definitely doing something wrong but not sure what.
afarcas said:
It worked. I took some pictures.
In the meantime I flashed again and still doesn't work.
Another thing I noticed is sometimes the windows key/button/pictogram stops working, as in, I click it and nothing happens, but the phone works fine
I also flashed it (again) with a stock rom - seems to be the same I had before having started this whole mess. With the stock rom, there's no camera application at all.
I'm definitely doing something wrong but not sure what.
Click to expand...
Click to collapse
If the stock rom does not have a camera app, then how did you take pictures?
Which version of the TP2 do you have?
I am wondering if you got a flaky phone.
wizardknight said:
If the stock rom does not have a camera app, then how did you take pictures?
Which version of the TP2 do you have?
I am wondering if you got a flaky phone.
Click to expand...
Click to collapse
You have an excellent point. What the original rom and the most recently flashed rom have in common is a lot of at&t icons, so I assumed they're the same.
I don't know how to identify the version of the TP2. I bought a T7373, according to the invoice. Active Sync says I have a T7377.
Somehow I believe this whole mess is my fault, rather than the phone being flaky.
It all started because the old touch diamond 2 has the start button in the bottom left corner whereas this one had the start button in the top left corner. I wanted my button back in its place, so i started digging for a windows 6.5.3 rom...
Sounds like you should read this thread.
wizardknight said:
Sounds like you should read this thread.
Click to expand...
Click to collapse
I did. Before flashing the phone for the first time.
I googled the IMEI as well. According to the IMEI no, it's a HTC Vogue (?).
Anyway, I believe I cleared the version issue, it's HTC Rhodium 100 = T7373.
I think I cleared The missing camera issue as well, meaning that with or without icon, all roms include camera.exe.
Are there any third party apps that check connectivity to the camera (or other camera.exe implementations)?
Thanks,
afarcas said:
I did. Before flashing the phone for the first time.
I googled the IMEI as well. According to the IMEI no, it's a HTC Vogue (?).
Anyway, I believe I cleared the version issue, it's HTC Rhodium 100 = T7373.
I think I cleared The missing camera issue as well, meaning that with or without icon, all roms include camera.exe.
Are there any third party apps that check connectivity to the camera (or other camera.exe implementations)?
Thanks,
Click to expand...
Click to collapse
The Rhod100s are the bastard phones that don't work right half the time with any custom software. They are known for that.
Unfortunately you are on your own with that one. I had the Rhod400. Good luck.
I solved the problem.
Basically, these phones come in two flavors: with one cam and with two cams. The majority has 2 cams and the majority of roms are for 2 cams.
I suspected this might be the issue when I noticed in a comparison chart that T7373 has either one cam or two, also wrote a tiny app to return the exception code and message and the exception returned was "Unknown error" which I then googled and got either bad firmware or bad hardware.
In the meantime my son broke the display of the phone, so I had to fix it, and I also bought a spare stripe for the front phone, the one with the second cam, since it was quite cheap, and I had to fix the phone anyway.
Surprise. Now everything works fine.
So, the moral is, Rhodium is a very nice phone, with a good firmware, just that you need to flash the right firmware for the right model.
I'm interested in any information on how the camera is initialized, maybe I find time tomake changes to one of the versions for the less-lucky people who only have one cam.

Camera not working!!!

I have started with the stock ROM, and used cm13, and even updated to the newest fully stock ROM 3.2.4 and to no avail.
The camera app either force closes or nothing shows up on screen. Every once in awhile the front camera will work, but I'll click the icon to switch to the rear camera and no effect, it just stays on fron t camera.
I've tried many third-party apps, I've tried cm camera fix, everything I can think. Clearing data and coach for the app the whole shabang.
Now I'm ordering a brand new camera module and I will see what happens. But any help and any information will be much appreciated thanks
Was it working when you bought it...what did you do to it before it broke?
it definitely seems like a hardware issue, had it been a software issue a custom rom or 3rd party camera might have resolved it and since you have tried many roms and reverted back to stock too so it doesnt look like a software issue.
GeneralDisaray2 said:
Was it working when you bought it...what did you do to it before it broke?
Click to expand...
Click to collapse
Funny you should ask, because I honestly don't know when it actually started but I do remember wiping userdata so I could unencrypt my phone and thereafter was when I noticed it no longer worked. Don't know if those 2 things correlate because I flashed back to stock (which is encrypted) and still no luck
Did you solve the camera problem ???

Camera not detected at all

So issue started as follows:
a. For a few days, I've noticed that camera will give very blurry photos and videos. I tried a few things (including cleaning laser/camera lens with a cloth), but it wouldn't work.
b. Decided to restart phone today and see if that helps (turn off and on right?)
c. I now get error "Unable to start the camera" when I tap on the camera app.
I have tried the following:
a. install 3rd party app - won't work
b. restart phone (multiple times) - won't work
c. clear data/clear cache, disable, enable, remove permissions and allow permissions for Camera app - won't work
d. reboot phone in safe mode - won't work
e. Go into diagnostic mode using #*#*3434*#*# to test camera. Guess what, there are no options to test camera!
f. Go into diagnostic mode and test flashlight. Flashlight won't turn on anymore. Also, I found that the system's flashlight app is gone.
All this leads me to believe that for some reason the phone is not detecting the camera hardware anymore. I'm out of ideas. I bought the phone overseas, and local HTC told me to return it overseas or pay a handling fee of $100 and they'll look at it, but will probably not be able to do anything anyway.
Phone is just a bit over 1 month old.
Any ideas?
I'm having the same problem. I'm rooted on unlocked HTC 10 on stock 2.41.617.3. I'm S-On. I've tried force stop and delete cache and data. Tried safe mode and tried a 3rd party camera app. I just got by phone back from HTC to repair the camera and it worked before flashing the January security update and rooting it. Afterwards, I now get "unable to start the camera"
Sent from my Galaxy S4 using XDA Labs
NickKG81 said:
I'm having the same problem. I'm rooted on unlocked HTC 10 on stock 2.41.617.3. I'm S-On. I've tried force stop and delete cache and data. Tried safe mode and tried a 3rd party camera app. I just got by phone back from HTC to repair the camera and it worked before flashing the January security update and rooting it. Afterwards, I now get "unable to start the camera"
Sent from my Galaxy S4 using XDA Labs
Click to expand...
Click to collapse
So, I completely wiped data and reset factory settings, but camera still wouldn't start.
Flashed phone back to Taiwanese version, and it's now working, but original issues are back, i.e. blurry camera that can't focus on anything. I restarted phone a few times to see if it would go back to "unable to start the camera", but it's still working, just blurry and unable to focus. I'm still going through the various updates now. Have notification for Nougat. will try that and test camera again.
[UPDATE]
Interesting update: So, I upgraded to Nougat just now, and after restarting, I tested camera, it's not working anymore. Here's my speculation: 1) camera module (hardware) is broken/fkd up/stuffed, but only partly? Whereas Android 6 will let it work, but blurry and no focus, Android 7 just won't let it work at all. That's just my theory that makes a little sense atm. Anyone else?
I think you are correct, i would send it for warranty (if you still have that)
Good luck !
I did a hard reset and the camera started working again.
Sent from my Galaxy S4 using XDA Labs
Mr Hofs said:
I think you are correct, i would send it for warranty (if you still have that)
Good luck !
Click to expand...
Click to collapse
Got mine overseas about a month ago, posting it on Monday.
NickKG81 said:
I did a hard reset and the camera started working again.
Sent from my Galaxy S4 using XDA Labs
Click to expand...
Click to collapse
Lucky! Is yours ANY blurry or is it fully functional? Also, if it stops working again, check whether your flashlight works (mine wouldn't/isn't).
ameel said:
Got mine overseas about a month ago, posting it on Monday.
Lucky! Is yours ANY blurry or is it fully functional? Also, if it stops working again, check whether your flashlight works (mine wouldn't/isn't).
Click to expand...
Click to collapse
It was blurry when I purchased it used. That's why I sent it back to HTC since it was under warranty. It looked like it was a bad auto focus module, although HTC never said so. Fixed and was working well, then today (after the reset I posted about), then today it stopped working. I'm going to RUU tonightor tomorrowand install apps one by one. It seems to be softwa rerelated.
Sent from my Galaxy S4 using XDA Labs
NickKG81 said:
It was blurry when I purchased it used. That's why I sent it back to HTC since it was under warranty. It looked like it was a bad auto focus module, although HTC never said so. Fixed and was working well, then today (after the reset I posted about), then today it stopped working. I'm going to RUU tonightor tomorrowand install apps one by one. It seems to be softwa rerelated.
Sent from my Galaxy S4 using XDA Labs
Click to expand...
Click to collapse
I'm sure it will work if you go to android 6, but it will be blurry. It won't work after you restart in android 7. That's my experience
My wife's 10 was having this issue. Neither a factory reset nor an RUU helped. But randomly it just started working for her. There were app updates from Google for photos and chrome but I have no idea if they're related but nothing else changed. Really strange!
Edit: a day later the camera is not working again.
Sent from my HTC 10 using Tapatalk
I've been experiencing the very same problem and the only thing that helps is hard reset or RUU. It doesn't always work on the first try, but after 3-4 attempts the camera starts working perfectly for a period of time -- sometimes a week, sometimes a month and a half (my personal record, which was set a few days ago, when camera died again). Then I always have one day of the focus getting disabled followed by a complete shutdown with all the symptoms described by OP (no flashlight icon, 'unable to start' message). Has anyone found a permanent solution to this problem?
I have the same problem with my htc
I have the same problem on a non-rooted Verizon HTC 10... the camera app won't open, the flashlight won't work, the camera shortcuts disappeared from the top Nougat menu, and any other app I try says it can't find the camera.
I'm unable to find any troubleshooting or debugging methods yet... any suggestions? I have Android Studio but I haven't learned much of it, I'm wondering if Developer mode or the Studio USB debugging can help...
dhinged said:
I have the same problem on a non-rooted Verizon HTC 10... the camera app won't open, the flashlight won't work, the camera shortcuts disappeared from the top Nougat menu, and any other app I try says it can't find the camera.
I'm unable to find any troubleshooting or debugging methods yet... any suggestions? I have Android Studio but I haven't learned much of it, I'm wondering if Developer mode or the Studio USB debugging can help...
Click to expand...
Click to collapse
A few things that seem to have helped some people are:
removing SD card and restarting the phone without it;
clearing camera app's cache;
uninstalling all 3rd party apps that might be interfering with the camera;
RUU-ing the phone with an official firmware (you don't need root or S-OFF for that, as long as you don't try to downgrade from Nougat to Marshmallow).
Nothing but the last method worked for me. Though it doesn't do the trick every time and even when it does, it is only a temporary solution, as the problem keeps popping up again after a while. Last time the camera in my HTC 10 started working without any software interference from my side: I went on a hike in cold weather and, as I hypothesise, something about it (temperature differential? pressure change?) restored camera functionality for a couple of weeks, after which it died again. This incident led me to believe that this is a hardware problem and the camera module simply isn't securely connected to the motherboard in our phones or something. My wild guess is that RUUing might sometimes help simply because of the heat rewriting firmware produces.
werbliben said:
A few things that seem to have helped some people are:
removing SD card and restarting the phone without it;
clearing camera app's cache;
uninstalling all 3rd party apps that might be interfering with the camera;
RUU-ing the phone with an official firmware (you don't need root or S-OFF for that, as long as you don't try to downgrade from Nougat to Marshmallow).
Nothing but the last method worked for me. Though it doesn't do the trick every time and even when it does, it is only a temporary solution, as the problem keeps popping up again after a while. Last time the camera in my HTC 10 started working without any software interference from my side: I went on a hike in cold weather and, as I hypothesise, something about it (temperature differential? pressure change?) restored camera functionality for a couple of weeks, after which it died again. This incident led me to believe that this is a hardware problem and the camera module simply isn't securely connected to the motherboard in our phones or something. My wild guess is that RUUing might sometimes help simply because of the heat rewriting firmware produces.
Click to expand...
Click to collapse
Oh *smack* sorry I forgot to mention that I already tried clearing the camera app's cache, wiping cache from recovery menu, and factory resetting the phone.
I think it's a hardware issue since I think it got a little wet from sprinklers and I read the phone isn't water resistant, and also that the camera module is flaky anyways... Verizon accidentally cancelled my insurance without telling me and I haven't seen yet that HTC covers it on warranty.
I'll try these other things you suggest, but do you think it would be worth trying to have HTC repair it? It'll be worth it for $350 or less, or I could try a local shop, though I think they'd just do the same thing I would (research it on Google, buy the necessary repair parts, then painstakingly fix it), but I've seen in repair videos that this phone is very fragile and difficult to work with, so I'm not sure all that time and effort would even be worth just buying a new version outright, and I'd like the phone to work for the eclipse!.
Same Problem here, since Saturday... [emoji85]
dhinged said:
I'll try these other things you suggest, but do you think it would be worth trying to have HTC repair it? It'll be worth it for $350 or less, or I could try a local shop, though I think they'd just do the same thing I would (research it on Google, buy the necessary repair parts, then painstakingly fix it), but I've seen in repair videos that this phone is very fragile and difficult to work with, so I'm not sure all that time and effort would even be worth just buying a new version outright, and I'd like the phone to work for the eclipse!.
Click to expand...
Click to collapse
I actually went to a repair shop about a month ago and was told that they were certain part replacement would leave significant marks on the metal body =/ If you carry the phone in a full case, I guess this should not be a big problem. AFAIK, an official HTC repair shop would just replace the phone under warranty in cases like this due to how low simplicity of disassembly was on designers' priority list when 10 was being sketched out, but you're saying Verizon canceled your warranty?
I also face this unable to start camera.
My software no is 2.51.617.11
I live in Myanmar (Burma). No one know this problem including HTC Myanmar.
Apparently there are a handful of us who have faulty cameras. Haven't heard anything from HTC. I have tried everything listed here and more. No luck. The only way my camera works is on older firmware (1.9.xxx.xx) and running Marshmallow.
well my htc 10 started playing up today, camera wont start when you touch the camera app on the screen..ive had this phone for 9 months , my warranty expires in march 2019, ive tried all the above methods none worked, phoned HTC uk up and they said to send it in..i hope they replace it with another unit ?..if they do replace it with another unit will the wrranty be transferred over to that, ie expire in march 2019? i also noticed that the flashlight app doesnt work it just says on screen "loading"..
I have the exact same problem, tried all the suggestions, but still it says 'Unable to start camera'. I even opened up the phone, and replaced the camera with another HTC 10 which had water damage. Problem still exists, which leads me to believe that the camera isn't the issue, it might be the mainboard it's connected to in combination with Nougat? The other case can be that the broken phone I got the camera from might have the same problem.... allthough I think that's unlikely. I'd like to order another camera to make sure its not that, but can't really find one. Anyone got any further with this issue?

[Lineage] Cannot connect to camera / Rear camera and flash not working

I'm getting seriously mad at this crazy issue. My rear camera and flash stopped working a few days ago for no reason at all. I'm running the latest Lineage OS nightly (2018-02-22) but I also tried a couple of older builds, with the same result. I do not have Gapps installed, I only use F-Droid. Phone is rooted.
If I try to open the default camera app I get "Camera Error - can't connect to camera". Then it closes.
Using Barcode Scanner says "Sorry, the Android camera encountered a problem. You may need to restart the device".
Taking pictures or videos with Signal says "camera unavailable" and closes the video window.
Open Camera works if I select the front camera, but selecting the rear camera says "Failed to open camera. Camera may be in use by another application"
Also the flashlight doesn't work: neither the stock widget, nor the "Search Light" app ("The camera is in use by another application").
I killed the stock camera process and cleared cache and data. Nothing.
I did the same for any other app which might be potentially connected to the use of the camera, I had even to reset settings of Signal etc.
I opened a teminal and run
Code:
su
killall mediaserver
killall cameraserver
to no avail.
Eventually I freshly reinstalled another Lineage image, clearing Cache and Dalvik - but no data.
As far as I understand, at this point the next logical step would be a full reset. Either that works or it's an hardware fault. Before arriving at that point, does anyone have some other idea? I would be really thankful.
Thanks and cheers.
Did you solved this problem? I have exactly the same issue on my HTC one m9. The camera worked well before I upgraded to Lineage 15.1 so I soubt that is hardware fault.
alb108 said:
Did you solved this problem? I have exactly the same issue on my HTC one m9. The camera worked well before I upgraded to Lineage 15.1 so I soubt that is hardware fault.
Click to expand...
Click to collapse
Oh gosh, I hope you're wrong! Actually, since I could not manage to solve the problem myself I assumed it was indeed a hardware problem, so I have just ordered a replacement! It will arrive soon! I will let you know as soon as it arrives. Please remind me here if I forget (I do receive notifications)
alb108 said:
Did you solved this problem? I have exactly the same issue on my HTC one m9. The camera worked well before I upgraded to Lineage 15.1 so I soubt that is hardware fault.
Click to expand...
Click to collapse
Hi, I can confirm that (luckily) the new phone's camera works fine it was probably a hardware problem on my old phone (also the flash was not working). Maybe it is the case for your HTC as well?
alb108 said:
Did you solved this problem? I have exactly the same issue on my HTC one m9. The camera worked well before I upgraded to Lineage 15.1 so I soubt that is hardware fault.
Click to expand...
Click to collapse
I forgot to mention: the replacement phone I got is exactly the same as the old one (S4 mini LTE, serranoltexx) and also the Lineage version and apps installed.

Camera Crashing

The camera app is constantly crashing after being open for 5 seconds. I have uninstalled updates, cleared storage, and tried safe mode all with no change. Anyone have any other suggestions?
Same here. After juli security patch, camera not working. Restart, safe mode, still crashing.
Agustus Security patch lavel same, camera still not working. I read an article from https://github.com/jani00/pixel-2-camera-fix and trying with same metode. Now...camera working.
Used magnet neodymium
cocogendut said:
Agustus Security patch lavel same, camera still not working. I read an article from https://github.com/jani00/pixel-2-camera-fix and trying with same metode. Now...camera working.
Used magnet neodymium
Click to expand...
Click to collapse
Working fine here, as it always did.
(stock ; Aug/2020 security patch)
Same here camera started crashing about a month ago. Tried installing other camera apps and even reverted to older version of the official camera app and nothing seems to work. This is not cool as I use several apps that need the camera. Thinking of going back to a previous OS build at this point. If anyone knows a fix please chime in.
also having some issues with my camera. sometimes it just won't focus so I gotta punch the camera a little bit to make it work. made a thread about it in this section.
Updated from source (github), replace with new lens module. I'm stress with this condition, rear camera Taimen totally broken.
https://github.com/jani00/pixel-2-camera-fix
Has anyone updated done a full wipe and updated to Android 11 to see if it fixes? I am still on 10.
Bad Bimr said:
Has anyone updated done a full wipe and updated to Android 11 to see if it fixes? I am still on 10.
Click to expand...
Click to collapse
Can't fixed, still broken.
So what do we do? Is there a fix or do we have to throw away a 2 year old (mine) phone? Very frustrated.
Maybe, replace camera lens with a new one. Later this month I will replace it. Like you, I'm also a frustration. Pixel 2 XL failure at the end of its life. ?

Categories

Resources