Abnormally High CPU Usage for Recent OBS versions (v31.0.0+) Caused by obs-browser

w0nd3r365

New Member
OS: Kali GNU/Linux

I noticed abnormally high CPU usage from my recent build of OBS 31.0.0-beta1 inbuilt with cef_binary_5060_linux_x86_64 for obs-browser. By "idle" I mean no sources active in a very rough sense. Normally, idle OBS uses about 3% cpu in my laptop with linux. But for this build it was using about 27% while idle. I tried locating the cause of this issue through very many means and eventually discovered it could possibly be caused by CEF (obs-browser). I deleted all browser sources in my scene and then restart OBS. I had to restart for changes to happen. Then idle CPU usage dropped to the normal one about 3%. I noticed that creating a new browser source (even one with the default url), idle CPU usage spikes to about 27%. Deleting the dummy browser source and transitioning does nothing to lower CPU usage. Change only comes upon restarting OBS. Building from the master branch makes no difference.

I didn't know whether OBS or CEF was to blame. I decided to rebuild OBS with several different CEF binaries from https://cef-builds.spotifycdn.com/index.html and https://adamcake.com/cef but the OBS CPU usage spikes immediately I create a browser source and doesn't fall, for each build. So I'm starting to think that maybe this CPU usage spike bug is from OBS itself rather than CEF. I don't know what else to do, maybe file a bug report? But before that I need to figure out whether this is a regression in OBS because OBS versions 30.2.3 and below work fine. I haven't been able to rebuild lower versions of OBS (other than the master branch and v31.0.0-beta1) because I keep getting
Code:
CMake Error at plugins/obs-browser/cmake/os-linux.cmake:23 (set_target_properties_obs):
  Unknown CMake command "set_target_properties_obs".
Call Stack (most recent call first):
  plugins/obs-browser/CMakeLists.txt:53 (include
error during build configuration stage. Now I need to test different OBS versions to see if it's an OBS regression or something else. My functional OBS version 30.2.3 installation is a flatpak one. As much as I don't like flatpaks, I just had to use it because I couldn't reinstall my old personal debian packages due to missing libpython3.11 deps thanks to dist-upgrade.

Anyone care to help me solve this build configuration error or figure out what's wrong?
OBS LOG FILE: https://gist.github.com/w0nd3r365/b5bcd34d3ff40e4c6580b0b9e85655e6
 
Top