nextcloud / recognize

👁 👂 Smart media tagging for Nextcloud: recognizes faces, objects, landscapes, music genres
https://apps.nextcloud.com/apps/recognize
GNU Affero General Public License v3.0
564 stars 45 forks source link

Nextcloud Photos stucks when displaying photos containing recognised face #1102

Closed tjakober closed 6 months ago

tjakober commented 9 months ago

Which version of recognize are you using?

6.0.1

Enabled Modes

Object recognition, Face recognition

TensorFlow mode

WASM mode

Downstream App

Photos App

Which Nextcloud version do you have installed?

28.0.2

Which Operating system do you have installed?

synology dsm 7.2.1

Which database are you running Nextcloud on?

Mariadb 10.11.6

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

linuxserver/docker-nextcloud 28.0.2-ls300

How much RAM does your server have?

8GiB

What processor Architecture does your CPU have?

x86_64

Describe the Bug

Clicking on a newly recognized face to display thumbnails of all the associated pictures containig the recognized face background will display some background tiles and then suddenly stucks showing the turning circle.

Expected Behavior

Displying the thumbnails of the recognized face

To Reproduce

In Photos click on People, then click on a recognized face

Debug log

{
    "reqId": "ZPnzK7VBTaZ8yvPd88qx",
    "level": 3,
    "time": "2024-02-12T09:35:09+00:00",
    "remoteAddr": "172.20.0.1",
    "user": "Thomas",
    "app": "webdav",
    "method": "PROPFIND",
    "url": "/remote.php/dav/recognize/Thomas/unassigned-faces",
    "message": "OCA\\Recognize\\Dav\\Faces\\UnassignedFacePhoto::__construct(): Argument #5 ($preview) must be of type OCP\\IPreview, null given, called in /config/www/nextcloud/apps/recognize/lib/Dav/Faces/UnassignedFacesHome.php on line 108",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36",
    "version": "28.0.2.5",
    "exception": {
        "Exception": "TypeError",
        "Message": "OCA\\Recognize\\Dav\\Faces\\UnassignedFacePhoto::__construct(): Argument #5 ($preview) must be of type OCP\\IPreview, null given, called in /config/www/nextcloud/apps/recognize/lib/Dav/Faces/UnassignedFacesHome.php on line 108",
        "Code": 0,
        "Trace": [
            {
                "file": "/config/www/nextcloud/apps/recognize/lib/Dav/Faces/UnassignedFacesHome.php",
                "line": 108,
                "function": "__construct",
                "class": "OCA\\Recognize\\Dav\\Faces\\UnassignedFacePhoto",
                "type": "->"
            },
            {
                "function": "OCA\\Recognize\\Dav\\Faces\\{closure}",
                "class": "OCA\\Recognize\\Dav\\Faces\\UnassignedFacesHome",
                "type": "->",
                "args": [
                    "*** sensitive parameters replaced ***"
                ]
            },
            {
                "file": "/config/www/nextcloud/apps/recognize/lib/Dav/Faces/UnassignedFacesHome.php",
                "line": 107,
                "function": "array_map"
            },
            {
                "file": "/config/www/nextcloud/apps/recognize/lib/Dav/Faces/PropFindPlugin.php",
                "line": 71,
                "function": "getChildren",
                "class": "OCA\\Recognize\\Dav\\Faces\\UnassignedFacesHome",
                "type": "->"
            },
            {
                "file": "/app/www/public/3rdparty/sabre/dav/lib/DAV/PropFind.php",
                "line": 95,
                "function": "OCA\\Recognize\\Dav\\Faces\\{closure}",
                "class": "OCA\\Recognize\\Dav\\Faces\\PropFindPlugin",
                "type": "->",
                "args": [
                    "*** sensitive parameters replaced ***"
                ]
            },
            {
                "file": "/config/www/nextcloud/apps/recognize/lib/Dav/Faces/PropFindPlugin.php",
                "line": 71,
                "function": "handle",
                "class": "Sabre\\DAV\\PropFind",
                "type": "->"
            },
            {
                "file": "/app/www/public/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
                "line": 89,
                "function": "propFind",
                "class": "OCA\\Recognize\\Dav\\Faces\\PropFindPlugin",
                "type": "->"
            },
            {
                "file": "/app/www/public/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 1052,
                "function": "emit",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/app/www/public/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 984,
                "function": "getPropertiesByNode",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/app/www/public/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 1662,
                "function": "getPropertiesIteratorForPath",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/app/www/public/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 1647,
                "function": "writeMultiStatus",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/app/www/public/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
                "line": 346,
                "function": "generateMultiStatus",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/app/www/public/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
                "line": 89,
                "function": "httpPropFind",
                "class": "Sabre\\DAV\\CorePlugin",
                "type": "->"
            },
            {
                "file": "/app/www/public/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 472,
                "function": "emit",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/app/www/public/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 253,
                "function": "invokeMethod",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/app/www/public/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 321,
                "function": "start",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/config/www/nextcloud/apps/dav/lib/Server.php",
                "line": 370,
                "function": "exec",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/config/www/nextcloud/apps/dav/appinfo/v2/remote.php",
                "line": 35,
                "function": "exec",
                "class": "OCA\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/app/www/public/remote.php",
                "line": 172,
                "args": [
                    "/config/www/nextcloud/apps/dav/appinfo/v2/remote.php"
                ],
                "function": "require_once"
            }
        ],
        "File": "/config/www/nextcloud/apps/recognize/lib/Dav/Faces/UnassignedFacePhoto.php",
        "Line": 18,
        "message": "OCA\\Recognize\\Dav\\Faces\\UnassignedFacePhoto::__construct(): Argument #5 ($preview) must be of type OCP\\IPreview, null given, called in /config/www/nextcloud/apps/recognize/lib/Dav/Faces/UnassignedFacesHome.php on line 108",
        "exception": [],
        "CustomMessage": "OCA\\Recognize\\Dav\\Faces\\UnassignedFacePhoto::__construct(): Argument #5 ($preview) must be of type OCP\\IPreview, null given, called in /config/www/nextcloud/apps/recognize/lib/Dav/Faces/UnassignedFacesHome.php on line 108"
    },
    "id": "65c9e6dfad457"
}
github-actions[bot] commented 9 months ago

Hello :wave:

Thank you for taking the time to open this issue with recognize. I know it's frustrating when software causes problems. You have made the right choice to come here and open an issue to make sure your problem gets looked at and if possible solved. I try to answer all issues and if possible fix all bugs here, but it sometimes takes a while until I get to it. Until then, please be patient. Note also that GitHub is a place where people meet to make software better together. Nobody here is under any obligation to help you, solve your problems or deliver on any expectations or demands you may have, but if enough people come together we can collaborate to make this software better. For everyone. Thus, if you can, you could also look at other issues to see whether you can help other people with your knowledge and experience. If you have coding experience it would also be awesome if you could step up to dive into the code and try to fix the odd bug yourself. Everyone will be thankful for extra helping hands! One last word: If you feel, at any point, like you need to vent, this is not the place for it; you can go to the forum, to twitter or somewhere else. But this is a technical issue tracker, so please make sure to focus on the tech and keep your opinions to yourself. (Also see our Code of Conduct. Really.)

I look forward to working with you on this issue Cheers :blue_heart:

marcelklehr commented 6 months ago

This will be fixed in the next photos app release