-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[Support]: Frigate Crashes #8463
Comments
I would suggest using preset-vaapi instead of qsv Also, would be good to see go2rtc logs |
Trying vaapi right now but I remember it crashing also a few months ago. I couldn't view the go2rtc log before it crashed before it looks like it's replacing the file on restart. This is the the current log:
|
For starters I see an issue in your config, you're creating the stream as TDRIVEWAY but then you're referring to it in the camera config as T-DRIVEWAY which is incorrect. |
Fixed it. Any other logs you need to see? |
Not unless there are errors |
So your saying if I don't want it to crash I have to eliminate all streaming erros? I can try but I think it would be extremely hard to have no errors from my wireless cameras. |
I mean this error that was just fixed means previously the camera wasn't working at all. If an occasional error happens that's one thing but ongoing errors should be fixed. |
I'll try for a bit longer. I give the short version of the config with 1 camera but I have 8. There are a lot of errors and I don't know if I can resolve all of them. The fact that it crashes the host system is not sustainable as it stops all my other running services. I've been using Motioneye and it never crashes but of course it has less features. If this doesn't work out I'll have to revert back again which is a bummer because I really like Frigate. |
It's not normal for it to crash the host computer, it is a very rare issue, but camera errors makes it very difficult to diagnose why it would be happening. You can always use docker to set a memory limit on the container. |
So it crashed this morning and these were the last messages in the log. My guess is that some of the frames were bad from the camera feeds. I did limit the memory usage to 4GB out of the 8GB I have and it still froze the host. I will try lowering it to 2GB.
|
This looks like an old version of frigate 0.13. Where happens when it crashes exactly? |
2023-11-05 09:26:13.477734255 [INFO] Preparing Frigate... The host freezes, I cannot ssh in and all my other services are not working. I have to power cycle the server. I had htop open one time when it crashed and all the stats looked normal to me. CPU usage wasn't too high. |
Then I'd suggest following #8470 (comment) |
I'm trying one camera now but I think some extra logging still needs to be done but I'm not sure how or what to log. Any tips are appreciated.
|
Remove your hwaccel args too. |
Done! |
Seems fine for a few days now. Do you want me to add preset-intel-qsv-h264 or preset-vaapi next? |
preset-vaapi |
Running now.
|
I have added more cameras since then and add input_args for ffmpeg but it crashed a few days ago so I removed the input args and it's been running fine for a few days. I am not sure which of these args are causing the issue or a combination of them.
|
These args seem weird in general, is there a reason to not just let it use the default args if everything is working? |
Well, there were a lot of stream errors and after googling, it seemed there were quite a few posts on adding similar args. It was also a rabbit hole thing where I thought the crash was caused by the stream so I spend a lot of time working on the input args. These particular args were from the wz mini hack go2rtc config file. I had different ones when I first started a few months ago. Will test it for a few more days before adding more functionally back in the config file. |
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. |
Describe the problem you are having
I'm running Frigate in docker. After a while it will crash the host computer.
Version
0.13.0-CD64399
Frigate config file
Relevant log output
FFprobe output from your camera
Do you need this?
Frigate stats
No response
Operating system
Other Linux
Install method
Docker CLI
Coral version
CPU (no coral)
Network connection
Wired
Camera make and model
Yi Home
Any other information that may be helpful
The log output above is from the docker instance. Looks like it just crashes without any warning other than the ffmpeg issues.
Trying vaapi right now but I remember it crashing before as well.
The text was updated successfully, but these errors were encountered: