screenpipe icon indicating copy to clipboard operation
screenpipe copied to clipboard

[bug] buffer overflow detected in ZorinOS Wayland installation

Open dotsupershow opened this issue 1 year ago • 4 comments

buffer overflow detected in ZorinOS While building screenpipe from source, it failed to start. It gave me there error that *** buffer overflow detected ***: terminated I realize that this may be an issue with wayland. However, this should have been resolved according to this post https://github.com/mediar-ai/screenpipe/issues/441

to reproduce

  1. Install Zorin OS 17.2 Core (I imagine it should also work with some other Ubuntu OS using Wayland)
  2. Ensure that you are on wayland
  3. Ensure that rust is uninstalled and allow screenpipe to install it's version
  4. Follow the build instructions to build screenpipe. Follow them exactly, that's how I did it.
  5. After building, run . "$HOME/.cargo/env"
  6. Run the start command ./target/release/screenpipe
  7. Observe the error

expected behavior I expect screenpipe to start successfully without errors.

system info

  • Zorin OS 17.2 Core
  • screenpipe version: 0.1.98 (I believe so. I don't know the command to check this. Sorry!)
  • Memory: 16.0 GiB
  • Processor: AMD® Ryzen 5 5625u with radeon graphics × 12
  • Disk Size: 512.1 GB
  • Windowing System: Wayland

additional context

Output of ./target/release/screenpipe

jdoe@jdoe-Inspiron-14-5425:~/screenpipe$ ./target/release/screenpipe
2024-11-20T16:19:52.679250Z  INFO screenpipe: logging initialized
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_dmix.c:1005:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1005:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1005:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1005:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_dmix.c:1005:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1005:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dsnoop.c:575:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
ALSA lib pcm_dsnoop.c:575:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
ALSA lib pcm_dsnoop.c:575:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_dmix.c:1005:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1005:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_dmix.c:1005:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dsnoop.c:575:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
ALSA lib pcm_dsnoop.c:575:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
ALSA lib pcm_dsnoop.c:575:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
ALSA lib pcm_dsnoop.c:575:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
ALSA lib pcm_dsnoop.c:575:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
ALSA lib pcm_dsnoop.c:575:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_dmix.c:1005:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1005:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_dmix.c:1005:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dsnoop.c:575:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
ALSA lib pcm_dsnoop.c:575:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
ALSA lib pcm_dsnoop.c:575:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
2024-11-20T16:19:53.027322Z  INFO screenpipe:   default (input)
2024-11-20T16:19:53.027766Z  INFO screenpipe:   default (output)
2024-11-20T16:19:53.063292Z  INFO screenpipe_server::db: Migrations executed successfully.    
2024-11-20T16:19:53.063353Z  INFO screenpipe: database initialized, will store files in /home/jdoe/.screenpipe



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



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


┌─────────────────────┬────────────────────────────────────┐
│ setting             │ value                              │
├─────────────────────┼────────────────────────────────────┤
│ fps                 │ 1                                  │
│ audio chunk duration│ 30 seconds                         │
│ video chunk duration│ 60 seconds                         │
│ port                │ 3030                               │
│ audio disabled      │ false                              │
│ vision disabled     │ false                              │
│ save text files     │ false                              │
│ audio engine        │ WhisperLargeV3Turbo                │
│ ocr engine          │ Tesseract                          │
│ vad engine          │ Silero                             │
│ vad sensitivity     │ High                               │
│ data directory      │ /home/jdoe/.screenpipe             │
│ debug mode          │ false                              │
│ telemetry           │ true                               │
│ local llm           │ false                              │
│ use pii removal     │ false                              │
│ ignored windows     │ []                                 │
│ included windows    │ []                                 │
│ friend wearable uid │ not set                            │
├─────────────────────┼────────────────────────────────────┤
│ monitors            │                                    │
│                     │ id: 33                             │
├─────────────────────┼────────────────────────────────────┤
│ audio devices       │                                    │
│                     │ default (input)                    │
│                     │ default (output)                   │
├─────────────────────┼────────────────────────────────────┤
│ pipes               │                                    │
2024-11-20T16:19:53.066169Z  INFO screenpipe_audio::whisper: device = Cpu    
│                     │ no pipes available                 │
└─────────────────────┴────────────────────────────────────┘
you are using local processing. all your data stays on your computer.

warning: telemetry is enabled. only error-level data will be sent to highlight.io.
to disable, use the --disable-telemetry flag.
2024-11-20T16:19:53.066254Z  INFO hf_hub: Token file not found "/home/jdoe/.cache/huggingface/token"    
2024-11-20T16:19:53.068613Z  INFO screenpipe_server::server: Server starting on 127.0.0.1:3030    
2024-11-20T16:20:02.309596Z  INFO screenpipe_audio::vad_engine: Initializing SileroVad...
2024-11-20T16:20:02.316526Z  INFO screenpipe_audio::vad_engine: SileroVad Model downloaded to: "/home/jdoe/.cache/screenpipe/vad/silero_vad.onnx"
2024-11-20T16:20:02.417504Z  INFO screenpipe_server::video: Starting new video capture    
2024-11-20T16:20:02.417628Z  INFO screenpipe_server::video: Started capture thread    
*** buffer overflow detected ***: terminated
Aborted

P.S. Sorry if this is not a good bug report; I have not submitted them a lot. Please let me how if can improve the quality of my bug reports!

P.P.S. If the offer is still up, I would like to have this as my submission to get a beta copy of the official screenpipe app!

Thanks for a really cool piece of software!

dotsupershow avatar Nov 20 '24 17:11 dotsupershow

DM me on X or discord at @louis030195 for the app

louis030195 avatar Nov 20 '24 17:11 louis030195

@louis030195

Just did. Thanks!

Also, I hope this bug helps get it working better on wayland.

dotsupershow avatar Nov 20 '24 20:11 dotsupershow

DM me on X or discord at @louis030195 for the app

Hey Louis, not pressure at all if you are busy or on break. I just wanted to follow up and make sure you got my message on Discord. Feel free to ignore me if you are taking time of for the holidays.

Also, let me know if there is anything else I can send in to help with the wayland troubleshooting.

dotsupershow avatar Nov 25 '24 14:11 dotsupershow

@dotsupershow app is free now btw - would love any test on linux!

also one liner for CLI:

curl -fsSL raw.githubusercontent.com/mediar-ai/screenpipe/main/install.sh | sh
screenpipe

louis030195 avatar Dec 12 '24 18:12 louis030195

@dotsupershow app is free now btw - would love any test on linux!

also one liner for CLI:

curl -fsSL raw.githubusercontent.com/mediar-ai/screenpipe/main/install.sh | sh
screenpipe

Yes! Thank you for this! That is increadibly generous. Unfortunately, I tried to install it with brew but unfortunately I ran into issues on Zorin. https://github.com/mediar-ai/screenpipe/issues/812 I am planning to switch to Linux Mint which should be better since it is still using X11.

Also, are there any plans to support a GUI app on Linux?

dotsupershow avatar Dec 12 '24 20:12 dotsupershow

@dotsupershow app is free now btw - would love any test on linux!

also one liner for CLI:

curl -fsSL raw.githubusercontent.com/mediar-ai/screenpipe/main/install.sh | sh
screenpipe

Also, I just tried the new one liner CLI. It installed it fine but I still got the issue here https://github.com/mediar-ai/screenpipe/issues/812

dotsupershow avatar Dec 12 '24 20:12 dotsupershow

there is desktop app here https://docs.screenpi.pe/docs/getting-started#linux

you need to build from source

louis030195 avatar Dec 13 '24 00:12 louis030195

there is desktop app here https://docs.screenpi.pe/docs/getting-started#linux

you need to build from source

Thanks! It'd be cool if we could eventually have that installable through brew. I will let you all know if it works on Linux mint

dotsupershow avatar Dec 13 '24 02:12 dotsupershow

unfortunately bun is not compatible with brew which we depends on so we have to use our own script

louis030195 avatar Dec 13 '24 17:12 louis030195