Okay. I dug a bit deeper and this issue is caused by the AppArmor
profile shipped with Firefox that I have enabled. The syslog contains
following entries from AppArmor when running Firefox e10s enabled and
the firefox profile in enforce mode:

audit: type=1400 audit(1474776774.198:579): apparmor="DENIED"
operation="mknod" profile="/usr/lib/firefox/firefox{,*[^s][^h]}"
name="/dev/shm/org.chromium.h4apSY" pid=5022 comm=57656220436F6E74656E74
requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000

audit: type=1400 audit(1474776774.222:580): apparmor="DENIED"
operation="mknod" profile="/usr/lib/firefox/firefox{,*[^s][^h]}"
name="/dev/shm/org.chromium.VpQMbW" pid=5022 comm=57656220436F6E74656E74
requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000

So Firefox tries to access /dev/shm but the default AppArmor profile
denies it. So the profile needs to be changed to make it compatible with
e10s.

** Summary changed:

- Web pages not rendering with e10s enabled
+ Web pages not rendering with e10s enabled and AppArmor profile in enforce mode

** Description changed:

  STR:
- 1. Open Firefox 49 with clean profile
+ 0. Enable enforce mode for the Firefox app-armor profile: sudo aa-enforce 
usr.bin.firefox
+ 1. Open Firefox 49 with clean profile (or force-enable e10s as per 
https://wiki.mozilla.org/Electrolysis#Force_Enable and restart Firefox)
  2. Go to any site
  
  What happens: The site loads but the content is rendered blank. The page
  is loaded properly since I can hover over (invisible) links and see the
  cursor change & the address to be shown in the bottom of the window.
  
  What should happen: The site is rendered properly.
  
- This is related to e10s and how the Ubuntu builds are configured / built:
- * If e10s is disabled, everything works fine.
- * If I download Firefox 49 release build built by Mozilla, pages are rendered 
correctly with both e10s and non-e10s windows.
- 
- If I execute firefox from the command line, I see the following output 
repeated constantly:
- [GFX1]: Failed 2 buffer db=0 dw=0 for 1356, 0, 64, 673
- [GFX1]: Failed 2 buffer db=0 dw=0 for 0, 0, 64, 500
- ... continues forever with different coordinates
+ This is related to e10s and the default AppArmor profile shipped with
+ firefox.
  
  See the attached screenshot for how the first-run page looks like with a
- clean profile.
+ clean profile, e10s and AppArmor enabled.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: firefox 49.0+build4-0ubuntu0.16.04.1
  ProcVersionSignature: Ubuntu 4.4.0-38.57-generic 4.4.19
  Uname: Linux 4.4.0-38-generic x86_64
  AddonCompatCheckDisabled: False
  ApportVersion: 2.20.1-0ubuntu2.1
  Architecture: amd64
- AudioDevicesInUse:
-  USER        PID ACCESS COMMAND
-  /dev/snd/controlC0:  sami       2154 F.... pulseaudio
  BuildID: 20160920074044
  Channel: Unavailable
  CurrentDesktop: Unity
  Date: Sat Sep 24 07:38:09 2016
  DefaultProfileExtensions: extensions.sqlite corrupt or missing
  DefaultProfileIncompatibleExtensions: Unavailable (corrupt or non-existant 
compatibility.ini or extensions.sqlite)
  DefaultProfileLocales: extensions.sqlite corrupt or missing
  DefaultProfilePlugins: Shockwave Flash - 
/usr/lib/adobe-flashplugin/libflashplayer.so (adobe-flashplugin)
  DefaultProfilePrefSources: prefs.js
  DefaultProfileThemes: extensions.sqlite corrupt or missing
  ForcedLayersAccel: False
- IfupdownConfig:
-  # interfaces(5) file used by ifup(8) and ifdown(8)
-  auto lo
-  iface lo inet loopback
- IpRoute:
-  default via 192.168.0.1 dev wlan0  proto static  metric 600 
-  169.254.0.0/16 dev wlan0  scope link  metric 1000 
-  192.168.0.0/24 dev wlan0  proto kernel  scope link  src 192.168.0.11  metric 
600
- MostRecentCrashID: bp-f39a0daf-a559-4d71-813b-3403e2151223
- Profile1Extensions: extensions.sqlite corrupt or missing
- Profile1IncompatibleExtensions: Unavailable (corrupt or non-existant 
compatibility.ini or extensions.sqlite)
- Profile1Locales: extensions.sqlite corrupt or missing
- Profile1PrefSources: prefs.js
- Profile1Themes: extensions.sqlite corrupt or missing
- Profile2Extensions: extensions.sqlite corrupt or missing
- Profile2IncompatibleExtensions: Unavailable (corrupt or non-existant 
compatibility.ini or extensions.sqlite)
- Profile2Locales: extensions.sqlite corrupt or missing
- Profile2Plugins: Shockwave Flash - 
/usr/lib/adobe-flashplugin/libflashplayer.so (adobe-flashplugin)
- Profile2PrefSources: prefs.js
- Profile2Themes: extensions.sqlite corrupt or missing
- Profiles:
-  Profile0 (Default) - LastVersion=49.0/20160920074044 (In use)
-  Profile1 - LastVersion=48.0/20160728203720 (Out of date)
-  Profile2 - LastVersion=44.0a1/20151027030239 (Out of date)
  RunningIncompatibleAddons: False
  SourcePackage: firefox
- SubmittedCrashIDs:
-  bp-f39a0daf-a559-4d71-813b-3403e2151223
-  bp-fb9e28fa-1e38-4c9b-9b18-beeea2151222
-  bp-0d0ac494-189a-42b2-addf-852f62151119
-  bp-6033c3ae-3d54-425f-8e39-f7ad72151113
-  bp-12fc418e-bdf6-42c1-a648-e102d2151107
- UpgradeStatus: No upgrade log present (probably fresh install)
- dmi.bios.date: 11/19/2012
- dmi.bios.vendor: American Megatrends Inc.
- dmi.bios.version: K56CM.209
- dmi.board.asset.tag: ATN12345678901234567
- dmi.board.name: K56CM
- dmi.board.vendor: ASUSTeK COMPUTER INC.
- dmi.board.version: 1.0
- dmi.chassis.asset.tag: No Asset Tag
- dmi.chassis.type: 10
- dmi.chassis.vendor: ASUSTeK COMPUTER INC.
- dmi.chassis.version: 1.0
- dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvrK56CM.209:bd11/19/2012:svnASUSTeKCOMPUTERINC.:pnK56CM:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnK56CM:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:
- dmi.product.name: K56CM
- dmi.product.version: 1.0
- dmi.sys.vendor: ASUSTeK COMPUTER INC.

-- 
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/1627239

Title:
  Web pages not rendering with e10s enabled and AppArmor profile in
  enforce mode

Status in firefox package in Ubuntu:
  New

Bug description:
  STR:
  0. Enable enforce mode for the Firefox app-armor profile: sudo aa-enforce 
usr.bin.firefox
  1. Open Firefox 49 with clean profile (or force-enable e10s as per 
https://wiki.mozilla.org/Electrolysis#Force_Enable and restart Firefox)
  2. Go to any site

  What happens: The site loads but the content is rendered blank. The
  page is loaded properly since I can hover over (invisible) links and
  see the cursor change & the address to be shown in the bottom of the
  window.

  What should happen: The site is rendered properly.

  This is related to e10s and the default AppArmor profile shipped with
  firefox.

  See the attached screenshot for how the first-run page looks like with
  a clean profile, e10s and AppArmor enabled.

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: firefox 49.0+build4-0ubuntu0.16.04.1
  ProcVersionSignature: Ubuntu 4.4.0-38.57-generic 4.4.19
  Uname: Linux 4.4.0-38-generic x86_64
  AddonCompatCheckDisabled: False
  ApportVersion: 2.20.1-0ubuntu2.1
  Architecture: amd64
  BuildID: 20160920074044
  Channel: Unavailable
  CurrentDesktop: Unity
  Date: Sat Sep 24 07:38:09 2016
  DefaultProfileExtensions: extensions.sqlite corrupt or missing
  DefaultProfileIncompatibleExtensions: Unavailable (corrupt or non-existant 
compatibility.ini or extensions.sqlite)
  DefaultProfileLocales: extensions.sqlite corrupt or missing
  DefaultProfilePlugins: Shockwave Flash - 
/usr/lib/adobe-flashplugin/libflashplayer.so (adobe-flashplugin)
  DefaultProfilePrefSources: prefs.js
  DefaultProfileThemes: extensions.sqlite corrupt or missing
  ForcedLayersAccel: False
  RunningIncompatibleAddons: False
  SourcePackage: firefox

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1627239/+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