homebridge-eufy-security / plugin

Homebridge plugin to control certain Eufy Security devices
Apache License 2.0
166 stars 23 forks source link

[Bug]: HKSV no snapshot available #479

Open diablotin84 opened 10 months ago

diablotin84 commented 10 months ago

What happened?

Hi,

Since version 2.3.6 and 2.3.7, the doorbell no longer responds. The error message that appears in the logs is

[11/28/2023, 22:11:20]  [EufySecurity]  ERROR   Doorbell

 Error  Invalid input
error stack:
  • constructor.js      Sharp
        constructor.js:170
  • SnapshotManager.ts
        SnapshotManager.ts:438
  • 

  • SnapshotManager.ts  SnapshotManager.resizeSnapshot
        SnapshotManager.ts:437
  • SnapshotManager.ts  SnapshotManager.getSnapshotBuffer
        SnapshotManager.ts:165
  • task_queues processTicksAndRejections
        task_queues:95
  • streamingDelegate.ts        StreamingDelegate.handleSnapshotRequest
        streamingDelegate.ts:118
[Doorbell DD39] Snapshot request handler provided empty image buffer!

Thanks for your help and congrats for this plugins :)

Device Type

Doorbell (Supported)

Plugin Version

v2.0.x (Supported)

HomeBridge Version

v1.6.x (Supported)

NodeJS Version

v18 (Supported)

Operating System

Debian 10+ (Supported)

Relevant log output

[11/28/2023, 22:11:20]  [EufySecurity]  ERROR   Doorbell

 Error  Invalid input
error stack:
  • constructor.js      Sharp
        constructor.js:170
  • SnapshotManager.ts
        SnapshotManager.ts:438
  • 

  • SnapshotManager.ts  SnapshotManager.resizeSnapshot
        SnapshotManager.ts:437
  • SnapshotManager.ts  SnapshotManager.getSnapshotBuffer
        SnapshotManager.ts:165
  • task_queues processTicksAndRejections
        task_queues:95
  • streamingDelegate.ts        StreamingDelegate.handleSnapshotRequest
        streamingDelegate.ts:118
[Doorbell DD39] Snapshot request handler provided empty image buffer!

config

{
            "enableDetailedLogging": false,
            "CameraMaxLivestreamDuration": 30,
            "pollingIntervalMinutes": 10,
            "hkHome": 1,
            "hkAway": 0,
            "hkNight": 3,
            "hkOff": 63,
            "ignoreStations": [
                "xxxx"
            ],
            "ignoreDevices": [
                "xxxx",
                "xxx"
            ],
            "country": "FR",
            "cameras": [
                {
                    "serialNumber": "xxxx",
                    "rtsp": false,
                    "enableCamera": true,
                    "useCachedLocalLivestream": true,
                    "videoConfig": {
                        "audio": true,
                        "audioSampleRate": 0
                    },
                    "talkback": true,
                    "immediateRingNotificationWithoutSnapshot": true,
                    "delayCameraSnapshot": true,
                    "refreshSnapshotIntervalMinutes": 30,
                    "snapshotHandlingMethod": 3,
                    "enable": true,
                    "motion": true,
                    "indoorchime": true
                },
                {
                    "serialNumber": "xxx",
                    "rtsp": false
                },
                {
                    "serialNumber": "xxx",
                    "rtsp": false
                }
            ],
            "cleanCache": true,
            "unbridge": false,
            "ignoreMultipleDevicesWarning": false,
            "syncStationModes": false,
            "username": "xxx@xxxxx",
            "password": "xxxxx",
            "deviceName": "",
            "platform": "EufySecurity"
        }
github-actions[bot] commented 10 months ago

Did you check this Common Issues pages ?

diablotin84 commented 10 months ago

I isolated this error:

[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   FFmpeg process ended unexpectedly with an exit code of 1.
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   FFmpeg command line that errored out was: /var/lib/homebridge/node_modules/homebridge-eufy-security/node_modules/ffmpeg-for-homebridge/ffmpeg -protocol_whitelist crypto,file,pipe,rtp,udp -f sdp -acodec libfdk_aac -i pipe:0 -map 0:a:0 -flags +global_header -ar 24 -b:a 24k -ac 1 -f adts pipe:1 -loglevel level+verbose
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [info] ffmpeg version 6.0-homebridge-alpine-aarch64-static Copyright (c) 2000-2023 the FFmpeg developers
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [info]   built with gcc 12.2.1 (Alpine 12.2.1_git20220924-r10) 20220924
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [info]   configuration: --enable-hardcoded-tables --enable-nonfree --enable-gpl --enable-hardcoded-tables --enable-hardcoded-tables --enable-openssl --enable-libdav1d --enable-libsvtav1 --enable-libx264 --enable-libx265 --enable-libvpx --enable-libxvid --enable-libvidstab --enable-libaom --enable-libzimg --enable-lv2 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libtheora --enable-libfdk-aac --enable-libwebp --enable-libsrt --disable-debug --disable-shared --enable-pthreads --enable-static --enable-version3 --extra-cflags='-I/build/workspace/include -I/build/workspace/include/lilv-0' --extra-ldexeflags=-static --extra-ldflags=-L/build/workspace/lib --extra-libs='-ldl -lpthread -lm -lz' --pkgconfigdir=/build/workspace/lib/pkgconfig --pkg-config-flags=--static --prefix=/build/workspace --extra-version=homebridge-alpine-aarch64-static
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [info]   libavutil      58.  2.100 / 58.  2.100
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [info]   libavcodec     60.  3.100 / 60.  3.100
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [info]   libavformat    60.  3.100 / 60.  3.100
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [info]   libavdevice    60.  1.100 / 60.  1.100
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [info]   libavfilter     9.  3.100 /  9.  3.100
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [info]   libswscale      7.  1.100 /  7.  1.100
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [info]   libswresample   4. 10.100 /  4. 10.100
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [info]   libpostproc    57.  1.100 / 57.  1.100
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [sdp @ 0xffffa1f29020] [verbose] setting jitter buffer size to 500
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [info] Input #0, sdp, from 'pipe:0':
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [info]   Metadata:
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [info]     title           : Doorbell Audio Talkback
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [info]   Duration: N/A, bitrate: N/A
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [info]   Stream #0:0: Audio: aac, 24000 Hz, mono, s16
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [info] Stream mapping:
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [info]   Stream #0:0 -> #0:0 (aac (libfdk_aac) -> aac (native))
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [aost#0:0/aac @ 0xffffa1ee6030] [warning] Finishing stream without any data written to it.
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [graph_0_in_0_0 @ 0xffffa1e5a260] [verbose] tb:1/24000 samplefmt:s16 samplerate:24000 chlayout:mono
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [format_out_0_0 @ 0xffffa1daa030] [verbose] auto-inserting filter 'auto_aresample_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_0'
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [auto_aresample_0 @ 0xffffa1daa0e0] [verbose] ch:1 chl:mono fmt:s16 r:24000Hz -> ch:1 chl:mono fmt:fltp r:24Hz
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [aac @ 0xffffa1ee7430] [error] Specified sample rate 24 is not supported
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [aost#0:0/aac @ 0xffffa1ee6030] [error] Error initializing output stream: Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [AVIOContext @ 0xffffa1f29aa0] [verbose] Statistics: 0 bytes written, 0 seeks, 0 writeouts
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [AVIOContext @ 0xffffa1f29830] [verbose] Statistics: 356 bytes read, 0 seeks
[11/29/2023, 10:50:16]  [EufySecurity]  ERROR   [info] Exiting normally, received signal 15.