peek icon indicating copy to clipboard operation
peek copied to clipboard

Peek crashes on Ubuntu 22

Open bkjohnson opened this issue 3 years ago • 14 comments
trafficstars

System Information

  • Distribution package: .deb
  • Peek version: 1.5.1
  • GTK: 3.24.33
  • Additional info if applicable: Ubuntu 22.04 w/ Regolith Linux 2.x

Describe the bug

When I click "Start recording" or press Ctrl+R, peek crashes once the countdown ends.

To Reproduce

  1. Start peek
  2. Try to start recording from the GUI
  3. Notice the crash

Expected behavior I expect peek to record the area in its frame and to be able to stop the recording when I want.

Additional context

Here is a sample of the error I get when I start the GUI from the command line and then try to start recording:

Error message containing: "fish: Job 1, 'peek' terminated by signal SIGSEGV (Address boundary error)"

bkjohnson avatar Jul 19 '22 00:07 bkjohnson

Getting the same error on Ubuntu 22.04 on Regolith Linux 2.x, GTK version 3.24.33, Peek version 1.5.1, compositor is picom. image

Using Unity Desktop does not cause this error.

luketrenaman avatar Aug 09 '22 14:08 luketrenaman

Getting the same error on Ubuntu 22.04 on Regolith Linux 2.x, GTK version 3.24.33, Peek version 1.5.1, compositor is picom. image

Using Unity Desktop does not cause this error.

Same problem to me on Ubuntu 22.04/Regolith2.0. Works only if I start it with ffmpeg flag: peek -b ffmpeg

gedasss avatar Sep 08 '22 10:09 gedasss

  • ubuntu22.04 gnome42 Using screen recorder backend gnome-shell Failed to initialize recorder: Could not start GNOME Shell recorder.

Missing codec or another active screen recording using org.gnome.Shell.Screencast?

Please see the FAQ at https://github.com/phw/peek#what-is-the-cause-for-could-not-start-gnome-shell-recorder-errors

yzcyayaya avatar Oct 17 '22 09:10 yzcyayaya

Running this command worked for me ( upgraded Ubuntu version from 20 LTS to 22 ) :

rm -rf ~/.cache/gstreamer-1.0

luizwbr avatar Oct 17 '22 13:10 luizwbr

What worked for me was to run peek -b ffmpeg

Sharcoux avatar Dec 28 '22 10:12 Sharcoux

Thanks, that works for me too!

lfilhomindfulcare avatar Jan 03 '23 14:01 lfilhomindfulcare

Can confirm the solution from @Sharcoux works for me too. Cheers ✨

RadoRado avatar Jan 11 '23 09:01 RadoRado

@Sharcoux 's solution worked for me as well. Given the recent deprecation, I may try to make a fork that has that configurable in the GUI preferences menu rather than just a cli option

bkjohnson avatar Jan 22 '23 01:01 bkjohnson

Could it be as simple as just making it remember the last option it used that didn't crash? I haven't seen a better screen capture tool for Linux. I'm not sure what got deprecated

On Sat, Jan 21, 2023, 5:30 PM Brooks Johnson @.***> wrote:

@Sharcoux https://github.com/Sharcoux 's solution worked for me as well. Given the recent deprecation https://github.com/phw/peek/issues/1191, I may try to make a fork that has that configurable in the GUI preferences menu rather than just a cli option

— Reply to this email directly, view it on GitHub https://github.com/phw/peek/issues/1094#issuecomment-1399378869, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACPLB5WPIQYRKQKATPCCVDWTSESZANCNFSM536EHUEA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

AsaAyers avatar Jan 22 '23 01:01 AsaAyers

Yes, peek -b ffmpeg works. But how can I set this flag as default? It's tough to run via terminal every time.

gustavotrott avatar Feb 23 '23 17:02 gustavotrott

Yes, peek -b ffmpeg works. But how can I set this flag as default? It's tough to run via terminal every time.

https://linuxize.com/post/how-to-create-bash-aliases/

Sharcoux avatar Feb 23 '23 17:02 Sharcoux

Yes, peek -b ffmpeg works. But how can I set this flag as default? It's tough to run via terminal every time.

linuxize.com/post/how-to-create-bash-aliases

Thanks.

I created a Launcher for the correct command..

vi ~/.local/share/applications/peek.desktop

[Desktop Entry]
Name=Peek ffmpeg
Exec=/usr/bin/peek -b ffmpeg
Type=Application
Icon=studio

Now I can call it from Applications menu :smile:

gustavotrott avatar Feb 23 '23 18:02 gustavotrott

or addings this to .bashrc or .profile alias peek='peek -b ffmpeg'

luggie avatar Mar 21 '24 14:03 luggie