screenpipe icon indicating copy to clipboard operation
screenpipe copied to clipboard

[bug] Build from latest commit crashes on Linux

Open Difrex opened this issue 1 year ago • 4 comments
trafficstars

describe the bug Screenpipe crashes with *** bit out of range 0 - FD_SETSIZE on fd_set ***: terminated.

to reproduce Build main branch on Linux and run ./target/release/screenpipe

expected behavior Screenpipe works as expected without crashes.

system information:

  • os: ALT Linux
  • os version: Sisyphus, Kernel 6.6.52-un-def-alt1
  • application version: Commit 6093aa445f941843a169f527666c810f59698b66
  • Resolution: 3840x2160
  • DE: GNOME 47.0
  • CPU: AMD Ryzen 7 6800H with Radeon Graphics (16) @ 4.785GHz
  • GPU: AMD ATI Radeon 680M

additional context Console output

2024-10-04T13:27:37.842070Z  WARN screenpipe: screenpipe hasn't been extensively tested on this os. we'd love your feedback!    
would love your feedback on the ux, let's a 15 min call soon:
https://cal.com/louis030195/screenpipe
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
2024-10-04T13:27:40.089801Z  INFO screenpipe:   default (input)    
2024-10-04T13:27:40.089832Z  INFO screenpipe:   default (output)    
2024-10-04T13:27:40.089844Z DEBUG screenpipe_server::db: Initializing DatabaseManager with database path: /home/difrex/.screenpipe/db.sqlite    
2024-10-04T13:27:40.092155Z  INFO screenpipe_server::db: Migrations executed successfully.    
2024-10-04T13:27:40.092170Z  INFO screenpipe: database initialized, will store files in /home/difrex/.screenpipe    



                                            _          
   __________________  ___  ____     ____  (_____  ___ 
  / ___/ ___/ ___/ _ \/ _ \/ __ \   / __ \/ / __ \/ _ \
 (__  / /__/ /  /  __/  __/ / / /  / /_/ / / /_/ /  __/
/____/\___/_/   \___/\___/_/ /_/  / .___/_/ .___/\___/ 
                                 /_/     /_/           



build ai apps that have the full context
open source | runs locally | developer friendly


┌─────────────────────┬────────────────────────────────────┐
2024-10-04T13:27:40.093868Z DEBUG screenpipe_audio::whisper: Initializing WhisperModel    
│ setting             │ value                              │
├─────────────────────┼────────────────────────────────────┤
│ fps                 │ 1                                  │
│ audio chunk duration│ 30 seconds                         │
│ video chunk duration│ 60 seconds                         │
│ port                │ 3030                               │
│ audio disabled      │ false                              │
2024-10-04T13:27:40.093913Z  INFO screenpipe_audio::whisper: device = Cpu    
2024-10-04T13:27:40.093923Z DEBUG screenpipe_audio::whisper: Fetching model files    
│ vision disabled     │ false                              │
│ save text files     │ false                              │
│ audio engine        │ WhisperDistilLargeV3               │
│ ocr engine          │ Tesseract                          │
│ vad engine          │ Silero                             │
│ vad sensitivity     │ High                               │
│ data directory      │ /home/difrex/.screenpipe           │
│ debug mode          │ true                               │
│ use pii removal     │ false                              │
│ ignored windows     │ []                                 │
│ included windows    │ []                                 │
│ friend wearable uid │ not set                            │
├─────────────────────┼────────────────────────────────────┤
│ monitors            │                                    │
│                     │ id: 1137                           │
2024-10-04T13:27:40.093964Z  INFO hf_hub: Token file not found "/home/difrex/.cache/huggingface/token"    
├─────────────────────┼────────────────────────────────────┤
│ audio devices       │                                    │
│                     │ default (input)                    │
│                     │ default (output)                   │
├─────────────────────┼────────────────────────────────────┤
│ pipes               │                                    │
│                     │ no pipes available                 │
└─────────────────────┴────────────────────────────────────┘
you are using local processing. all your data stays on your computer.

2024-10-04T13:27:40.094109Z DEBUG screenpipe_audio::whisper: Parsing config and tokenizer    
2024-10-04T13:27:40.094112Z DEBUG screenpipe: starting pipes    
2024-10-04T13:27:40.094542Z  INFO screenpipe_server::server: Server starting on 127.0.0.1:3030    
2024-10-04T13:27:40.156111Z DEBUG screenpipe_audio::whisper: Loading model weights    
2024-10-04T13:27:43.384328Z DEBUG screenpipe_audio::whisper: WhisperModel initialization complete    
2024-10-04T13:27:43.424532Z DEBUG screenpipe_audio::vad_engine: Initializing SileroVad...    
2024-10-04T13:27:43.424547Z DEBUG screenpipe_audio::vad_engine: Downloading SileroVAD model...    
2024-10-04T13:27:44.562846Z DEBUG screenpipe_audio::vad_engine: SileroVad Model downloaded and saved to: "/tmp/.private/difrex/silero_vad.onnx"    
2024-10-04T13:27:44.562886Z DEBUG screenpipe_audio::vad_engine: SileroVad Model downloaded to: "/tmp/.private/difrex/silero_vad.onnx"    
2024-10-04T13:27:44.594083Z DEBUG screenpipe_audio::vad_engine: SileroVad initialized successfully    
2024-10-04T13:27:44.594108Z DEBUG screenpipe_server::core: Starting video recording for monitor [1137]    
2024-10-04T13:27:44.594113Z DEBUG screenpipe_server::core: Starting video recording for monitor 1137    
2024-10-04T13:27:44.594136Z DEBUG screenpipe_audio::stt: Waiting for input from input_receiver    
2024-10-04T13:27:44.594188Z DEBUG screenpipe_server::core: record_video: Starting    
2024-10-04T13:27:44.594252Z  INFO screenpipe_server::video: Starting new video capture    
2024-10-04T13:27:44.594281Z  INFO screenpipe_server::video: Started capture thread    
2024-10-04T13:27:44.594304Z DEBUG screenpipe_server::video: Starting save_frames_as_video function    
2024-10-04T13:27:44.594309Z DEBUG screenpipe_server::video: Starting new FFmpeg process    
2024-10-04T13:27:44.594322Z DEBUG screenpipe_vision::core: continuous_capture: Starting using monitor: 1137    
*** bit out of range 0 - FD_SETSIZE on fd_set ***: terminated
[1]    476988 IOT instruction  ./target/release/screenpipe --debug

Difrex avatar Oct 04 '24 13:10 Difrex

@Difrex are you on wayland?

#63

louis030195 avatar Oct 04 '24 17:10 louis030195

@louis030195

are you on wayland?

Yep

Difrex avatar Oct 04 '24 17:10 Difrex

@louis030195

are you on wayland?

Yep

screenpipe should support wayland in a few days

louis030195 avatar Oct 05 '24 00:10 louis030195