desktop icon indicating copy to clipboard operation
desktop copied to clipboard

[Bug]: Auto Video Pause and Performance Issues in Zen Browser

Open Evren-os opened this issue 1 year ago • 3 comments

What happened?

Bug Report

Description

While using Zen Browser (Alpha 19), I encountered significant performance issues and video playback disruptions. I had the following tabs open simultaneously:

  • 1 Facebook tab
  • 1 YouTube tab
  • 3 Instagram tabs

Initially, videos were playing smoothly across all tabs, but suddenly, all video playback stopped. Despite the network being stable, videos became unplayable, appearing to be in a frozen state. Occasionally, audio continues to play, but without any sound output. Reloading the tabs temporarily resolves the issue, but it recurs shortly after.

In addition to the video playback problem, the browser experiences frequent performance degradation. Zen Browser occasionally hangs for several moments and sometimes crashes entirely. This issue has persisted across multiple versions of the browser, leading me to believe it may be related to the browser itself rather than my system configuration.

Steps to Reproduce

  1. Open the Zen Browser (Alpha 19).
  2. Open multiple video-heavy tabs (e.g., Facebook, YouTube, and Instagram).
  3. Start video playback in each tab.
  4. Observe as video playback suddenly pauses across all tabs, with no videos being playable, and audio output may be inconsistent.

Expected Behavior

Video playback should be smooth across multiple tabs without unexpected pauses, freezes, or audio issues. The browser should maintain stable performance, even with multiple tabs open.

Actual Behavior

  • Video playback pauses automatically and becomes unplayable in all tabs.
  • Audio may continue without any sound output.
  • Browser hangs, becomes unresponsive, and sometimes crashes.

Additional Context

  • Issue persists even after reloading the affected tabs.
  • The problem occurs inconsistently but frequently, affecting the usability of the browser.
  • System resources are not maxed out during the occurrence, indicating a potential software-related issue.

Environment

  • OS: Arch Linux (Kernel: linux-zen)
  • Zen Browser Version: Alpha 19
  • Hardware: AMD Ryzen 7 5700G (8C/16T), 16 GB RAM

Notes

This issue has been observed across several previous versions of Zen Browser. Given the frequent hangs and crashes, it may be related to resource management or a specific issue with video handling across multiple tabs.

Please advise on any potential workarounds or fixes. I'm willing to provide additional logs or testing if needed.

Reproducible?

  • [X] I have checked that this issue cannot be reproduced on Mozilla Firefox.

Version

1.0.0-a.19

Severity impact

Medium

What platform are you seeing the problem on?

Linux

Relevant log output

No response

Evren-os avatar Aug 15 '24 12:08 Evren-os

Is it still happending in version 24?

mr-cheffy avatar Aug 19 '24 21:08 mr-cheffy

Is it still happending in version 24?

I'm still in 22, lemme test it!

Evren-os avatar Aug 20 '24 05:08 Evren-os

Had a similar issue on Twitch yesterday (version a23). I experienced jitter - previous frame returning for a split second while watching a stream in 1080p. Opened the same streaming Firefox 129.0.1. Everything was completely fine.

marko19914 avatar Aug 20 '24 13:08 marko19914

Had a similar issue on Twitch yesterday (version a23). I experienced jitter - previous frame returning for a split second while watching a stream in 1080p.

what OS are you in?

mr-cheffy avatar Aug 22 '24 08:08 mr-cheffy

Desktop: GNOME v: 43.9 Distro: Debian GNU/Linux 12 (bookworm)

marko19914 avatar Aug 22 '24 09:08 marko19914

Can confirm, this is happening under Windows 11, both when Hardware Acceleration is enabled and disabled. Using an RTX 3060Ti.

With Hardware Acceleration enabled, the browser flickers, sometimes into 2 rectangles side by side, as if its drawing the browsers base but not every layer on top.

EDIT It seems that this on Windows, at least when NVIDIA settings are changed. May also exist on AMD and Intel in forms. Notably, when enabling 'Max Refresh Rate' at all and, changing Vertical Sync to Fast. I know this affects Chromium browsers but It never affected Firefox interesting. image

Perhaps add an advisory for those not aware? Not all of us are technical.

Stryxus avatar Aug 22 '24 14:08 Stryxus

Still happens, but is much lighter on version 1.0.0-a29. When chat is accessed, the performance of the stream dips slightly. But the situation right now is much better than it was.

marko19914 avatar Aug 25 '24 18:08 marko19914

YouTube one is gone, at least for me

Evren-os avatar Aug 25 '24 18:08 Evren-os

I think, it might be related. The video doesn't always resume after pausing the video on YT or the stream on Twitch. Toggling the pause/play back and forth 3-4 times usually gets the video playing again.

marko19914 avatar Aug 25 '24 18:08 marko19914

I think, it might be related. The video doesn't always resume after pausing the video on YT or the stream on Twitch. Toggling the pause/play back and forth 3-4 times usually gets the video playing again.

Ya, I faced this also in youtube

Evren-os avatar Aug 25 '24 19:08 Evren-os

Is this still happening in version 37?

n7itro avatar Sep 05 '24 20:09 n7itro

Is this still happening in version 37?

Not dealing with those issues anymore

Evren-os avatar Sep 05 '24 21:09 Evren-os

I don't see this issue on a37. Have had the version for half a day though - got released in flathub quite recently.

marko19914 avatar Sep 07 '24 16:09 marko19914

Update: Had the bug in Instagram Stories today. Update2: Some video streaming websites have the issue.

marko19914 avatar Sep 08 '24 15:09 marko19914