zen-browser / desktop

🌀 Experience tranquillity while browsing the web without people tracking you!
https://zen-browser.app
Mozilla Public License 2.0
13.16k stars 308 forks source link

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

Closed Evren-os closed 2 weeks ago

Evren-os commented 1 month ago

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:

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

Additional Context

Environment

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?

Version

1.0.0-a.19

Severity impact

Medium

What platform are you seeing the problem on?

Linux

Relevant log output

No response

mauro-balades commented 1 month ago

Is it still happending in version 24?

Evren-os commented 1 month ago

Is it still happending in version 24?

I'm still in 22, lemme test it!

marko19914 commented 1 month ago

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.

mauro-balades commented 1 month ago

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?

marko19914 commented 1 month ago

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

Stryxus commented 1 month ago

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.

marko19914 commented 3 weeks ago

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.

Evren-os commented 3 weeks ago

YouTube one is gone, at least for me

marko19914 commented 3 weeks ago

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.

Evren-os commented 3 weeks ago

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

n7itro commented 2 weeks ago

Is this still happening in version 37?

Evren-os commented 2 weeks ago

Is this still happening in version 37?

Not dealing with those issues anymore

marko19914 commented 2 weeks ago

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

marko19914 commented 1 week ago

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