After struggling with this for several months I've found what I believe
is the source of this bug.  I had to go back and look at Firefox 44.0,
the last version to build without exhibiting the flashing.  I discovered
that a change between versions 44.0 and 45.0, Bug 1209812 - Add endian-
neutral variants to SurfaceFormat, was the culprit.

I believe error is in the below code changes to gfx/2d/Types.h:

  // The following values are endian-independent synonyms. The _UINT32 suffix
  // indicates that the name reflects the layout when viewed as a uint32_t
  // value.
#if MOZ_LITTLE_ENDIAN
  A8R8G8B8_UINT32 = B8G8R8A8,       // 0xAARRGGBB
  X8R8G8B8_UINT32 = B8G8R8X8        // 0x00RRGGBB
#elif MOZ_BIG_ENDIAN
  A8R8G8B8_UINT32 = A8R8G8B8,       // 0xAARRGGBB
  X8R8G8B8_UINT32 = X8R8G8B8        // 0x00RRGGBB
#else
# error "bad endianness"
#endif

As I understand from reading the endianness values that preceed this
code, the endian test should be reserved to be:

#if MOZ_BIG_ENDIAN
  A8R8G8B8_UINT32 = B8G8R8A8,       // 0xAARRGGBB
  X8R8G8B8_UINT32 = B8G8R8X8        // 0x00RRGGBB
#elif MOZ_LITTLE_ENDIAN
  A8R8G8B8_UINT32 = A8R8G8B8,       // 0xAARRGGBB
  X8R8G8B8_UINT32 = X8R8G8B8        // 0x00RRGGBB
#else
# error "bad endianness"
#endif

I've used this to patch Firefox which allows me to successfully build
both Firefox 46 and 47 that do not exhibit the graphics flashing.

** Attachment added: "patch-gfx-2d-Types.h"
   
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1562385/+attachment/4739563/+files/patch-gfx-2d-Types.h

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/1562385

Title:
  Crash Annotation GraphicsCriticalError: |[0][GFX1]: Unknown image
  format 0[GFX1]: Unknown image format 0 Crash Annotation
  GraphicsCriticalError: |[0][GFX1]: Unknown image format 0|[1][GFX1]:
  Unknown image format 0[GFX1]: Unknown image format 0

Status in firefox package in Ubuntu:
  Confirmed

Bug description:
  i have continue this error as loop when i open firefox from terminal
  and this hit the performances

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: firefox 45.0.1+build1-0ubuntu1
  Uname: Linux 4.5.0-cyrus-lb ppc64
  AddonCompatCheckDisabled: False
  ApportVersion: 2.20-0ubuntu3
  Architecture: powerpc
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC1:  amigaone   4535 F.... pulseaudio
  BuildID: 20160317093517
  Channel: Unavailable
  CurrentDesktop: MATE
  Date: Sat Mar 26 20:51:20 2016
  Extensions: extensions.sqlite corrupt or missing
  ForcedLayersAccel: False
  IncompatibleExtensions: Unavailable (corrupt or non-existant 
compatibility.ini or extensions.sqlite)
  InstallationDate: Installed on 2016-03-05 (21 days ago)
  InstallationMedia: Lubuntu 16.04 LTS "Xenial Xerus" - Alpha powerpc (20160302)
  IpRoute:
   default via 192.168.1.1 dev eth0 
   192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.102
  Locales: extensions.sqlite corrupt or missing
  Plugins:
   IcedTea-Web Plugin (using IcedTea-Web 1.6.2 (1.6.2-2ubuntu1)) - 
/usr/lib/jvm/java-8-openjdk-powerpc/jre/lib/ppc/IcedTeaPlugin.so 
(icedtea-8-plugin)
   Gnome Shell Integration - 
/usr/lib/mozilla/plugins/libgnome-shell-browser-plugin.so (gnome-shell)
  PrefSources: prefs.js
  ProcEnviron:
   LANGUAGE=en_GB:en
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_GB.UTF-8
   SHELL=/bin/bash
  Profiles: Profile0 (Default) - LastVersion=45.0.1/20160317093517 (In use)
  RelatedPackageVersions:
   icedtea-8-plugin 1.6.2-2ubuntu1
   gnome-shell      3.18.4-0ubuntu2
  RfKill:
   
  RunningIncompatibleAddons: False
  SourcePackage: firefox
  Themes: extensions.sqlite corrupt or missing
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1562385/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to