element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
11.01k stars 1.96k forks source link

Riot app unusably slow with Firefox (or Waterfox) in safe mode #5894

Open grahamperrin opened 6 years ago

grahamperrin commented 6 years ago

Description

Whilst attempting to troubleshoot a different issue, I attempted to use Riot with Firefox in safe mode. I discovered that the app is unusable with the browser in that mode.

Steps to reproduce

On a relatively old, slow machine (Ergo Vista 621, 4 GB memory) with Firefox 57.0.1 (64-bit) on Kubuntu:

On a relatively modern, fast machine (HP EliteBook 8570p with 16 GB memory) with Waterfox 56.0.1 and Firefox 56.0.2 (64-bit) on FreeBSD-CURRENT:

– and if multiprocess is disabled (e.g. browser.tabs.remote.force-disable) then the entire browser is non-responsive for terribly long periods. Yesterday, for example:

Firefox 56.0.2 … just responded, momentarily, after around twenty-two minutes.

Logs can not be sent, because the application is unusable.

lampholder commented 6 years ago

Clicking the Start in Safe Mode button will temporarily disable your extensions and themes, turn off hardware acceleration and reset toolbar and button customizations. When you leave Safe Mode and start Firefox up normally, your extensions, themes, and settings will return to the state they were in before you entered Safe Mode.

I would guess that safe mode might hide state in localstorage/indexeddb forcing a full resync. Coupled with the lack of hardware accelleration maybe, plus general worse performance on FF (still), this might be causing this problem.