Всем привет!
У меня есть проблема в работе с моей Raspberry pi 4.
Скрипт на базе Python 3.7 + OpenCV3 падает раз в два дня.
В консоли выдается следующая ошибка:
Traceback (most recent call last):
File "people_counter.py", line 146, in <module>
File "people_counter.py", line 19, in send_osc
File "/home/pi/.virtualenvs/py3cv3/lib/python3.7/site-packages/osc4py3/as_eventloop.py", line 149, in osc_udp_client
File "/home/pi/.virtualenvs/py3cv3/lib/python3.7/site-packages/osc4py3/as_eventloop.py", line 230, in _select_monitor
File "/home/pi/.virtualenvs/py3cv3/lib/python3.7/site-packages/osc4py3/oscscheduling.py", line 167, in create_platform_socket_monitor
File "/home/pi/.virtualenvs/py3cv3/lib/python3.7/site-packages/osc4py3/oscscheduling.py", line 681, in init
File "/home/pi/.virtualenvs/py3cv3/lib/python3.7/site-packages/osc4py3/oscscheduling.py", line 612, in init
File "/home/pi/.virtualenvs/py3cv3/lib/python3.7/site-packages/osc4py3/oscscheduling.py", line 637, in create_monitor_sockets
File "/usr/lib/python3.7/socket.py", line 151, in init
OSError: [Errno 24] Too many open files
Попробовал поднять лимиты:
ulimit -a
ulimit -a выдает такие конфиги:
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 28771
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 500000
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 95
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 28771
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited