obsproject / obsproject/obs-studio

Browser sources are freezing intermittently

Open
#12,796 16 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

issue/confirmed
Dominant language
C
Stars
76.4k
Forks
10.2k
Avg merge
4d 23h
Merged PRs (30d)
12

Description

Operating System Info

Windows 10

OBS Studio Version

32.0.2

OBS Studio Log URL

https://obsproject.com/logs/hy4BVIRBr7x27eoX

Expected Behavior

Browser sources should not freeze.

Current Behavior

Hi, this is a follow up to my previous issue #12772.

I have filed several support request both in forum and on OBS discord. No one was able to debug my issue. Also this is not an issue of missing RAM (I have verified it).

The issue is that apparently browser sources will randomly freeze for me. This is happening "intermittently", meaning it is unpredictable and does not happen every time. However once it does happen it is "permanent" (until OBS restart).

Also, I do have noticed that I can "trigger" this bug by switching scenes. For instance, I have animated webcam frames and often the animation will be frozen after a scene change.

The more tricky issue are browser sources that are not immediately visible. For instance stream alerts. These will obviously hang without me noticing it. I have had a stream were two people followed without me getting an alert.

Also, this is NOT a streamlabs/streamelements/own3d/etc issue. This happens to EVERY browser source (not at once, but one by one will freeze up).

This is ALSO an issue with browser "docks" like the twitch stats dock. Once it happens it usually hangs indefinitely until I right click -> refresh. It will remain in this state until I manually refresh again.

Steps to Reproduce
  1. Create two scenes
  2. Add an animated browser source, and another (different) animated browser source to the second scene
  3. Switch between those two scenes until you see that it froze
  4. Sometimes it is hard to trigger and sometimes it will happen fast
  5. I am NOT sure this happens exclusively on scene changes, however there does seem to be a correlation in my testing. Not sure why docks are affected.
Anything else we should know?

To resolve this issue, once it happens with a browser source, one can go to the browser source properties and select to delete cache. This will "fix" the freeze. Another workaround I have found it to enable "refresh source on scene change".

However afaik both actions are not possible for "docks", like the twitch dock.

Or lastly restarting OBS will fix it as well (until it happens again).

Another important note:

The logs do NOT show anything related to the freeze! I have had the log open with vscode side-by-side with OBS while triggering the bug and there IS NO LOG that is relevant to this bug. So the log I have posted here is actually of no use.

Please do NOT close this bug report. I have extensively tested this bug. I can reproduce it. It did happen on a live stream, and does happen continuously. It is not a RAM issue. This is NOT a support issue. My system is set up correctly and I am willing to help debug this issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is named. Start by reproducing the freeze with the listed scene-switching steps, then review the OBS log URL and prior issue #12772 while comparing browser sources with docks. Done means browser sources and docks remain responsive across repeated scene switches, without requiring a refresh or OBS restart.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.