-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Manual job start --> "unhandeld exception" #208
Comments
Hi @majordomus0
Now the operation is 100% manual. Therefore they must execute it manually. or within a cron or systemd Timers. I have pending to write a wiki about this. 😞
You can make the swap file of the size you want. The interesting thing about using a file is just trying different sizes. When you have a size that works, you can activate it before the analysis, and deactivate it at the end. Keep in mind that having it continuously activated can slow your system. 😉
Seems dup of #199 Please share the content of your /proc/meminfo file.. 😉 |
Thanks for your answer!
Just to clarify that I understood it right: Should I have been more patient and wait longer until the program would have started analysis? This is the content of my meminfo file:
|
The detection of the analysis status is a bit archaic. It tells you stopped, because due to the last error it was never executed yet. Now I do tests .. 😉 |
Hi @majordomus0 Your /proc/meminfo file is valid. 😕 It's just a test .. but you can try applying this patch? 😉
|
After reading up a couple of hours how to patch files on linux/raspbian, it worked out for me :-) Now the process seems to work after patching the file with the --ignore-whitespace command. each analysis of the image stops with the following error:
|
It is memory problem.. Do you have the swap file activated? Note that it does not keep activated between reboots.. On the other hand:
Remember that you must configure more memory to PHP.. 😉
... and finally:
I recommend that you configure 1Gb in the application settings panel .. Higher value will become very slow for the raspberry .. and this value already gives very good results .. 😉 |
First of all, let me say thank you again for helping and the quick answers! After raising my php memory to 3GB (changed the ini in both folders cli+fpm and restarted), and assigning 2GB to the swap file and activating it, I get a
As you told me, I configured 1GB in the Nextcloud application panel of FaceRecog This is a pity, because I thought 4GB of ram on a machine, even if it's a raspi (it's the new model 4) would be sufficient :-( Just for info, this is my
Do you have any other ideas how to solve this besides buying a stronger machine? |
It is still a memory problem, but seeing your numbers of free output found it very strange. It seems that you have 5 GB free, which is more than enough. 😕 First check memory_limit:
Try two more things.. First execute the command with more debug and show me the complete log again.
Then, you can try to force use a smaller image size to analysis..
With this it uses 1024x768 images, and you can try even smaller. But that would not be a real solution. 😞
This configuration is a bit empirical, but it obviously depends on the hardware and we don't test it in ARM. Dlib is probably not optimized for ARM and use more memory.
Sincerely I dont know. You can try.
I also think that today is a good machine.. but the last rappi I used was 1A, so I don't have good memories .. haha. |
Hi Matias
This is my output after using the -vvv parameter
|
Just for your Info: After raising my Memory limit in my Nextcloud to 1.9 Gigabyte, the output is a little bit different.
|
According to this you have the memory_limit applied and 5 GB of memory free. Should be enough. 😞 Do you have any way to monitor memory usage? Personally I recommend netdata, but I don't know how it works with raspberry. Maybe you can open another ssh session in parallel and see it in htop as memory behaves while executing the command. This to corroborate that you are really running out of memory.. You can directly deactivate the memory_limit using
Also try this (If it fails reduce the size to 640*480=499200) to make sure that with smaller image size it works correctly. (Literally memory usage depends linearly on it.) |
You can also know if is the kernel that kills the application by viewing its messages. Use |
Hi @majordomus0 |
I understand that it was fixed in the last release. If the problem still persists please reopen this issue. |
Hi, I have a new issue after having successfully installed facerecognition
My system is a Raspberry Pi 4 with 4GB of RAM, running RaspBian 10 Buster.
Nextcloud 17.0.2.1 with manually installed FaceRecognition App, becauses it was not available via the App Store.
swap file size is 2GB, as Matias told me before
Edit: wrote my swap file was 4GB, actually it was 2GB as matias told me
After installing facerecog. with Matias' help successfully, and after having activated analysis in the NC settings GUI, nothing happened after 24 h , it told me "analysis is disabled", so I decided to manually start the process with
After executing this command, I get this error:
Anybody knows how to fix this? Again, I am no linux/programming pro and would appreciate any type of help, also didn't find any similar threads in the support area of the repository
These are my settings in the nextcloud GUI
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: