-
Notifications
You must be signed in to change notification settings - Fork 0
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
Chance of reboot when uploading files #4
Comments
I got this screenshot from monitoring the camera performance and found it is when uploading files, the CPU is highly occupied by the curl request. This might be the issue that takes place. And I also found that when uploading large files, it is very slow to complete the 2 chunks of one file's transmission. Basically, the coding follows the API's best practice as the doc mentions, but the issue still exists. |
I remember during the tests of the initial stage of this repo code, it has no signs of reboot cases, there is one non-decent thing about using curl to upload files when using the option curl: option --data-binary: out of memory
curl: try 'curl --help' for more information the file upload is fast and complete by this way, I just cannot stand this message, so I changed the input of curl by using Right now, I don't think it is a good way to use it, because it will increase memory usage. It returns to the previous situation when I changed the code as previous, using Finally, I find why I cannot get rid of the standard error because I put the following in the code: # -o /dev/null \
&> /dev/null The commented-out line After removing the commented line, the curl output is clean ✌️ Update:: The root cause of reboot is here: Resolved! |
After adding the headers option |
when uploading large files (>4Mb), the camera has a chance of rebooting. It doesn't happen to each large mp4 file uploading, after uploading several large files, the camera reboots at some time.
The text was updated successfully, but these errors were encountered: