u/EquivalentFederal906

POCO X8 Pro camera completely disappears + camerahalserver keeps crashing (MediaTek MT6899)

Hey, I'm having a really weird camera issue on my POCO X8 Pro and I'm trying to figure out whether this is a software/HyperOS issue or an actual hardware failure.

The camera suddenly stops working completely. The stock Camera app doesn't work, and CIT says:

> Get the empty or null camera ID!!

I checked dumpsys media.camera and it reports:

Number of camera devices: 0

Number of normal camera devices: 0

The really weird part is that the camera provider keeps appearing and disappearing every ~5 seconds:

CameraProviderEvent: Camera provider has been presented!

CameraProviderEvent: Camera provider has been removed!

CameraProviderEvent: Camera provider has been presented!

CameraProviderEvent: Camera provider has been removed!

...

This just keeps repeating.

I also captured the actual camerahalserver crash. The important part is:

Fatal signal 6 (SIGABRT)

name: camerahalserver

Abort message:

'[onGetTorchStrengthLevelLocked] Cannot setTorchLevel after setTorchOff - 0:2

(onGetTorchStrengthLevelLocked){#652:vendor/mediatek/proprietary/hardware/mtkcam-android/main/hal/devicemgr/depend/CameraDeviceManagerImpl.cpp}'

The stack trace points into the MediaTek camera HAL:

/vendor/lib64/mt6899/libmtkcam_devicemgr.so

NSCam::CameraDeviceManagerImpl::onGetTorchStrengthLevelLocked()

/vendor/lib64/libmicamera_adapter.so

adapter::AdapterDevice::getTorchStrengthLevel()

/vendor/lib64/libmicamera_aidl_device.so

mivi::service::AidlCameraDevice::getTorchStrengthLevel()

/vendor/bin/hw/mt6899/camerahalserver

Another interesting thing: the flashlight toggle sometimes becomes available for about a second, but tapping it doesn't actually turn the flashlight on. Then it disappears again.

I also checked the running processes while the issue was happening:

ps -A | grep camerahalserver

→ no output, because the HAL server had already crashed.

I've already updated the phone, but the problem came back.

The phone is currently on:

Android 16 / HyperOS 3.0.303.0.WPJMIXM.008

I've also tried the usual camera troubleshooting, but the camera isn't merely crashing — Android is reporting zero camera devices at the framework level.

So I'm wondering:

Has anyone with a MediaTek POCO/Xiaomi phone seen this specific Cannot setTorchLevel after setTorchOff / camerahalserver crash before?

Does this point to a broken camera HAL/software bug, or could a hardware fault cause the MediaTek camera provider to repeatedly register and disappear like this?

I'm trying to determine whether I should keep troubleshooting software or just send the phone to service.

Any ideas would be appreciated.

reddit.com