Skip to content

Allowed memory exhaustedΒ #1228

@zycker

Description

@zycker

Which version of recognize are you using?

8.2.0

Enabled Modes

Face recognition

TensorFlow mode

WASM mode

Downstream App

Memories App

Which Nextcloud version do you have installed?

30.0.4

Which Operating system do you have installed?

Proxmox 8.3.2 LXC container

Which database are you running Nextcloud on?

unknown

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

27.4.1

How much RAM does your server have?

16GB

What processor Architecture does your CPU have?

x86_64

Describe the Bug

No face detected for just my user (180Go of pictures), works fine for the other users.
Manually run, here is the ouput :

`docker exec --user www-data -it nextcloud-aio-nextcloud php -d memory_limit=15000M occ recognize:cluster-faces --batch-size 200

Clustering face detections for user User2

ClusterDebug: Retrieving face detections for user User2

ClusterDebug: Not enough face detections found

Clustering face detections for user User3

ClusterDebug: Retrieving face detections for user User3

ClusterDebug: Not enough face detections found

Clustering face detections for user User1

ClusterDebug: Retrieving face detections for user User1

ClusterDebug: Found 500 fresh detections. Adding 50 old detections and 3727 sampled detections from already existing clusters. Calculating clusters on 4277 detections.

ClusterDebug: Clustering complete. Total num of clustered detections: 183

Clustering face detections for user User4

ClusterDebug: Retrieving face detections for user User4

ClusterDebug: Not enough face detections found

Clustering face detections for user User5

ClusterDebug: Retrieving face detections for user User5

ClusterDebug: Not enough face detections found

Clustering face detections for user admin

ClusterDebug: Retrieving face detections for user admin

ClusterDebug: Found 500 fresh detections. Adding 50 old detections and 3120 sampled detections from already existing clusters. Calculating clusters on 3670 detections.`

No face detection for User1.

I'm running Nextcloud AIO, I've seen similar issues here that where solved by increasing Nextcloud Memory limit, here is mine :
NEXTCLOUD_MEMORY_LIMIT=16000M

Expected Behavior

Faces being detected

To Reproduce

Install Recognize and Memories, wait for cron job to run.

Debug log

Allowed memory size of 1073741824 bytes exhausted (tried to allocate 655360 bytes) at /var/www/html/custom_apps/recognize/lib/Clustering/MrdBallTree.php#450

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions