Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Allowed memory size of<> bytes exhausted (MrdBallTree.php#450)

Đang mở
#1,268 22 bình luận 3 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
machine-learning, php
Lĩnh vực
backend, machine-learning

Hướng nghiên cứu

Bắt đầu tại apps/recognize/lib/Clustering/MrdBallTree.php quanh dòng 450 và tái hiện lỗi trong quá trình tải lên nhiều ảnh và cron job ban đêm. Kiểm tra cách đường dẫn phân cụm nhận diện khuôn mặt sử dụng bộ nhớ trong giới hạn PHP 1 GB được báo cáo. Hoàn tất có nghĩa là quá trình xử lý được báo cáo hoàn thành mà không có lỗi cạn kiệt bộ nhớ và hành vi của nó được xác minh cho cả hai trigger.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug priority: normal waiting for more information
Which version of recognize are you using?

8.2.0

Enabled Modes

Face recognition

TensorFlow mode

Normal mode

Downstream App

Memories App

Which Nextcloud version do you have installed?

30.0.4

Which Operating system do you have installed?

Linux 4.18.0-513.5.1.el8_9.x86_64 x86_64

Which database are you running Nextcloud on?

mysql/MariaDB 10.3.39

Which Docker container are you using to run Nextcloud? (if applicable)

No response

How much RAM does your server have?

7.5GB

What processor Architecture does your CPU have?

AMD EPYC Processor (with IBPB) (4 threads)

Describe the Bug

Error in log file (I always get them two at the time). At night I receive them (probably the cron job) and also when uploading (multiple) images.

[PHP] Fout: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 655360 bytes) at /var/www/cloud.DOMAIN.TLD/html/apps/recognize/lib/Clustering/MrdBallTree.php#450
	from ? by -- at 2 apr 2025, 20:49:43

I have these errors for a long time.

My PHP info:

Version: 8.2.12
Memory limit: 1 GB
Max time: 3600
Max. upload size: 1 GB
Frequentie OPcache validation: 2

Extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, random, Reflection, SPL, session, standard, cgi-fcgi, bcmath, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, intl, exif, mysqlnd, PDO, Phar, posix, shmop, SimpleXML, sockets, sodium, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlwriter, xsl, mysqli, pdo_mysql, pdo_sqlite, xmlreader, zip, apcu, igbinary, imagick, msgpack, redis, Zend OPcache

Extra info, probably not relates:

Image

Also after manually downloading the models, this status keeps returning

Expected Behavior

I don't expect an error. I have no clue if this means the image is not analysed

To Reproduce
  1. Uploading images (I think it's always with multiple images)
  2. cron job at night
Debug log

No response

Ngôn ngữ chính
PHP
Star
698
Fork
68
Merge trung bình
18 giờ 34 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nextcloud/recognize

Tất cả issue của nextcloud/recognize

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.