Help Camera not working : Camera error (Can't connect to camera)

Search This thread

lemeck

Member
Sep 1, 2020
11
1
Hi guys,

Any tips i bought my phone 2 months ago but recently i'm having a problem with my front camera where it shows can't connect to camera event on rear portrait mode it shows cannot connect to camera.

Tried :
- Upgrading to latest miui 12.0.3.0
- delete data/cache for the camera app
- Used 3rd app camera
- Wiped phone

I'm currently using stock ROM

Thank you,
 
Last edited:

Tinderbox (UK)

Senior Member
Mar 31, 2010
2,325
436
England, UK
Have you run the built in tests;

Try running CIT Mode and run test on all cameras...

To enter CIT Mode Dial *#*#6484#*#*

Check if all cameras are working on CIT Mode
 

andi-h

New member
Sep 10, 2010
4
0
same problem, since the update to android 10 (at the moment a MIUI global 12.0.1) ==> cant use portrait mode : "cant connect t ocamera" . then i get freezes.
CIT teset says, that rear sub camera fails.

I dont think i broke the cam. it seems to be related to the miui 12 update ( android 10).

I dont know how to solve this, and its pretty annoying
 

lemeck

Member
Sep 1, 2020
11
1
Nope still not working after reflashing via fastboot latest ROM

What's your plan after your phone being unlocked?

Tried using MIflash Fastboot ROM begonia_global_images_V12.0.3.0.QGGMIXM_20200902.0000.00_10.0_global.tgz ,
Still no luck,

"Camera error"
Can't connect to camera

I'm not sure what's the ROM version fix for this one :(

:(
p2W45h4
 

lemeck

Member
Sep 1, 2020
11
1
Tried flashing 3 fastboot ROM

No luck guys, Already tried flashing 3 fastboot ROMS , will go to xiaomi warranty center next week for the warranty.

Below are the fastboot ROM versions i tried.

begonia_global_images_V12.0.3.0.QGGMIXM_20200902.0000.00_10.0_global_abde420a62
begonia_global_images_V11.0.6.0.PGGMIXM_20200108.0000.00_9.0_global_4d6344e94f
begonia_global_images_V11.0.5.0.QGGMIXM_20200606.0000.00_10.0_global_a5eb3b87f1

the phone is only 2 months old, First time happened to me with xiaomi the first phone i had with them is Xiaomi Mi 3 </3.
 

lemeck

Member
Sep 1, 2020
11
1
Hi guys here's the error summary when openining camera using the old fastboot



io.reactivex.exceptions.OnErrorNotImplementedException: Attempt to invoke virtual method 'void com.android.camera2.CameraCapabilities.setOperatingMode(int)' on a null object reference

at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:704)

at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:701)

at io.reactivex.internal.observers.ConsumerSingleObserver.onError(ConsumerSingleObserver.java:47)

at io.reactivex.internal.operators.single.SingleMap$MapSingleObserver.onError(SingleMap.java:69)

at io.reactivex.internal.operators.single.SingleObserveOn$ObserveOnSingleObserver.run(SingleObserveOn.java:79)

at io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run(HandlerScheduler.java:109)

at android.os.Handler.handleCallback(Handler.java:873)

at android.os.Handler.dispatchMessage(Handler.java:99)

at android.os.Looper.loop(Looper.java:201)

at android.app.ActivityThread.main(ActivityThread.java:6831)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:927)

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.android.camera2.CameraCapabilities.setOperatingMode(int)' on a null object reference

at com.android.camera.module.BaseModule.setCameraDevice(BaseModule.java:2064)

at com.android.camera.module.loader.FunctionModuleSetup.apply(FunctionModuleSetup.java:116)

at com.android.camera.module.loader.FunctionModuleSetup.apply(FunctionModuleSetup.java:25)

at io.reactivex.internal.operators.single.SingleMap$MapSingleObserver.onSuccess(SingleMap.java:57)

at io.reactivex.internal.operators.single.SingleZipArray$ZipCoordinator.innerSuccess(SingleZipArray.java:121)

at io.reactivex.internal.operators.single.SingleZipArray$ZipSingleObserver.onSuccess(SingleZipArray.java:172)

at io.reactivex.internal.operators.single.SingleObserveOn$ObserveOnSingleObserver.run(SingleObserveOn.java:81)

at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:38)

at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:26)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)

at java.lang.Thread.run(Thread.java:764)



Hope someone can check this thanks
 

gibrandifta

New member
Dec 16, 2017
1
0
Same problem, how to fix this

---------- Post added at 04:54 PM ---------- Previous post was at 04:49 PM ----------

CbXwDrG
 

Nerfpl

Member
May 27, 2012
23
0
Today my camera app broke.
It says "can't connect to camera", "waiting for camera" or stays at black screen.
I tried wiping data/cache.
I did test using hidden menu and all cameras are working.
Other cam apps are working but I prefer stock one.

Phone is Xiaomi mi 9 lite with lastest update MIUI 12.5

Please help. Thanks.