Allowed memory size of<> bytes exhausted (MrdBallTree.php#450)
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 42/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- machine-learning, php
调研方向
从 apps/recognize/lib/Clustering/MrdBallTree.php 第 450 行附近开始,重现多图上传和夜间 cron 作业期间的故障。检查人脸识别聚类路径在报告的 1 GB PHP 限制下如何使用内存。完成的标准是报告的处理过程能够在不出现内存耗尽错误的情况下完成,并且已验证它在这两个触发条件下的行为。
由索引模型根据 Issue 内容生成。
描述
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:
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
- Uploading images (I think it's always with multiple images)
- cron job at night
Debug log
No response
- 主要语言
- PHP
- 星标
- 701
- 派生
- 70
- 平均合并
- 10 天 22 小时
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nextcloud/recognize 的其他 Issue
-
bug
难度 4/5 3-5 天 新手友好度 45/100
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 48/100
-
bug
难度 5/5 一周以上 新手友好度 15/100
-
enhancement
难度 3/5 1-2 天 新手友好度 65/100
查看 nextcloud/recognize 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
woocommerce/woocommerce-paypal-payments#4838 ·
维护者通常 1 天内回复
-
sync-en
难度 1/5 1 小时以内 新手友好度 75/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
nunomaduro/dev-null.sh#1161 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100