RadicalES / android_external_libcamera

Other
0 stars 0 forks source link

Android 14 - Problem trying to capture an image, PostProcessorJpeg::process fails #2

Open janzwiegers opened 1 month ago

janzwiegers commented 1 month ago

Processing the captured JPEG image failed during processing. More debugging to follow, error as below

DEBUG : pid: 308, tid: 2908, name: provider@2.5-se >>> /vendor/bin/hw/android.hardware.camera.provider@2.5-service_64 <<< DEBUG : #00 pc 000000000003bac8 /vendor/lib64/hw/camera.libcamera.so (PostProcessorJpeg::process(Camera3RequestDescriptor::StreamBuffer)+1496) DEBUG : #01 pc 00000000000358b0 /vendor/lib64/hw/camera.libcamera.so (CameraStream::PostProcessorWorker::run()+256) DEBUG : #02 pc 000000000001a6fc /vendor/lib64/libcamera-base.so (void std::1::thread_proxy<std::1::tuple<std::1::unique_ptr<std::1::thread_struct, std::__1::default_delete >, void (libcamera::Thread::)(), libcamera::Thread> >(void*)+60)

janzwiegers commented 1 month ago

Bug is traced to an earlier mapping of the request/destination buffer that failed. This will cause the JPEG processing to be supplied with an invalid buffer pointer

DEBUG HAL generic_camera_buffer.cpp:188 Mapping: fd=133 bufferLength=716800 flags=3 ERROR HAL generic_camera_buffer.cpp:198 Failed to mmap plane: fd=133 error=Permission denied