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 Zero Camera fails after several minutes #3244

Closed
1 of 13 tasks
PeterBenicky opened this issue Apr 15, 2024 · 2 comments
Closed
1 of 13 tasks

Rpi Zero Camera fails after several minutes #3244

PeterBenicky opened this issue Apr 15, 2024 · 2 comments

Comments

@PeterBenicky
Copy link

Which version are you using?

v1.7.0

Which operating system are you using?

  • Linux amd64 standard
  • Linux amd64 Docker
  • Linux arm64 standard
  • Linux arm64 Docker
  • Linux arm7 standard
  • Linux arm7 Docker
  • Linux arm6 standard
  • Linux arm6 Docker
  • Windows amd64 standard
  • Windows amd64 Docker (WSL backend)
  • macOS amd64 standard
  • macOS amd64 Docker
  • Other (please describe)

Describe the issue

Rpi Zero Camera fails after several minutes ussage (used rtsp and webrtc), returning below error on console:
Message from syslogd@cam002 at Apr 15 10:11:55 ...
kernel:[ 3580.685350] Internal error: Oops: 80000005 [#1] ARM

Describe how to replicate the issue

Using Rpi Zero (2015), 8GB SD card, image Rasberry pi Zero, Legacy 32 bit, follow steps below:

  1. sudo raspi-config, then go to Interfacing options, enable/disable legacy camera support
  2. sudo reboot
  3. sudo apt intstall libcamera0
  4. sudo apt install libfreetype6
  5. wget https://github.com/bluenviron/mediamtx/releases/download/v1.7.0/mediamtx_v1.7.0_linux_armv6.tar.gz
  6. tar -xzf mediamtx_v1.7.0_linux_armv6.tar.gz
  7. edit yml (the yml file is attached as well mediamtx_yml.txt):
    paths:
    cam:
    source: rpiCamera
  8. nohup ./mediamtx &
  9. connect to the camera using rtsp and webrtc as below:
    http://cam001.local:8889/cam/
    rtsp://cam001.local:8554/cam

Did you attach the server logs?

yes
mediamtx.log

Did you attach a network dump?

no

@Ataman
Copy link

Ataman commented Apr 15, 2024

That looks suspiciously similar to this issue: raspberrypi/rpicam-apps#246

The RPi Zero is prone to bugs when doing heavy workloads (The issue is exacerbated with insufficient power supplies). Try the workaround from this comment: raspberrypi/rpicam-apps#246 (comment)

Alternatively, switch to a better power supply.

@aler9
Copy link
Member

aler9 commented May 24, 2024

Hello, as anticipated by @Ataman this is a hardware-related issue that happens when power is not enough for the current workload. Switch to a better power supply or alternatively decrease consumption by disabling WiFi, Bluetooth, LEDs, HDMI or perform underclocking. There are lots of guides on the topic, like this one:
https://blues.com/blog/tips-tricks-optimizing-raspberry-pi-power/

@aler9 aler9 closed this as not planned Won't fix, can't repro, duplicate, stale May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants