Public bug reported:

# GNOME Shell consumes ~100% of one CPU core with OBS camera preview on
Wayland

## Summary

GNOME Shell consistently consumes approximately 95–100% of one CPU core
when OBS Studio is open with a live USB camera preview.

The issue occurs even when OBS is not recording.

Disabling the OBS preview significantly reduces GNOME Shell CPU
utilization to approximately 5–12%, after a short stabilization period.

OBS can remain open, and the camera can remain active.

## Environment

- Operating system: Ubuntu 26.04 LTS
- Desktop environment: GNOME
- Display server: Wayland
- GPU: Intel Alder Lake-P GT2 (Iris Xe Graphics), PCI ID 8086:46a6
- Graphics driver: i915
- Application: OBS Studio
- Video source: External USB-C camera
- Exact OBS, GNOME Shell and Mutter versions: To be collected via Apport

## Steps to Reproduce

1. Start an Ubuntu GNOME Wayland session.
2. Connect a USB camera.
3. Launch OBS Studio.
4. Configure a scene containing the live camera feed.
5. Keep OBS preview enabled.
6. Leave recording stopped.
7. Monitor GNOME Shell CPU utilization using `top`.
8. Right-click the OBS preview and select "Disable Preview".
9. Wait approximately 30 seconds.
10. Measure GNOME Shell CPU utilization again.

## Actual Results

With OBS preview enabled:

| Measurement | GNOME Shell CPU |
|---|---|
| Sample 1 | 96% |
| Sample 2 | 98% |
| Sample 3 | 96% |

Immediately after disabling preview:

| Measurement | GNOME Shell CPU |
|---|---|
| Sample 1 | 95% |
| Sample 2 | 95% |
| Sample 3 | 95% |

After allowing the system to stabilize:

| Measurement | GNOME Shell CPU |
|---|---|
| Sample 1 | 9% |
| Sample 2 | 5% |
| Sample 3 | 9% |

Additional measurements with preview disabled showed approximately
10–12% CPU utilization.

The GNOME Shell main thread was identified as the primary CPU consumer.

Other GNOME Shell threads, including the KMS thread and Mutter Input
Thread, did not exhibit comparable CPU utilization during measurement.

No relevant GPU or USB driver errors were found in the filtered system
logs.

Closing OBS also resolves the high CPU utilization, according to user
observation.

## Expected Results

Displaying a live camera preview in OBS should not continuously saturate
one CPU core in the GNOME Shell process.

GNOME Shell CPU utilization should remain reasonably low during an
otherwise idle desktop session.

## Additional Investigation

A GNOME System Monitor extension was initially suspected.

However, disabling the extension did not consistently resolve the issue.
GNOME Shell continued consuming approximately 90–100% CPU while OBS
preview remained active.

The strongest observed correlation is between OBS preview visibility and
GNOME Shell CPU utilization.

The issue does not require active recording.

## Workaround

Disable the OBS preview.

After CPU utilization stabilizes, GNOME Shell usage decreases
significantly.

OBS can remain open and continue processing the camera feed.

## Possible Cause

The issue may involve excessive compositing or rendering activity in
GNOME Shell / Mutter when processing the OBS preview window under
Wayland.

The exact root cause has not been established.

Further investigation may be needed to distinguish an OBS rendering
issue from a Mutter/Wayland compositor issue.

## Related Reports

Launchpad #2155412 describes a potentially related OBS/Wayland/Intel
graphics interaction involving display flickering and GBM buffer errors.

That report was marked as a duplicate of #2152207.

The present issue has different observed symptoms: excessive GNOME Shell
CPU consumption without corresponding GBM errors in the inspected logs.

These reports are provided as references, not as confirmed duplicates.

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: gnome-shell 50.1-0ubuntu1.5
ProcVersionSignature: Ubuntu 7.0.0-43.43-generic 7.0.14
Uname: Linux 7.0.0-43-generic x86_64
NonfreeKernelModules: zfs
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Wed Nov 18 19:56:03 2026
DisplayManager: gdm3
InstallationDate: Installed on 2023-08-05 (1201 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 
(20220809.1)
RelatedPackageVersions: mutter-common 50.1-0ubuntu2.5
SourcePackage: gnome-shell
UpgradeStatus: Upgraded to resolute on 2026-10-24 (25 days ago)

** Affects: gnome-shell (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug resolute wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2174954

Title:
  GNOME Shell consumes ~100% of one CPU core with OBS camera preview on
  Wayland

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2174954/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to