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

camera/roundtrip-qrcode_vchiq failed due to PiCamera out of resources #1701

Open
1 task
nancyc12 opened this issue Jan 24, 2025 · 1 comment
Open
1 task
Labels
bug Something isn't working

Comments

@nancyc12
Copy link
Contributor

Bug Description

camera/roundtrip-qrcode_vchiq failed on rpi4b4g, not sure if it relates to low memory issue as #1670.

Cert-blocker Test Case

  • cert-blocker

To Reproduce

  1. Launch the Jenkins job for the given device.

Expected Result

Test passes

Actual Result

Test failed with picamera.exc.PiCameraMMALError: Failed to enable connection: Out of resources

Environment

  • Checkbox Type: Snap
  • Checkbox Version: 4.3.0-dev44
  • OS: UC 20

Relevant log output

Testing device name: vchiq

Input string: xpqAEOvDuD
Generating QR code...
Displaying on screen
Capture image of screen
mmal: mmal_vc_port_enable: failed to enable port vc.null_sink:in:0(OPQV): ENOSPC
mmal: mmal_port_enable: failed to enable connected port (vc.null_sink:in:0(OPQV))0xe495e0 (ENOSPC)
mmal: mmal_connection_enable: output port couldn't be enabled
Traceback (most recent call last):
  File "/tmp/nest-ec5wzv4w.16427a450e537741fc47ed5c55f4b9235c8cabe69831215cfcd65732683b2462/roundtrip_qr.py", line 128, in <module>
    main()
  File "/tmp/nest-ec5wzv4w.16427a450e537741fc47ed5c55f4b9235c8cabe69831215cfcd65732683b2462/roundtrip_qr.py", line 113, in main
    file = capture_rpi(name)
  File "/tmp/nest-ec5wzv4w.16427a450e537741fc47ed5c55f4b9235c8cabe69831215cfcd65732683b2462/roundtrip_qr.py", line 40, in capture_rpi
    with picamera.PiCamera() as camera:
  File "/snap/checkbox/11863/checkbox-runtime/lib/python3.8/site-packages/picamera/camera.py", line 433, in __init__
    self._init_preview()
  File "/snap/checkbox/11863/checkbox-runtime/lib/python3.8/site-packages/picamera/camera.py", line 512, in _init_preview
    self._preview = PiNullSink(
  File "/snap/checkbox/11863/checkbox-runtime/lib/python3.8/site-packages/picamera/renderers.py", line 558, in __init__
    self.renderer.inputs[0].connect(source).enable()
  File "/snap/checkbox/11863/checkbox-runtime/lib/python3.8/site-packages/picamera/mmalobj.py", line 2210, in enable
    mmal_check(
  File "/snap/checkbox/11863/checkbox-runtime/lib/python3.8/site-packages/picamera/exc.py", line 184, in mmal_check
    raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Failed to enable connection: Out of resources

Additional context

No response

@nancyc12 nancyc12 added the bug Something isn't working label Jan 24, 2025
Copy link

Thank you for reporting your feedback to us!

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

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