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] buffer overflow detected in ZorinOS Wayland installation #714

Open
dotsupershow opened this issue Nov 20, 2024 · 4 comments
Open

[bug] buffer overflow detected in ZorinOS Wayland installation #714

dotsupershow opened this issue Nov 20, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@dotsupershow
Copy link

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 #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 dotsupershow added the bug Something isn't working label Nov 20, 2024
Copy link

linear bot commented Nov 20, 2024

@louis030195
Copy link
Collaborator

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

@dotsupershow
Copy link
Author

@louis030195

Just did. Thanks!

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

@dotsupershow
Copy link
Author

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.

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

2 participants