Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 725266

Summary: www-client/firefox-68.8.0 is broken on several websites
Product: Gentoo Linux Reporter: Michał Dec <moog621>
Component: Current packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: RESOLVED INVALID    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: https://www.wowhead.com/npc=90644/lagar-the-wise https://support.gog.com https://rivalregions.com
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Output of $(emerge --info)
Output of firefox-wayland when getting NPC location of WoW NPC from wowhead.com

Description Michał Dec 2020-05-25 09:51:54 UTC
There are 3 example websites that I can remember from the top of my head that demonstrate this bug.

wowhead.com mapper is just a blank rectangle.

GOG support is not usable.

Rival Regions is just a blank dashboard. The tabs are there, but other than that, nothing is there.

Reproducible: Always

Steps to Reproduce:
1. Go to any example URL and try using it.
Actual Results:  
I got dearly disappointed that I could not find an NPC in WoW that's needed for me to progress my quest, I could not file tickets to GOG when I needed to, and I couldn't play Rival Regions on my desktop.

Expected Results:  
wowhead.com mapper should show a map of local area. The example URL specifically should pinpoint the location of a specific NPC in World of Warcraft.

GOG support should be usable. I should be able to file a ticket instead of being able to do absolutely nothing.

Rival Regions should show the content of each tab.

Maintainers of all of these websites told me to update to Firefox vlatest.pre.alpha.from.git.unstable.keyworded.masked.on.fire. I refuse blindly upgrading Firefox ad infinitum because I already suffered the loss of my Firefox profile when migrating from 60 to 68.

There are probably more websites affected. This seems to be only happening to Firefox on Gentoo Linux. I am not using any extensions whatsoever.

I could do it on my phone, but I don't want to do everything on my phone. It's draining my battery and my fingers are too big to quickly type on most touchscreens without typos.
Comment 1 Maciej Barć gentoo-dev 2020-05-25 18:36:02 UTC
I have strange artifacts on images on few websites - notably youtube.com
Same behavior appeared on 68.8.0 and 76.0.1
But I use custom-cflags & custom-optimization so what do I know...
I compiled Waterfox form poly-c with custom-* and same CFLAGS and had not yet experienced those artifacts (proper respect to that dude and Waterfox devs!).
No to throw names but this absolute degradation in user experience is Mozilla's own fault in my opinion.

Machine:
Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.1/desktop, gcc-9.3.0, glibc-2.30-r8, 5.6.14-xanmod1-magma-v1.2 x86_64)
System uname: Linux-5.6.14-xanmod1-magma-v1.2-x86_64-Intel-R-_Core-TM-_i5-2400_CPU_@_3.10GHz-with-gentoo-2.6
Timestamp of repository gentoo: Sat, 23 May 2020 01:05:33 +0000
Head commit of repository gentoo: e8250d4582141165da1c1bcad088d539ebca73a2
Timestamp of repository poly-c: Mon, 25 May 2020 09:05:04 +0000
Head commit of repository poly-c: c31c5eb294e2053674590a4e9c20a7689364ad5e

Firefox version 68.8.0 & version 76.0.1 config:
USE flags:
bindist custom-cflags custom-optimization dbus gmp-autoupdate pulseaudio screenshot startup-notification system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-sqlite system-webp wifi -clang -debug -eme-free -geckodriver -hardened -hwaccel -jack -lto -pgo -selinux -test -wayland
CFLAGS & CXXFLAGS flags:
-march=native -O2 -fomit-frame-pointer -falign-functions=32 -fcommon -pipe


Waterfox version 2020.05 config:
USE flags:
custom-cflags custom-optimization dbus gmp-autoupdate hardened pulseaudio startup-notification system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-sqlite -debug -eme-free -hwaccel -jack -neon -nsplugin -pgo -selinux -test -wifi
CFLAGS & CXXFLAGS flags:
-march=native -O2 -falign-functions=32 -fcommon -pipe
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-05-25 19:03:45 UTC
Can you reproduce this with an upstream binary? Or firefox-bin, which is taken directly from Mozilla AFAIK?

It seems unlikely this is Gentoo specific -- which would mean the best people to help are Mozilla.
Comment 3 Maciej Barć gentoo-dev 2020-05-25 19:29:10 UTC
(In reply to Sam James (sec padawan) from comment #2)
> Can you reproduce this with an upstream binary? Or firefox-bin, which is
> taken directly from Mozilla AFAIK?

Binary package works on my system. Damn.
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2020-05-25 21:03:29 UTC
Please provide detailed steps how to reproduce. Likely on a website which can be used without login. Please create a screencast demonstrating the problem, too. Also, use firefox's safe-mode just in case...
Comment 5 Jory A. Pratt gentoo-dev 2020-05-26 13:42:21 UTC
enable hwaccel and provide your emerge --info. cflags
Comment 6 Michał Dec 2020-05-27 10:27:30 UTC
Created attachment 642004 [details]
Output of $(emerge --info)

www-client/firefox-68.8.0 emerged with the following USE flags:
bindist cpu_flags_x86_avx2 custom-cflags custom-optimization dbus geckodriver gmp-autoupdate hwaccel l10n_pl l10n_zh-CN pulseaudio screenshot system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-sqlite system-webp wayland

emerge --info attached
Comment 7 Michał Dec 2020-05-27 11:06:48 UTC
I have re-emerged www-client/firefox-68.8.0 with the following USE flags disabled:
custom-cflags custom-optimization

The problem still persists.

Also, my global CFLAGS are "-O2 -pipe -march=znver1 -ggdb" and they otherwise affect Firefox.

So, it's not the CFLAGS that are causing this.
Comment 8 Michał Dec 2020-05-27 12:50:13 UTC
The problem persists in www-client/firefox-bin-76.0.1 with USE:
ffmpeg l10n_pl l10n_zh-CN pulseaudio wayland
Comment 9 Michał Dec 2020-05-27 13:02:51 UTC
Created attachment 642082 [details]
Output of firefox-wayland when getting NPC location of WoW NPC from wowhead.com

I have run both firefox-bin-wayland and firefox-wayland in CLI. The binary version returned nothing of use, but here's an output from the non-binary Firefox. It strongly indicates errors with the JavaScript backend.
Comment 10 Michał Dec 2020-05-27 13:36:11 UTC
The problem persists after the following actions were taken:
- recompiled dev-lang/spidermonkey-60.5.2_p0-r4 without USE flags custom-cflags and custom-optimization
- removed /var/lib/flatpak
- removed disfunctional overlay flatpak-overlay
Comment 11 Michał Dec 2020-05-27 13:37:51 UTC
Also dumped dconf settings to confirm there are no references to flatpak there - there aren't any. Nice hardcode.
Comment 12 Michał Dec 2020-05-30 10:07:57 UTC
After recompiling everything and rebooting, dconf is looking for its configs in yet another crazy directory, this time somewhere in /usr/local. I think this is a problem with dconf so that's a red herring, sorry about that.