sonyxperiadev / bug_tracker

Empty repository that is used as a bugtracker for Open Devices project
52 stars 13 forks source link

[Yoshino][Lilac] Open Camera app can't take pictures #402

Closed stefanhh0 closed 4 years ago

stefanhh0 commented 5 years ago

Platform: Yoshino Device: Lilac Kernel version: 4.9.174-gd7ab313501f1 Android version: android-9.0.0_r37 OEM Image: SW_binaries_for_Xperia_Android_9.0_2.3.2_v8_yoshino.img Build: aosp_g8441-userdebug 9 PQ3A.190505.002 eng.stefan.20190514.014237 Version baseband: 1308-8921_47.1.A.16.20

Description I have tried taking photos with the Open Camera app (time: 07:32). The Open Camera isn't able to take resp. save the taken photos. I have tried both front and main camera. I have checked that I have granted all required rights for Open Camera.

In contrast the AOSP Camera app just works fine.

Not so sure whether this is a Open Camera bug or an AOSP bug since I haven't tried on Stock-ROM but I will double check on Stock-ROM as well later.

After I have tried taking photos with open camera I dumped the dmesg and also saved the logcat: dmesg.log logcat.log

Symptoms Taking photos with open camera is not possible.

How to reproduce Install Open Camera and try to take a photo it will not work.

jerpelea commented 5 years ago

the bug was fixed yesterday please recompile your kernel

stefanhh0 commented 5 years ago

I have tested it this morning in on the latest kernel commit (d7ab313501f1) a fresh build that included all the changes that have been integrated yesterday. There it is not working.

I will double check on Stock-ROM later whether it is working or not there. Maybe you can have a second look if there is still something open?

jerpelea commented 5 years ago

I will recheck it after suzu

stefanhh0 commented 5 years ago

Okay cool thanks I've seen you have pushed an additional "Revert msm:camera" commit today, I'll retest on a fresh/clean build.

stefanhh0 commented 5 years ago

I have retested it on a fresh uptodate build (on latest kernel commit 6f8c28697397): Kernel version: 4.9.174-g6f8c28697397 Build: aosp_g8441-userdebug 9 PQ3A.190505.002 eng.stefan.20190514.185903

Tried to take a photo and no photo was saved with open camera using camera v2 api. I have saved dmesg and also logcat from that attempt and found following in the dmesg:

[  410.845533] msm_cam_smmu soc:qcom,cam_smmu:msm_cam_smmu_cb4: No iommu associated with device
[  410.845750] msm_jpeg_attach_iommu: Device attach failed
[  410.845792] msm_jpeg_platform_init: iommu attach failed
[  410.845908] __msm_jpeg_open:760] platform_init fail -19
[  411.593808] msm_cam_smmu soc:qcom,cam_smmu:msm_cam_smmu_cb5: No iommu associated with device
[  411.594034] msm_jpegdma caa0000.qcom,jpeg: Can not attach smmu.
[  411.594118] msm_jpegdma caa0000.qcom,jpeg: QBuf fail

dmesg.log logcat.log

Should the bug then be reopened until it is fixed? I can't open it myself again...

jerpelea commented 5 years ago

I managed to replicate the crash

stefanhh0 commented 4 years ago

Platform: Yoshino Device: Lilac Kernel version: 4.14.176-gf0356fa3bcac:

Android version: android-10.0.0_r36 Software binaries version: SW_binaries_for_Xperia_Android_10.0.7.1_r1_v6_yoshino.img Version baseband: 1307-7511_47.2.A.11.228 Build: aosp_g8441-userdebug 10 QQ2A.200501.001.B3 eng.stefan.20200510.170705

Open camera is still not working on k1.14 but AOSP camera works okay, so practically the same situation as on k4.9 but maybe the reason is different why the camera is not working.

Following seen in logcat:

grep -w E logcat.log|grep 8122 
05-12 06:13:13.383  8122  8158 E ion     : ioctl c0044901 failed with code -1: Not a typewriter
05-12 06:13:34.507  8122  8122 E Camera  : Error 1
05-12 06:13:34.507  8122  8122 E CameraController1: camera onError: 1
05-12 06:13:34.507  8122  8122 E CameraController1:     CAMERA_ERROR_UNKNOWN 

dmesg.log logcat.log

@haxk20 you wanted me to test something newer? Please advice, don't remember what it was...

Haxk20 commented 4 years ago

I wanted to say use the new camera Hal but you do. Weird that open camera doesn't work. I will need a full logcat in that case. Edit: oh I missed it. Thanks. Just woke up. Missing things already

stefanhh0 commented 4 years ago

I postpone testing the new hal until the problems reported in #580 has been mitigated. I don't want to open too many construction sites at the same time on my phone :-)

I have tested it on LA.UM.8.11.r1 branch using commit: https://github.com/sonyxperiadev/camera/commit/a411fb4c2f52b3b56b44c5f2bbe135439c91fa41

AOSP default camera app works fine, tested both front and rear camera.

I have also tested with open camera, it uses a different more advanced API than AOSP camera, correct? However taking a photo shows the same symptom, as it has been reported here initially, and that showed up initially with ODM: SW_binaries_for_Xperia_Android_9.0_2.3.2_v8_yoshino.img

Full logcat and dmesg when taking a photo with open camera: dmesg.log logact.log

Shortly after having tried to take a photo with open camera I ran into a crash/reboot: console-ramoops-0.log dmesg-ramoops-0.log dmesg-ramoops-1.log pmsg-ramoops-0.log

But that might be probably more related to the sensors issue in #580, since the call traces look more like coming from that direction.

stefanhh0 commented 4 years ago

Fixed with the GA of v7 software binaries on kernel 4.14:

Verified using: Platform: Yoshino Device: Lilac Kernel version: 4.14.176-gbf769a2fc861 Android version: android-10.0.0_r36 Software binaries version: SW_binaries_for_Xperia_Android_10.0.7.1_r1_v7a_yoshino.img Version baseband: 1307-7511_47.2.A.11.228 Build: aosp_g8441-userdebug 10 QQ2A.200501.001.B3 eng.stefan.20200524.123100