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

OBS (Flatpak, Wayland) Replay Buffer runs into an error saying "An unspecified error occurred while recording." after a certain amount of time. #7534

Closed
IAmV0id opened this issue Oct 5, 2022 · 8 comments
Labels
Linux Affects Linux

Comments

@IAmV0id
Copy link

IAmV0id commented Oct 5, 2022

Operating System Info

Other

Other OS

Fedora 37

OBS Studio Version

28.0.3

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/zWrJjVBaafqxWQUQ

OBS Studio Crash Log URL

No response

Expected Behavior

Replay buffer functions as normal, without running into an error.

Current Behavior

Replay buffer works for a small amount of time, before ultimately stopping with a error message popping up saying "An unspecified error occurred while recording."

Afterwards, the "Record" button says "Stopping recording" indefinitely, despite replay buffer being used.

Steps to Reproduce

  1. Launch OBS Flatpak
  2. Enable replay buffer (I set it to 60 seconds, 1024MB)
  3. Start replay buffer
  4. Wait a bit, it could be a minute before an error shows up
  5. Window pops up saying "An unspecified error occurred while recording."
    ...

Anything else we should know?

This problem only occurs on Wayland, X11 had no issues.
This problem does not happen on the native RPM OBS, this only seems to effect the flatpak version on Wayland.

My system uses a NVIDIA GTX 1080.

@IAmV0id
Copy link
Author

IAmV0id commented Oct 5, 2022

Interesting, I have seem to fixed this issue by completely wiping the OBS Flatpak folder in .var

Not sure what caused this, but out of sight, out of mind. Since the problem has been solved, I'll close the issue.

@IAmV0id IAmV0id closed this as completed Oct 5, 2022
@IAmV0id
Copy link
Author

IAmV0id commented Oct 5, 2022

Nevermind, this seem to only temporarily fix the problem. Issue has been reopened, ignore my other comment.

@IAmV0id IAmV0id reopened this Oct 5, 2022
@tytan652
Copy link
Collaborator

tytan652 commented Oct 7, 2022

Side note: We actually don't support Wayland on NVIDIA.

Could you try to use encoder other than NVENC for replay buffer (recording) if the same issue happen ?

@tytan652 tytan652 added the Linux Affects Linux label Oct 7, 2022
@IAmV0id
Copy link
Author

IAmV0id commented Oct 7, 2022

Using the software encoder (specifically the low CPU usage preset), I don't receive the error, and I can use replay buffer just fine.

However the logs still show "Failed to create xdg-screensaver: 2", this doesn't seem to cause any issues however.

Here's the logs for the session with software encoder. https://obsproject.com/logs/HU5tqASoUrK_5cqr

@tytan652 tytan652 added Dependency Issue Issue is in external library or dependency, not OBS itself and removed Dependency Issue Issue is in external library or dependency, not OBS itself labels Oct 7, 2022
@tytan652
Copy link
Collaborator

tytan652 commented Oct 7, 2022

Seems to be connected to FFmpeg NVENC. Potentially a dependency issue.

The screensaver thing, is surely OBS preventing the screensaver to be enabled.

@IAmV0id
Copy link
Author

IAmV0id commented Oct 7, 2022

That would explain why the issue only persists on the flatpak package, not the native RPM package.

@RytoEX
Copy link
Member

RytoEX commented Feb 9, 2023

08:32:29.403: [NVIDIA NVENC H.264 (FFmpeg) encoder: 'simple_video_recording'] Encoding queue duration surpassed 5 seconds, terminating encoder
[...]
08:32:29.426: Output 'Replay Buffer': Number of lagged frames due to rendering lag/stalls: 679 (24.3%)

Something is causing the encoder to get backed up and then terminate. I don't know what that something is.

This problem only occurs on Wayland, X11 had no issues.
This problem does not happen on the native RPM OBS, this only seems to effect the flatpak version on Wayland.

Does it happen with the RPM version in Wayland instead of X11? Does this still occur in OBS Studio 29.0.2 (or newer)?

Replay buffer works for a small amount of time, before ultimately stopping with a error message popping up saying "An unspecified error occurred while recording."

Do you mean that the error occurs at random any time the Replay Buffer is active in the background? Or does it happen when you try to save the Replay Buffer (the actual act of saving the clip)?

@gxalpha
Copy link
Member

gxalpha commented Jul 20, 2023

There has been no response to the comment above. As such, this issue unfortunately is not actionable for us.

@gxalpha gxalpha closed this as not planned Won't fix, can't repro, duplicate, stale Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux Affects Linux
Projects
None yet
Development

No branches or pull requests

4 participants