Rpi 4 & 5 Libcamera & Mmap permission issue on Android 14
jan at radicalsystems.co.za
jan at radicalsystems.co.za
Tue Jun 4 12:26:20 CEST 2024
Hi Libcamera Fundis!
Having a problem capturing an image on Android 14 (& 13).
Tombstone looks like this:
06-03 15:13:03.880 308 578 I DMABUFHEAPS: Using : Non-legacy ION heaps
06-03 15:13:03.880 308 578 I [minigbm:gbm_mesa_internals.cpp(233)]: Found
GPU v3d
06-03 15:13:04.052 308 359 E libcamera: ERROR Buffer
mapped_framebuffer.cpp:230 Failed to mmap plane: Permission denied
.... lots of Permission denied!
06-03 15:13:11.282 308 359 E libcamera: ERROR Buffer
mapped_framebuffer.cpp:230 Failed to mmap plane: Permission denied
06-03 15:13:12.008 308 579 E libcamera: ERROR Camera camera.cpp:675 Camera
in Running state trying acquire() requiring state Available
06-03 15:13:12.008 308 579 E libcamera: ERROR HAL camera_device.cpp:390
'/base/axi/pcie at 120000/rp1/i2c at 88000/imx708 at 1a': Failed to acquire the
camera
06-03 15:13:12.008 308 579 E libcamera: ERROR HAL camera3_hal.cpp:81 Failed
to open camera module '0'
06-03 15:13:12.008 308 579 E libcamera: FATAL HAL
generic_frame_buffer_allocator.cpp:106 gralloc_open() failed: -87
MLKIT Streaming & analyzing works until trying to capture an image the above
happens.
The various Android versions for Rpi5 I could find gave the same issue.
I tried Emteria, AOSP & LineageOS 13 & 14
Android built from Raspberry Vanilla and even replacing with later libcamera
had the same issue.
I'm not sure if this is purely a configuration problem, wrt to policies or
permissions or specifically to the RPi's architecture.
Please help, I can rebuild and test.
I have tried the latest code pulled into RaspVanilla, but had the same
issue.
Regards
Jan Zwiegers
Radical Electronic Systems
Physical Address
14 Cocorico Street
Durbanville
E-mail:
<mailto:jan at radicalsystems.co.za> jan at radicalsystems.co.za
Web:
<http://www.radicalsystems.co.za/> www.radicalsystems.co.za
LinkedIn:
<https://www.linkedin.com/in/jan-zwiegers> www.linkedin.com/in/jan-zwiegers
LinkedIn:
<https://www.linkedin.com/company/radical-electronic-systems>
www.linkedin.com/company/radical-electronic-systems
Cell:
+27 (0)82 554 5657
Tel (VOIP):
+27 (0)21 982 4929
Cell(CPY):
+27 (0)76 224 2224
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20240604/e62c6afd/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 10635 bytes
Desc: not available
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20240604/e62c6afd/attachment.png>
More information about the libcamera-devel
mailing list