blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
17.31k stars 1.6k forks source link

After a few minutes HA supervisor crashes #1017

Closed delzear closed 3 years ago

delzear commented 3 years ago

Describe the bug I installed Frigate NVR on monday. Configured everything, could see my 3 cameras and I was detecting objects too.

After a few hours, I notices that my HA had crashed, tried to SSH in to reboot, could not connect. The only thing I could do is unplug my RPI4 4GB. After the reboot every thing was fine. I kept an eye on it and after 5 minutes everything went down.

I had to turn off Frigate to keep my HA up and running.

Version of frigate Output from /api/version

Config file Include your full config file wrapped in triple back ticks.

  host: 192.168.x.ha
  port: 1883
  topic_prefix: frigate
  client_id: frigate
  user: user
  password: password
detectors:
  coral:
    type: edgetpu
    device: usb

cameras:
  # Name of your camera
  salon:
    ffmpeg:
      inputs:
        - path: rtsp://user:password@192.168.x.z/h264Preview_01_sub
          roles:
            - detect
            - rtmp
            - clips
            - record
    width: 640
    height: 480
    fps: 5
    clips:
      enabled: True
      objects:
        - person
      retain:
        # Required: Default retention days (default: shown below)
        default: 10
        # Optional: Per object retention days
        objects:
          person: 15
    snapshots:
      enabled: True
      bounding_box: True
    objects:
      # Optional: list of objects to track from labelmap.txt (default: shown below)
      track:
        - person
      # Optional: filters to reduce false positives for specific object types
      filters:
        person:
          # Optional: minimum width*height of the bounding box for the detected object (default: 0)
          min_area: 500
          # Optional: maximum width*height of the bounding box for the detected object (default: 24000000)
          max_area: 100000
          # Optional: minimum score for the object to initiate tracking (default: shown below)
          min_score: 0.5
          # Optional: minimum decimal percentage for tracked object's computed score to be considered a true positive (default: shown below)
          threshold: 0.7
    detect:
      enabled: True
      max_disappeared: 15

  # Name of your camera
  porte:
    ffmpeg:
      inputs:
        - path: rtsp://user:password@192.168.x.y/live
          roles:
            - detect
            - rtmp
            - record
    width: 1920
    height: 1080
    fps: 5
    clips:
      enabled: True
      objects:
        - person
      retain:
        # Required: Default retention days (default: shown below)
        default: 10
        # Optional: Per object retention days
        objects:
          person: 15
    snapshots:
      enabled: True
      bounding_box: True
    objects:
      # Optional: list of objects to track from labelmap.txt (default: shown below)
      track:
        - person
      # Optional: filters to reduce false positives for specific object types
      filters:
        person:
          # Optional: minimum width*height of the bounding box for the detected object (default: 0)
          min_area: 500
          # Optional: maximum width*height of the bounding box for the detected object (default: 24000000)
          max_area: 100000
          # Optional: minimum score for the object to initiate tracking (default: shown below)
          min_score: 0.5
          # Optional: minimum decimal percentage for tracked object's computed score to be considered a true positive (default: shown below)
          threshold: 0.7
    detect:
      enabled: True
      max_disappeared: 15

  # Name of your camera
  auto:
    ffmpeg:
      inputs:
        - path: rtsp://user:password@192.168.x.x/live
          roles:
            - detect
            - rtmp
            - record
    width: 1920
    height: 1080
    fps: 5
    clips:
      enabled: True
      objects:
        - person
      retain:
        # Required: Default retention days (default: shown below)
        default: 10
        # Optional: Per object retention days
        objects:
          person: 15
    snapshots:
      enabled: True
      bounding_box: True
    objects:
      # Optional: list of objects to track from labelmap.txt (default: shown below)
      track:
        - person
      # Optional: filters to reduce false positives for specific object types
      filters:
        person:
          # Optional: minimum width*height of the bounding box for the detected object (default: 0)
          min_area: 500
          # Optional: maximum width*height of the bounding box for the detected object (default: 24000000)
          max_area: 100000
          # Optional: minimum score for the object to initiate tracking (default: shown below)
          min_score: 0.5
          # Optional: minimum decimal percentage for tracked object's computed score to be considered a true positive (default: shown below)
          threshold: 0.7
    detect:
      enabled: True
      max_disappeared: 15

Computer Hardware

Camera Info:

asherw commented 3 years ago

I wonder if you're pushing your pi too far. Could you monitor your cpu and memory after you turn on frigate?

aeozyalcin commented 3 years ago

@delzear are you still having this issue? Can you share the frigate logs?

delzear commented 3 years ago

@asherw No sorry I uninstalled the addon. Could not get the logs, nothing was working!

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.