IsmaelMartinez / teams-for-linux

Unofficial Microsoft Teams for Linux client
GNU General Public License v3.0
2.81k stars 232 forks source link

Webcam feed breaking with backgrounds #1423

Closed neontechtra closed 4 days ago

neontechtra commented 5 days ago

Describe the bug When using the webcam with a background (such as blur, "in the zone 1", or "in the zone 2") the camera will zoom in, stretch (causing a lot pixelation), which then causes blurring all of the camera space. Making the camera unusable for meetings.

You can temporarily resolve it by removing the background, but then reapplying it will cause the issue to comeback.

To Reproduce Steps to reproduce the behavior:

Expected behavior A nice crisp webcam focused on me - with a blurry background

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Debug

user@fedora:~/Documents$ flatpak run com.github.IsmaelMartinez.teams_for_linux --webDebug --logConfig='{}'

[2:0926/083148.431301:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
No config file found, using default values
all good with appLogLevels you aren't using them
Initialising logger with config: "{}\n"
Logger initialised with transports: {}
08:31:48.555 › File logging at /home/jordan/.var/app/com.github.IsmaelMartinez.teams_for_linux/config/teams-for-linux/logs/main.log with level silly
08:31:48.556 › Console logging enabled with level silly
08:31:48.556 › Logger initialised
08:31:48.556 › configPath: /home/user/.var/app/com.github.IsmaelMartinez.teams_for_linux/config/teams-for-linux
08:31:48.557 › configFile: {}
08:31:48.558 › Running under Wayland, switching to PipeWire...
LaunchProcess: failed to execvp:
xdg-settings
Gtk-Message: 08:31:48.594: Failed to load module "canberra-gtk-module"
Gtk-Message: 08:31:48.594: Failed to load module "pk-gtk-module"
Gtk-Message: 08:31:48.594: Failed to load module "canberra-gtk-module"
Gtk-Message: 08:31:48.594: Failed to load module "pk-gtk-module"
[2:0926/083148.604547:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:0926/083148.604598:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
08:31:48.664 › processArgs: [
  '/app/teams-for-linux/teams-for-linux',
  '--webDebug',
  '--logConfig={}\n'
]
08:31:48.665 › testing RegExp processArgs false
08:31:48.665 › testing RegExp processArgs false
08:31:48.665 › testing RegExp processArgs false
[2:0926/083148.665833:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:0926/083148.665858:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:0926/083148.665873:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
08:31:48.665 › Testing network using net.request() for https://teams.microsoft.com
08:31:48.666 › Spellchecker is disabled!
08:31:48.957 › Network test successful with method https
08:31:49.646 › GetSystemIdleState => IdleTimeout: 300s, IdleTimeoutPollInterval: 10s, ActiveCheckPollInterval: 2s, IdleTime: 0s, IdleState: 'active'
[2:0926/083149.647976:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.ScreenSaver.GetActive: object_path= /org/freedesktop/ScreenSaver: org.freedesktop.DBus.Error.NotSupported: This method is not part of the idle inhibition specification: https://specifications.freedesktop.org/idle-inhibit-spec/latest/
08:31:50.102 › did-frame-finish-load {} true
08:31:50.102 › did-finish-load
08:31:50.933 › Badge count set to '0'
08:31:50.938 › Badge count set to '0'
08:31:51.502 › Badge count set to '0'
08:31:52.660 › did-frame-finish-load {} false
[47:0926/083155.284484:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
08:31:59.650 › GetSystemIdleState => IdleTimeout: 300s, IdleTimeoutPollInterval: 10s, ActiveCheckPollInterval: 2s, IdleTime: 0s, IdleState: 'active'
[47:0926/083200.954624:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[47:0926/083200.961811:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
08:32:03.889 › Badge count set to '0'
08:32:07.446 › Badge count set to '0'
[2:0926/083208.335778:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:0926/083208.335808:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:0926/083208.335839:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:0926/083208.335861:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:0926/083208.335878:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
08:32:09.651 › GetSystemIdleState => IdleTimeout: 300s, IdleTimeoutPollInterval: 10s, ActiveCheckPollInterval: 2s, IdleTime: 0s, IdleState: 'active'
08:32:19.651 › GetSystemIdleState => IdleTimeout: 300s, IdleTimeoutPollInterval: 10s, ActiveCheckPollInterval: 2s, IdleTime: 0s, IdleState: 'active'
08:32:29.652 › GetSystemIdleState => IdleTimeout: 300s, IdleTimeoutPollInterval: 10s, ActiveCheckPollInterval: 2s, IdleTime: 0s, IdleState: 'active'
08:32:39.653 › GetSystemIdleState => IdleTimeout: 300s, IdleTimeoutPollInterval: 10s, ActiveCheckPollInterval: 2s, IdleTime: 0s, IdleState: 'active'
08:32:49.654 › GetSystemIdleState => IdleTimeout: 300s, IdleTimeoutPollInterval: 10s, ActiveCheckPollInterval: 2s, IdleTime: 0s, IdleState: 'active'
^C

Additional Info Testing browsers to see how they function:

Chromium;

Firefox:

scottmckendry commented 5 days ago

Having same issue on bleeding edge NixOS - both in chromium and in T4L. Was working fine a day or two ago.

neontechtra commented 5 days ago

Having same issue on bleeding edge NixOS - both in chromium and in T4L. Was working fine a day or two ago.

just as a workaround I was able to use OBS, virtual camera and "obs-backgroundremoval" until it gets resolved.

IsmaelMartinez commented 4 days ago

Hi @scottmckendry and @neontechtra, If this is happening in the browser, is probably an issue with Microsoft themselves.

Maybe try version 1.11.0 (pre-release) and/or passing the --disableGpu option. Sometimes this can be related to the hardware acceleration.

neontechtra commented 4 days ago

Makes sense, appreciate it!