Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] screenpipe backend terminates systematically #699

Open
meltiso opened this issue Nov 19, 2024 · 5 comments
Open

[bug] screenpipe backend terminates systematically #699

meltiso opened this issue Nov 19, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@meltiso
Copy link

meltiso commented Nov 19, 2024

describe the bug
screenpipe.exe backend on windows turns off every time after 15 seconds. also the case when clicking on "save and restart" in the ui.

to reproduce

  1. be on windows 11
  2. start screenpipe or click "save and restart" in the ui

expected behavior
the backend should not terminate

system info

  • os: windows 11
  • screenpipe version: i don't see it in the ui but it's the last update (paid version)

additional context
https://github.com/user-attachments/assets/088856ba-f9e6-421a-badb-19c61b139e79

@meltiso meltiso added the bug Something isn't working label Nov 19, 2024
Copy link

linear bot commented Nov 19, 2024

@tribhuwan-kumar
Copy link
Contributor

@meltiso can you share the logs from the ~/.screenpipe?

@meltiso
Copy link
Author

meltiso commented Nov 20, 2024

@tribhuwan-kumar yes!
also i've just tried to quickly check another monitor id / mic id during the 15 seconds window. in consequence the backend doesn't crash, so the issue might be due to an id not being found

should be related to
2024-11-20T15:13:05.969773Z ERROR screenpipe_vision::core: Failed to get monitor with id: 170328141. Exiting continuous_capture.

screenpipe-app

2024-11-20T15:12:35.145816Z  INFO screenpipe_app: Local data directory: C:\Users\meltiso\AppData\Local\screenpipe
2024-11-20T15:12:35.146791Z  INFO screenpipe_app: data_dir: C:\Users\meltiso
2024-11-20T15:12:35.146930Z  INFO screenpipe_app: has_files: true
2024-11-20T15:12:35.147221Z  INFO screenpipe_app: will start sidecar: true
2024-11-20T15:12:35.147729Z  INFO screenpipe_app::server: Server listening on 127.0.0.1:11435
2024-11-20T15:12:35.175829Z  INFO screenpipe_app::sidecar: Spawned sidecar with args: ["--port", "3030", "--fps", "1", "--audio-transcription-engine", "deepgram", "--ocr-engine", "windows-native", "--monitor-id", "170328141", "--language", "french", "--deepgram-api-key", "", "--audio-device", "Réseau de microphones (Technologie Intel® Smart Sound pour microphones numériques) (input)", "--audio-device", "PL2570HS -2 (HD Audio Driver for Display Audio) (output)", "--ignored-windows", "bit", "--ignored-windows", "VPN", "--ignored-windows", "Trash", "--ignored-windows", "Private", "--ignored-windows", "Incognito", "--ignored-windows", "Wallpaper", "--ignored-windows", "Settings", "--ignored-windows", "Keepass", "--ignored-windows", "Recorder", "--ignored-windows", "Vaults", "--ignored-windows", "OBS Studio", "--ignored-windows", "Nvidia", "--ignored-windows", "Control Panel", "--ignored-windows", "System Properties", "--auto-destruct-pid", "14132"]
2024-11-20T15:12:35.388582Z  INFO screenpipe_app::updates: Update check started    
2024-11-20T15:12:35.686537Z  INFO screenpipe_app::analytics: Analytics started    
2024-11-20T15:13:05.519313Z  INFO screenpipe_app::sidecar: Spawned sidecar with args: ["--port", "3030", "--fps", "1", "--audio-transcription-engine", "deepgram", "--ocr-engine", "windows-native", "--monitor-id", "170328141", "--language", "french", "--deepgram-api-key", "", "--audio-device", "Réseau de microphones (Technologie Intel® Smart Sound pour microphones numériques) (input)", "--audio-device", "PL2570HS -2 (HD Audio Driver for Display Audio) (output)", "--ignored-windows", "bit", "--ignored-windows", "VPN", "--ignored-windows", "Trash", "--ignored-windows", "Private", "--ignored-windows", "Incognito", "--ignored-windows", "Wallpaper", "--ignored-windows", "Settings", "--ignored-windows", "Keepass", "--ignored-windows", "Recorder", "--ignored-windows", "Vaults", "--ignored-windows", "OBS Studio", "--ignored-windows", "Nvidia", "--ignored-windows", "Control Panel", "--ignored-windows", "System Properties", "--auto-destruct-pid", "14132"]
2024-11-20T15:13:34.749481Z  INFO screenpipe_app::sidecar: Spawned sidecar with args: ["--port", "3030", "--fps", "1", "--audio-transcription-engine", "deepgram", "--ocr-engine", "windows-native", "--monitor-id", "170328141", "--language", "french", "--deepgram-api-key", "", "--audio-device", "Réseau de microphones (Technologie Intel® Smart Sound pour microphones numériques) (input)", "--audio-device", "PL2570HS -2 (HD Audio Driver for Display Audio) (output)", "--ignored-windows", "bit", "--ignored-windows", "VPN", "--ignored-windows", "Trash", "--ignored-windows", "Private", "--ignored-windows", "Incognito", "--ignored-windows", "Wallpaper", "--ignored-windows", "Settings", "--ignored-windows", "Keepass", "--ignored-windows", "Recorder", "--ignored-windows", "Vaults", "--ignored-windows", "OBS Studio", "--ignored-windows", "Nvidia", "--ignored-windows", "Control Panel", "--ignored-windows", "System Properties", "--auto-destruct-pid", "14132"]
2024-11-20T15:13:43.122133Z  INFO screenpipe_app::sidecar: Spawned sidecar with args: ["--port", "3030", "--fps", "1", "--audio-transcription-engine", "deepgram", "--ocr-engine", "windows-native", "--monitor-id", "920433", "--language", "french", "--deepgram-api-key", "", "--audio-device", "PL2570HS (2- HD Audio Driver for Display Audio) (output)", "--ignored-windows", "bit", "--ignored-windows", "VPN", "--ignored-windows", "Trash", "--ignored-windows", "Private", "--ignored-windows", "Incognito", "--ignored-windows", "Wallpaper", "--ignored-windows", "Settings", "--ignored-windows", "Keepass", "--ignored-windows", "Recorder", "--ignored-windows", "Vaults", "--ignored-windows", "OBS Studio", "--ignored-windows", "Nvidia", "--ignored-windows", "Control Panel", "--ignored-windows", "System Properties", "--auto-destruct-pid", "14132"]

screenpipe

2024-11-20T15:12:35.441963Z  INFO screenpipe: screenpipe already in PATH at: C:\Users\meltiso\AppData\Local\screenpipe\screenpipe.exe
2024-11-20T15:12:35.441983Z  INFO screenpipe: screenpipe is available and properly set in the PATH
2024-11-20T15:12:35.928304Z  INFO screenpipe_audio::whisper: device = Cpu    
2024-11-20T15:12:35.928399Z  INFO hf_hub: Token file not found "C:\\Users\\meltiso\\.cache\\huggingface\\token"    
2024-11-20T15:12:35.928931Z ERROR screenpipe_vision::core: Failed to get monitor with id: 170328141. Exiting continuous_capture.    
2024-11-20T15:12:35.929420Z  INFO screenpipe: watching pid 14132 for auto-destruction
2024-11-20T15:12:35.929917Z  INFO screenpipe_server::server: Server starting on 127.0.0.1:3030    
2024-11-20T15:12:35.977419Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:12:38.636098Z  INFO screenpipe_audio::vad_engine: Initializing SileroVad...
2024-11-20T15:12:38.636439Z  INFO screenpipe_audio::vad_engine: SileroVad Model downloaded to: "C:\\Users\\meltiso\\AppData\\Local\\screenpipe\\vad\\silero_vad.onnx"
2024-11-20T15:12:38.994021Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:12:42.001709Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:12:45.007919Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:12:46.504380Z  INFO screenpipe_server::resource_monitor: Runtime: 10s, Total Memory: 10% (3.16 GB / 32.43 GB), Total CPU: 11%
2024-11-20T15:12:48.017907Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:12:50.938164Z  INFO screenpipe_audio::core: device: "Réseau de microphones (Technologie Intel® Smart Sound pour microphones numériques) (input)"    
2024-11-20T15:12:50.938241Z  INFO screenpipe_audio::core: device: "PL2570HS -2 (HD Audio Driver for Display Audio) (output)"    
2024-11-20T15:12:50.949548Z  INFO screenpipe_audio::core: starting continuous recording for Réseau de microphones (Technologie Intel® Smart Sound pour microphones numériques) (input) (30s segments)    
2024-11-20T15:13:05.582570Z  INFO screenpipe: screenpipe already in PATH at: C:\Users\meltiso\AppData\Local\screenpipe\screenpipe.exe
2024-11-20T15:13:05.582583Z  INFO screenpipe: screenpipe is available and properly set in the PATH
2024-11-20T15:13:05.969726Z  INFO screenpipe_audio::whisper: device = Cpu    
2024-11-20T15:13:05.969773Z ERROR screenpipe_vision::core: Failed to get monitor with id: 170328141. Exiting continuous_capture.    
2024-11-20T15:13:05.969797Z  INFO hf_hub: Token file not found "C:\\Users\\meltiso\\.cache\\huggingface\\token"    
2024-11-20T15:13:05.970937Z  INFO screenpipe: watching pid 14132 for auto-destruction
2024-11-20T15:13:05.971509Z  INFO screenpipe_server::server: Server starting on 127.0.0.1:3030    
2024-11-20T15:13:08.195380Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:13:08.359532Z  INFO screenpipe_audio::vad_engine: Initializing SileroVad...
2024-11-20T15:13:08.360571Z  INFO screenpipe_audio::vad_engine: SileroVad Model downloaded to: "C:\\Users\\meltiso\\AppData\\Local\\screenpipe\\vad\\silero_vad.onnx"
2024-11-20T15:13:11.202645Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:13:14.210311Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:13:16.255383Z  INFO screenpipe_server::resource_monitor: Runtime: 10s, Total Memory: 10% (3.16 GB / 32.43 GB), Total CPU: 11%
2024-11-20T15:13:17.216631Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:13:20.223743Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:13:20.971807Z  INFO screenpipe_audio::core: device: "Réseau de microphones (Technologie Intel® Smart Sound pour microphones numériques) (input)"    
2024-11-20T15:13:20.971838Z  INFO screenpipe_audio::core: device: "PL2570HS -2 (HD Audio Driver for Display Audio) (output)"    
2024-11-20T15:13:20.985385Z  INFO screenpipe_audio::core: starting continuous recording for Réseau de microphones (Technologie Intel® Smart Sound pour microphones numériques) (input) (30s segments)    
2024-11-20T15:13:34.812090Z  INFO screenpipe: screenpipe already in PATH at: C:\Users\meltiso\AppData\Local\screenpipe\screenpipe.exe
2024-11-20T15:13:34.812110Z  INFO screenpipe: screenpipe is available and properly set in the PATH
2024-11-20T15:13:35.220380Z  INFO screenpipe_audio::whisper: device = Cpu    
2024-11-20T15:13:35.220493Z  INFO hf_hub: Token file not found "C:\\Users\\meltiso\\.cache\\huggingface\\token"    
2024-11-20T15:13:35.220517Z ERROR screenpipe_vision::core: Failed to get monitor with id: 170328141. Exiting continuous_capture.    
2024-11-20T15:13:35.221138Z  INFO screenpipe: watching pid 14132 for auto-destruction
2024-11-20T15:13:35.221645Z  INFO screenpipe_server::server: Server starting on 127.0.0.1:3030    
2024-11-20T15:13:35.400043Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:13:37.579998Z  INFO screenpipe_audio::vad_engine: Initializing SileroVad...
2024-11-20T15:13:37.580501Z  INFO screenpipe_audio::vad_engine: SileroVad Model downloaded to: "C:\\Users\\meltiso\\AppData\\Local\\screenpipe\\vad\\silero_vad.onnx"
2024-11-20T15:13:38.413778Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:13:41.421865Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:13:43.203227Z  INFO screenpipe: screenpipe already in PATH at: C:\Users\meltiso\AppData\Local\screenpipe\screenpipe.exe
2024-11-20T15:13:43.203240Z  INFO screenpipe: screenpipe is available and properly set in the PATH
2024-11-20T15:13:43.503965Z  INFO screenpipe_audio::whisper: device = Cpu    
2024-11-20T15:13:43.504058Z  INFO hf_hub: Token file not found "C:\\Users\\meltiso\\.cache\\huggingface\\token"    
2024-11-20T15:13:43.504760Z  INFO screenpipe: watching pid 14132 for auto-destruction
2024-11-20T15:13:43.505055Z  INFO screenpipe_server::server: Server starting on 127.0.0.1:3030    
2024-11-20T15:13:43.537099Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:43.542025Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:43.676109Z  INFO screenpipe_server::video: Starting FFmpeg process for file: C:\Users\meltiso\.screenpipe\data\monitor_920433_2024-11-20_15-13-43.mp4    
2024-11-20T15:13:44.426138Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:13:44.702945Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:44.705880Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:45.781965Z  INFO screenpipe_audio::vad_engine: Initializing SileroVad...
2024-11-20T15:13:45.782253Z  INFO screenpipe_audio::vad_engine: SileroVad Model downloaded to: "C:\\Users\\meltiso\\AppData\\Local\\screenpipe\\vad\\silero_vad.onnx"
2024-11-20T15:13:45.822028Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:45.825277Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:46.941371Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:46.943861Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:47.433963Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:13:48.043382Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:48.046048Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:49.164675Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:49.167283Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:50.281004Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:50.283450Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:50.442137Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:13:51.387841Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:51.391908Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:52.508512Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:52.511097Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:53.451637Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:13:53.639328Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:53.641945Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:53.770699Z  INFO screenpipe_server::resource_monitor: Runtime: 10s, Total Memory: 10% (3.21 GB / 32.43 GB), Total CPU: 13%
2024-11-20T15:13:54.761550Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:54.764531Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:55.879983Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:55.882869Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:56.473803Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:13:57.002435Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:57.006866Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:58.122552Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:58.127659Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:58.591365Z  INFO screenpipe_audio::core: device: "PL2570HS (2- HD Audio Driver for Display Audio) (output)"    
2024-11-20T15:13:58.609001Z ERROR screenpipe_server::core: Failed to create audio stream: The requested stream type is not supported by the device.    
2024-11-20T15:13:58.692425Z  INFO screenpipe_server::core: Handle for device PL2570HS (2- HD Audio Driver for Display Audio) (output) has finished    
2024-11-20T15:13:59.219448Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:59.221980Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:13:59.478860Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:14:00.340524Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:00.343257Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:01.465400Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:01.468492Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:02.483664Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:14:02.558478Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:02.562095Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:03.676018Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:03.678510Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:03.786216Z  INFO screenpipe_server::resource_monitor: Runtime: 20s, Total Memory: 10% (3.21 GB / 32.43 GB), Total CPU: 3%
2024-11-20T15:14:04.782290Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:04.785165Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:05.492476Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:14:05.903204Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:05.906493Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:07.021952Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:07.024443Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:08.138076Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:08.140944Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:08.499334Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:14:09.253217Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:09.256947Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:10.376695Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:10.380186Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:11.477946Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:11.480540Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:11.505572Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:14:12.602243Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:12.604808Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:13.699401Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:13.702108Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:13.809548Z  INFO screenpipe_server::resource_monitor: Runtime: 30s, Total Memory: 10% (3.21 GB / 32.43 GB), Total CPU: 3%
2024-11-20T15:14:14.510782Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:14:14.820538Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:14.823227Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:15.926759Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:15.928938Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:17.087495Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:17.089576Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:17.588311Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:14:18.197568Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:18.199757Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:19.312705Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:19.315622Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:20.480592Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:20.484573Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:20.594441Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 15:10:35.628 UTC    
2024-11-20T15:14:21.606932Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:21.610988Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:22.770450Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:22.775863Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:23.827557Z  INFO screenpipe_server::resource_monitor: Runtime: 40s, Total Memory: 10% (3.21 GB / 32.43 GB), Total CPU: 3%
2024-11-20T15:14:23.903770Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:23.907554Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:25.060656Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    
2024-11-20T15:14:25.063244Z ERROR xcap::platform::impl_window: Accès refusé. (0x80070005)    

@louis030195
Copy link
Collaborator

Accès refusé happens when you have task manager open (it should not affect screenpipe at all)

seems like issue with your device PL2570HS (2- HD Audio Driver for Display Audio) (output) but it won't crash screenpipe, just not recording it

the main issue is this Failed to get monitor with id: 170328141, which monitor did you select?

seems like you try to record a monitor that is unplugged

try to change the monitor in the app settings (or CLI)

worst case scenario you can delete this file:

C:\Users\{username}\AppData\Local\screenpipe\store.bin and restart srceenpipe, it will reset your settings

#694 related but more like a new feature

@meltiso
Copy link
Author

meltiso commented Nov 20, 2024

@louis030195 thanks for your answer. I deleted the store.bin file and i don't have the Failed to get monitor error anymore.

I tried multiple combinations of monitors/displays and it seems the crash comes from Réseau de microphones (Technologie Intel® Smart Sound pour microphones numériques) (input) (default). It's the only input device I have.

Example when it doesn't work:

  • All 3 monitors are enabled (strangely only one Starting FFmpeg process for file but 3 screenpipe_server::server: streaming frames)
  • 2 audio devices activated (with the bad one)
2024-11-20T21:37:55.226561Z  INFO screenpipe: screenpipe already in PATH at: C:\Users\meltiso\AppData\Local\screenpipe\screenpipe.exe
2024-11-20T21:37:55.226600Z  INFO screenpipe: screenpipe is available and properly set in the PATH
2024-11-20T21:37:55.534842Z  INFO screenpipe_audio::whisper: device = Cpu    
2024-11-20T21:37:55.534995Z  INFO hf_hub: Token file not found "C:\\Users\\meltiso\\.cache\\huggingface\\token"    
2024-11-20T21:37:55.535636Z  INFO screenpipe: watching pid 2172 for auto-destruction
2024-11-20T21:37:55.536159Z  INFO screenpipe_server::server: Server starting on 127.0.0.1:3030    
2024-11-20T21:37:56.305367Z  INFO screenpipe_server::video: Starting FFmpeg process for file: C:\Users\meltiso\.screenpipe\data\monitor_588317367_2024-11-20_21-37-56.mp4    
2024-11-20T21:37:56.573541Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:37:57.949093Z  INFO screenpipe_audio::vad_engine: Initializing SileroVad...
2024-11-20T21:37:57.949433Z  INFO screenpipe_audio::vad_engine: SileroVad Model downloaded to: "C:\\Users\\meltiso\\AppData\\Local\\screenpipe\\vad\\silero_vad.onnx"
2024-11-20T21:37:59.578822Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:38:02.585401Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:38:05.588849Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:38:05.802333Z  INFO screenpipe_server::resource_monitor: Runtime: 10s, Total Memory: 10% (3.20 GB / 32.43 GB), Total CPU: 25%
2024-11-20T21:38:08.850977Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:38:10.569634Z  INFO screenpipe_audio::core: device: "Réseau de microphones (Technologie Intel® Smart Sound pour microphones numériques) (input)"    
2024-11-20T21:38:10.579755Z  INFO screenpipe_audio::core: starting continuous recording for Réseau de microphones (Technologie Intel® Smart Sound pour microphones numériques) (input) (30s segments)    

Example when it works:

  • All 3 monitors are enabled
  • All audio devices are enabled but NOT Réseau de microphones (Technologie Intel® Smart Sound pour microphones numériques) (input) (default)
2024-11-20T21:41:59.778404Z  INFO screenpipe: screenpipe already in PATH at: C:\Users\meltiso\AppData\Local\screenpipe\screenpipe.exe
2024-11-20T21:41:59.778419Z  INFO screenpipe: screenpipe is available and properly set in the PATH
2024-11-20T21:42:00.262807Z  INFO screenpipe_audio::whisper: device = Cpu    
2024-11-20T21:42:00.262985Z  INFO hf_hub: Token file not found "C:\\Users\\meltiso\\.cache\\huggingface\\token"    
2024-11-20T21:42:00.263435Z  INFO screenpipe: watching pid 2172 for auto-destruction
2024-11-20T21:42:00.263829Z  INFO screenpipe_server::server: Server starting on 127.0.0.1:3030    
2024-11-20T21:42:00.594874Z  INFO screenpipe_server::video: Starting FFmpeg process for file: C:\Users\meltiso\.screenpipe\data\monitor_920433_2024-11-20_21-42-00.mp4    
2024-11-20T21:42:00.648268Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:42:00.854388Z  INFO screenpipe_server::video: Starting FFmpeg process for file: C:\Users\meltiso\.screenpipe\data\monitor_395927_2024-11-20_21-42-00.mp4    
2024-11-20T21:42:01.200290Z  INFO screenpipe_server::video: Starting FFmpeg process for file: C:\Users\meltiso\.screenpipe\data\monitor_588317367_2024-11-20_21-42-01.mp4    
2024-11-20T21:42:01.288110Z  WARN screenpipe_server::core: Failed to insert frame: error returned from database: (code: 5) database is locked    
2024-11-20T21:42:01.288161Z  WARN screenpipe_server::core: Failed to insert frame: error returned from database: (code: 5) database is locked    
2024-11-20T21:42:01.398759Z  WARN screenpipe_server::core: Failed to insert frame: error returned from database: (code: 5) database is locked    
2024-11-20T21:42:03.290478Z  INFO screenpipe_audio::vad_engine: Initializing SileroVad...
2024-11-20T21:42:03.290759Z  INFO screenpipe_audio::vad_engine: SileroVad Model downloaded to: "C:\\Users\\meltiso\\AppData\\Local\\screenpipe\\vad\\silero_vad.onnx"
2024-11-20T21:42:03.668248Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:42:06.674504Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:42:07.507113Z  WARN screenpipe_server::core: Failed to insert frame: error returned from database: (code: 5) database is locked    
2024-11-20T21:42:09.714345Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:42:10.575788Z  INFO screenpipe_server::resource_monitor: Runtime: 10s, Total Memory: 10% (3.35 GB / 32.43 GB), Total CPU: 37%
2024-11-20T21:42:12.724693Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:42:15.275165Z  INFO screenpipe_audio::core: device: "PL2570HS -2 (HD Audio Driver for Display Audio) (output)"    
2024-11-20T21:42:15.275244Z  INFO screenpipe_audio::core: device: "PL2570HS (2- HD Audio Driver for Display Audio) (output)"    
2024-11-20T21:42:15.275288Z  INFO screenpipe_audio::core: device: "Haut-parleurs (Realtek(R) Audio) (output)"    
2024-11-20T21:42:15.326340Z ERROR screenpipe_server::core: Failed to create audio stream: The requested stream type is not supported by the device.    
2024-11-20T21:42:15.355091Z ERROR screenpipe_server::core: Failed to create audio stream: The requested stream type is not supported by the device.    
2024-11-20T21:42:15.390956Z  INFO screenpipe_server::core: Handle for device PL2570HS -2 (HD Audio Driver for Display Audio) (output) has finished    
2024-11-20T21:42:15.390998Z  INFO screenpipe_server::core: Handle for device PL2570HS (2- HD Audio Driver for Display Audio) (output) has finished    
2024-11-20T21:42:15.722940Z  INFO screenpipe_audio::core: starting continuous recording for Haut-parleurs (Realtek(R) Audio) (output) (30s segments)    
2024-11-20T21:42:15.729376Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:42:16.269078Z  WARN screenpipe_server::core: Failed to insert frame: error returned from database: (code: 5) database is locked    
2024-11-20T21:42:18.734728Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:42:19.316229Z  WARN screenpipe_server::core: Failed to insert frame: error returned from database: (code: 5) database is locked    
2024-11-20T21:42:20.656638Z  INFO screenpipe_server::resource_monitor: Runtime: 20s, Total Memory: 11% (3.54 GB / 32.43 GB), Total CPU: 32%
2024-11-20T21:42:21.746243Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:42:24.757976Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:42:27.774068Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:42:30.667901Z  INFO screenpipe_server::resource_monitor: Runtime: 30s, Total Memory: 11% (3.65 GB / 32.43 GB), Total CPU: 15%
2024-11-20T21:42:30.779870Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:42:33.783752Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:42:36.793608Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:42:39.800536Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:42:40.692884Z  INFO screenpipe_server::resource_monitor: Runtime: 40s, Total Memory: 12% (3.76 GB / 32.43 GB), Total CPU: 20%
2024-11-20T21:42:40.982579Z  WARN screenpipe_server::core: Failed to insert frame: error returned from database: (code: 5) database is locked    
2024-11-20T21:42:42.806905Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:42:45.813563Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:42:48.820138Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:42:50.718411Z  INFO screenpipe_server::resource_monitor: Runtime: 50s, Total Memory: 12% (3.78 GB / 32.43 GB), Total CPU: 15%
2024-11-20T21:42:51.833898Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:42:54.859185Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:42:57.882278Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:43:00.734401Z  INFO screenpipe_server::resource_monitor: Runtime: 60s, Total Memory: 12% (3.79 GB / 32.43 GB), Total CPU: 16%
2024-11-20T21:43:00.889470Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:43:03.896685Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:43:03.964346Z ERROR screenpipe_vision::utils: Failed to capture monitor image: Descripteur non valide (0x80070006)    
2024-11-20T21:43:03.964366Z ERROR screenpipe_vision::core: Failed to capture screenshot: Monitor capture failed    
2024-11-20T21:43:04.654909Z ERROR screenpipe_vision::utils: Failed to capture monitor image: Descripteur non valide (0x80070006)    
2024-11-20T21:43:04.654928Z ERROR screenpipe_vision::core: Failed to capture screenshot: Monitor capture failed    
2024-11-20T21:43:04.777618Z ERROR screenpipe_vision::utils: Failed to capture monitor image: Descripteur non valide (0x80070006)    
2024-11-20T21:43:04.777653Z ERROR screenpipe_vision::core: Failed to capture screenshot: Monitor capture failed    
2024-11-20T21:43:04.970725Z ERROR screenpipe_vision::utils: Failed to capture monitor image: Descripteur non valide (0x80070006)    
2024-11-20T21:43:04.970780Z ERROR screenpipe_vision::core: Failed to capture screenshot: Monitor capture failed    
2024-11-20T21:43:06.906702Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:43:09.920329Z  INFO screenpipe_server::server: streaming frames from 2024-11-19 23:01:00 UTC to 2024-11-20 21:34:00.895 UTC    
2024-11-20T21:43:10.746960Z  INFO screenpipe_server::resource_monitor: Runtime: 70s, Total Memory: 12% (3.82 GB / 32.43 GB), Total CPU: 19%

Additional info

  • Removed store.bin before my tests

  • Removed manually Accès refusé errors because I had the task manager opened

  • There are also other errors / warnings in the logs

  • MONITORS

    • 920433. \\.\DISPLAY1 - 1920x1080
    • 395927. \\.\DISPLAY2 - 1920x1080
    • 588317367. \\.\DISPLAY3 (default) - 1920x1080
  • AUDIO

    • Réseau de microphones (Technologie Intel® Smart Sound pour microphones numériques) (input) (default)
    • PL2570HS (2- HD Audio Driver for Display Audio) (output)
    • PL2570HS -2 (HD Audio Driver for Display Audio) (output) (default)
    • Haut-parleurs (Realtek(R) Audio) (output)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants