dec05eba / gpu-screen-recorder-issues

GPU Screen Recorder issue tracker
20 stars 0 forks source link

[BUG] Can neither record nor replay #45

Closed tsuza closed 3 months ago

tsuza commented 3 months ago

Describe the bug Whenever I try to record / start replay, the recording / replay instantly stops and I get the following message:

GPU Screen Recorder, body: Failed to start replay. Either your graphics card doesn't support GPU Screen Recorder with the settings you used or you don't have enough disk space to record a video

If I try to start it from the CLI, I get the following output ( from booting it up to trying to record ):

Warning: failed to connect to the X server. Assuming wayland is running without Xwayland
gsr error: failed to initialize global shortcuts
pkexec version 124
/home/suza
Warning: failed to connect to the X server. Assuming wayland is running without Xwayland
[h264_nvenc @ 0x5579a8d57680] ignoring invalid SAR: 0/0
gsr info: gsr_kms_client_init: waiting for server to connect
kms server info: connecting to the client
gsr info: gsr_kms_client_init: server connected
gsr info: replacing file-backed unix domain socket with socketpair
kms server info: connected to the client
gsr info: using socketpair
[h264_nvenc @ 0x5579a8d57680] ignoring invalid SAR: 0/0
Notification: title: GPU Screen Recorder, body: Failed to start replay. Either your graphics card doesn't support GPU Screen Recorder with the settings you used or you don't have enough disk space to record a video
Warning: failed to connect to the X server. Assuming wayland is running without Xwayland

To Reproduce It happens with any option, both GUI and CLI.

  1. Install GPU Screen Recorder through Flatpak.
  2. Install GPU Screen Recorder System Wide, otherwise it refuses to record / replay altogether.
  3. Record / replay.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context I'm not setting any env var. I've tried to give some additional permissions to GPU Screen Recorder through flatseal, but it did not help. Recording works on OBS, if this piece of info helps.

log.txt

tsuza commented 3 months ago

Update: If I select "Desktop portal (Experimental, HDR not supported)", it stops complaining and starts recording. Are there any drawbacks than choosing a specific monitor ( apart from HDR not being supported, which is a non-issue for me )? Or is it specifically due to Wayland, thus it needs to be used?

dec05eba commented 3 months ago

Update: If I select "Desktop portal (Experimental, HDR not supported)", it stops complaining and starts recording. Are there any drawbacks than choosing a specific monitor ( apart from HDR not being supported, which is a non-issue for me )? Or is it specifically due to Wayland, thus it needs to be used?

There is one another difference aside from hdr as you stated. Desktop portal doesn't work properly with prime-run (when you have a laptop with a dedicated gpu, for example intel laptop with a nvidia gpu and you want to record with the nvidia gpu), so prime-run is disabled for portal. But this might be technically possible so it might get fixed in the future. But yes as you stated, the main reason is that desktop portal only works on wayland.

As for this issue, can you run flatpak run --command=gpu-screen-recorder com.dec05eba.gpu_screen_recorder -w screen -f 60 -o video.mp4 and post the terminal output here? if it crashes (stops by itself without recording anything) then can you run coredumpctl gdb) and copy the terminal output of that here?

dec05eba commented 3 months ago

Oh no need to run that, I see the issue now. It's when x11 is not available, which is always the case in flatpak now..

tsuza commented 3 months ago

Aha, gotcha. Is there anything you can do about it ( e.g. forcefully installing x11 for the app )? Thankfully it works with Desktop portal, and I'm on a Desktop with a single GPU, so it's not a big issue for now.

dec05eba commented 3 months ago

I have fixed the issue now. The fix will be available in the flatpak soon: https://github.com/flathub/com.dec05eba.gpu_screen_recorder/pull/143 Thanks for reporting the issue so I could fix it early!

tsuza commented 3 months ago

Thank you for being so quick!

tsuza commented 3 months ago

Just an update for you, I've just installed the latest flatpak version and now it works perfectly. Thanks once again!