phw / peek

Simple animated GIF screen recorder with an easy to use interface
GNU General Public License v3.0
10.19k stars 319 forks source link

Peek crashes on Ubuntu 22 #1094

Open bkjohnson opened 2 years ago

bkjohnson commented 2 years ago

System Information

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)"

luketrenaman commented 1 year ago

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.

gedasss commented 1 year ago

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

yzcyayaya commented 1 year ago

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

luizwbr commented 1 year ago

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

rm -rf ~/.cache/gstreamer-1.0

Sharcoux commented 1 year ago

What worked for me was to run peek -b ffmpeg

lfilhomindfulcare commented 1 year ago

Thanks, that works for me too!

RadoRado commented 1 year ago

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

bkjohnson commented 1 year ago

@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

AsaAyers commented 1 year ago

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: @.***>

gustavotrott commented 1 year ago

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

Sharcoux commented 1 year ago

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/

gustavotrott commented 1 year ago

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:

luggie commented 4 months ago

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