Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rpi camera tests fail in core devices with low memory #1670

Open
1 task
fernando79513 opened this issue Dec 20, 2024 · 1 comment
Open
1 task

Rpi camera tests fail in core devices with low memory #1670

fernando79513 opened this issue Dec 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@fernando79513
Copy link
Collaborator

Bug Description

Some raspi devices are now running the camera tests and they are failing because there is no enough memory to run create some picamera MMAL components

Cert-blocker Test Case

  • cert-blocker

To Reproduce

run:
checkbox-cli run com.canonical.certification::camera-automated

Expected Result

The following camera tests pass:
camera/multiple-resolution-images-rpi_.*
camera/multiple-resolution-images-rpi-attachment_.*
camera/roundtrip-qrcode_.*

Actual Result

All of them fail because an Out of memory error in picamera

Environment

Testing updated snap: core20
Snap version: 20241206
Snap revision: 2497
Snap channel: beta
Kernel: 5.4.0-1120-raspi
Architecture: armhf
Checkbox version: 4.3.0-dev36

Relevant log output

Resolutions test on device: /dev/vchiq
Images will be written to:
/var/tmp/checkbox-ng/sessions/session_title-2024-12-19T16.02.08.session/session-share

mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
Traceback (most recent call last):
  File "/snap/checkbox/11427/checkbox-runtime/lib/python3.8/site-packages/picamera/camera.py", line 456, in _init_camera
    self._camera = mo.MMALCamera()
  File "/snap/checkbox/11427/checkbox-runtime/lib/python3.8/site-packages/picamera/mmalobj.py", line 2279, in __init__
    super(MMALCamera, self).__init__()
  File "/snap/checkbox/11427/checkbox-runtime/lib/python3.8/site-packages/picamera/mmalobj.py", line 631, in __init__
    mmal_check(
  File "/snap/checkbox/11427/checkbox-runtime/lib/python3.8/site-packages/picamera/exc.py", line 184, in mmal_check
    raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Failed to create MMAL component b'vc.ril.camera': Out of memory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/nest-z9ztttb2.afff2ecea64d8e296231a322b31c5eff66a357af53d02e68450b06196366454e/camera_test_rpi.py", line 63, in <module>
    sys.exit(main())
  File "/tmp/nest-z9ztttb2.afff2ecea64d8e296231a322b31c5eff66a357af53d02e68450b06196366454e/camera_test_rpi.py", line 59, in main
    return capture()
  File "/tmp/nest-z9ztttb2.afff2ecea64d8e296231a322b31c5eff66a357af53d02e68450b06196366454e/camera_test_rpi.py", line 44, in capture
    with picamera.PiCamera(resolution=res, framerate=fr) as camera:
  File "/snap/checkbox/11427/checkbox-runtime/lib/python3.8/site-packages/picamera/camera.py", line 431, in __init__
    self._init_camera(camera_num, stereo_mode, stereo_decimate)
  File "/snap/checkbox/11427/checkbox-runtime/lib/python3.8/site-packages/picamera/camera.py", line 459, in _init_camera
    raise PiCameraError(
picamera.exc.PiCameraError: Camera is not enabled. Try running 'sudo raspi-config' and ensure that the camera has been enabled.

Additional context

No response

@fernando79513 fernando79513 added the bug Something isn't working label Dec 20, 2024
Copy link

Thank you for reporting your feedback to us!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CHECKBOX-1716.

This message was autogenerated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant