Question / Help Browser Hangs... 23.2.1

dsdDuane

New Member
Hello,

Is it now normal for the browser source to cause the computer to hang for about 15 seconds when a browser source is activated. In the previous versions I didn't have that happen so not sure if it is something on my end or not.

I did do a clean install of OBS (deleted everything and all the libaraires to start over - I killed the install trying to do the NDI thing) so not sure if maybe I still have a problem or if it is something else.

Anyway thanks for any pointers!

Duane
 

Narcogen

Active Member
What libraries did you delete? NDI's?

OBS Studio as distributed for MacOS is a single, self-contained application containing all its dependencies. It shouldn't be dependent on any external libraries (except for plugins) unless you compiled it yourself.

The contents of ~/Library/Application Support/obs-studio are just user data-- profiles, scenes, and settings.

But in any case, no, it is not normal to hang for 15 seconds when adding a browser source.

Include a log file if you have a problem: here's how
 

dsdDuane

New Member
Yes I deleted those and I searched for delete everywhere I could find NDI references. If that didn't work I was going to just reload the entire system but it seems like its working now.

That's good to know it is not supposed to lag - I did it again and uploaded the log reports for current and last.

https://obsproject.com/logs/2e0FJJVZ1GHU6IPY
https://obsproject.com/logs/6lS0ecXVsnhvtn8I

I timed it and the system freezes for about 6 seconds before things start to work normally. I normally have a streamlabs alert browser and a running sub total from another source - so when OBS would book up it would lock up the entire system - no mouse movement until it loaded. Like I mentioned it never used to do that before.
 

Narcogen

Active Member
16:29:47.523: obs-browser: Refused to load the stylesheet 'data:text/css;charset=utf-8;base64,Ym9keSB7IGJhY2tncm91bmQtY29sb3I6IHJnYmEoMCwgMCwgMCwgMCk7IG1hcmdpbjogMHB4IGF1dG87IG92ZXJmbG93OiBoaWRkZW47IH0=' because it violates the following Content Security Policy directive: "style-src 'self' 'unsafe-inline' ".
16:29:47.523: (source: data:text/css;charset=utf-8;base64,Ym9keSB7IGJhY2tncm91bmQtY29sb3I6IHJnYmEoMCwgMCwgMCwgMCk7IG1hcmdpbjogMHB4IGF1dG87IG92ZXJmbG93OiBoaWRkZW47IH0=:1)
Are you adding custom CSS to your browser source, or is this being loaded from the URL you are specifying? This could be causing the delay when you try and add a browser source.
 

dsdDuane

New Member
I didn't add it manually - but what I can say is if I create a new browser source when it loads the default URL https://obsproject.com/browser-source with the default custom CSS body { background-color: rgba(0, 0, 0, 0); margin: 0px auto; overflow: hidden; } it still hangs the entire system for about 6 seconds. It also does that every time I open OBS if I have a browser source enabled - if I don't everything loads quick without any hanging.
 

Narcogen

Active Member
OK it looks like that error may not be related to the issue-- it's just that the browser plugin will no longer allow the default CSS to be loaded because it's insecure.

Does it happen in version 24? Does it happen if you remove any 3rd party plugins, like the StreamDeck plugin?

I assume you're able to load the URLs for your browser sources without any such delay in an ordinary browser?
 

dsdDuane

New Member
Hello,

I'm running 23.2.1 - I wasn't aware 24 was avail for macOS yet.

I removed the StreamDeck plugin and it still does it.

The URL's load fine in both Safari and Chrome without locking the system up. I was even considering using a real browser as a source but that seems to be kind of problematic.

Thanks for the suggestions Narcogen!
 
D

Deleted member 166350

This problem had been reported on the browser source's GitHub issue tracker as well and it happens on macOS on a varying range of configurations without a fix announced. It's supposedly gone with version 24 though (haven't been able to check myself) as there were lots of issues with CEF on macOS as well (also: missing hardware acceleration).
 
Top