Firefox Snap Testing 2021-2022

Following my comment, something I just noticed is that if I start Thunderbird snap before opening Firefox snap, the cold start of Firefox is much lower.

Opening Thunderbird snap before Firefox snap.

  • Cold start Firefox 100 snap: 4sec aprox (5 observations)
  • Hot start Firefox 100 snap: 2sec aprox (5 observations)

For the gtk-common-themes upgrade bug, they’re asking for the /var/log/dist-upgrade/main.log file. Can someone who has this issue and didn’t change the snap channel upload theirs? @wizdq @doctor-rover @edurojas

1 Like

Hi @elcste

I did not have this issue, my gtk-common-themes are 0.1-79-ga83e90c tracking: latest/stable/ubuntu-22.04 so I think I don’t have the issue, I did a fresh install of Jammy

1 Like

Hi all,
Are snap still affected by those limitations Limitations in snapd - doc - snapcraft.io ?
It seems that I cannot use Firefox on Ubuntu 22.04 (snap version) on devices where user home directory is on an NFS share mounted with automounts :frowning:

Yes, that’s also something on our backlog of things we would like to see fixed before LTS upgrades are turned on

4 Likes

Thanks @seb128 that will be really great.
Happy to help if needed.

1 Like

there is local Latvia eID (electronic passport) system, with snaped Firefox it does not work
https://www.eparaksts.lv/lv/lejupielades
may be they don’t adopted 22.04 yet, but I switch to Mozilla .tar.gz version and it works fine

I think, that it is because some underlying tech in software, but I need to use this on daily basis and don’t want use Chrome or Windows

ieleja

4 Likes

Firefox snap performance test (after reading this )

  • Cold – Purge: 13507, 13051. Average: 13279 ms
  • Cold: 10337, 10166, 9924. Average: 10142 ms
  • Warm: 2436, 3571,3578,3546, 2517,3617,3596. Average: 3265 ms

Additional info:

  • Firefox snap 100.0.2 (64 bits)
  • Ubuntu 22.04 (fully updated), kernel 5.15.0-33
  • Hardware: Thinkpad T450s, core i5-5200U with integrated graphics (HD Graphics 5500) , 256 GB SSD, 12 GB RAM (ddr3 1600mhz)
6 Likes

Thanks for this, really helpful format :slight_smile: appreciated.

4 Likes

this was announced (missing support for electronic IDs due to missing “native messaging” support) in the release notes and will be fixed soon … there was just a status report about it yesterday, see the “Native Messaging” paragraph at:

https://ubuntu.com/blog/how-are-we-improving-firefox-snap-performance-part-1

3 Likes

What would be an appropriate way to measure startup performance on Kubuntu or anywhere else where the Application Startup Time Measure extension is not avaiable? Is using a stop watch sufficient?

as usual, snap has something built in for this already :wink:

snap run --trace-exec firefox

after you close the app, snap will print out the startup times of all the different exec calls it did and a summary of the total startup time …

5 Likes

Wow, that’s actually really useful, it should be popularised more.

1 Like

Agreed, I’ll add it to Part 2 of the blog :slight_smile:

1 Like

Ok, here is my setup:

  • Kubuntu 22.04 Wayland session (all updates installed)
  • Board: Gigabyte P35-DS3
  • Intel Core2Quad Q9550
  • 8 GB RAM
  • ASUS AMD Radeon R7 240
  • SSD: Crucial CT1000BX500SSD1

Test results with the default firefox snap:

Cold purge

Gtk-Message: 20:27:53.523: Failed to load module "window-decorations-gtk-module"
Gtk-Message: 20:27:53.527: Failed to load module "colorreload-gtk-module"
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
Slowest 10 exec calls during snap run:
  1.621s /snap/firefox/1377/gnome-platform/usr/lib/x86_64-linux-gnu/glib-2.0/gio-querymodules
  5.962s /snap/firefox/1377/snap/command-chain/desktop-launch
  5.574s /snap/firefox/1377/usr/lib/firefox/firefox
  11.535s /snap/firefox/1377/usr/lib/firefox/firefox
  1.837s /snap/firefox/1377/usr/lib/firefox/firefox
  12.298s /snap/firefox/1377/usr/lib/firefox/firefox
  1.441s /snap/firefox/1377/usr/lib/firefox/firefox
  1.486s /snap/firefox/1377/usr/lib/firefox/pingsender
  1.568s /snap/firefox/1377/usr/lib/firefox/pingsender
  29.768s /snap/firefox/1377/usr/lib/firefox/firefox
Total time: 54.049s

Cold

Gtk-Message: 20:30:18.366: Failed to load module "window-decorations-gtk-module"
Gtk-Message: 20:30:18.383: Failed to load module "colorreload-gtk-module"
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
Slowest 10 exec calls during snap run:
  0.319s /snap/snapd/15904/usr/lib/snapd/snap-confine
  1.141s /snap/firefox/1377/snap/command-chain/desktop-launch
  0.855s /usr/bin/dbus-send
  0.968s /usr/bin/xdg-settings
  6.194s /snap/firefox/1377/usr/lib/firefox/firefox
  4.530s /snap/firefox/1377/usr/lib/firefox/firefox
  11.356s /snap/firefox/1377/usr/lib/firefox/firefox
  4.607s /snap/firefox/1377/usr/lib/firefox/firefox
  4.462s /snap/firefox/1377/usr/lib/firefox/firefox
  14.690s /snap/firefox/1377/usr/lib/firefox/firefox
Total time: 37.695s

Warm

Gtk-Message: 20:31:58.609: Failed to load module "window-decorations-gtk-module"
Gtk-Message: 20:31:58.613: Failed to load module "colorreload-gtk-module"
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.

###!!! [Parent][PImageBridgeParent] Error: RunMessage(msgname=PImageBridge::Msg_WillClose) Channel closing: too late to send/recv, messages will be lost

Slowest 10 exec calls during snap run:
  0.729s /snap/firefox/1377/snap/command-chain/desktop-launch
  3.751s /snap/firefox/1377/usr/lib/firefox/firefox
  4.706s /snap/firefox/1377/usr/lib/firefox/firefox
  7.660s /snap/firefox/1377/usr/lib/firefox/firefox
  4.619s /snap/firefox/1377/usr/lib/firefox/firefox
  4.542s /snap/firefox/1377/usr/lib/firefox/firefox
  0.356s /snap/firefox/1377/usr/lib/firefox/pingsender
  0.402s /snap/firefox/1377/usr/lib/firefox/pingsender
  0.428s /snap/firefox/1377/usr/lib/firefox/pingsender
  10.042s /snap/firefox/1377/usr/lib/firefox/firefox
Total time: 12.897s

Test results after running 'sudo snap refresh firefox --channel=latest/stable/jammy-release’

Cold purge

Gtk-Message: 20:39:34.453: Failed to load module "window-decorations-gtk-module"
Gtk-Message: 20:39:34.459: Failed to load module "colorreload-gtk-module"
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
Slowest 10 exec calls during snap run:
  0.778s /snap/firefox/1232/gnome-platform/usr/lib/x86_64-linux-gnu/glib-2.0/gio-querymodules
  3.791s /snap/firefox/1232/snap/command-chain/desktop-launch
  6.144s /snap/firefox/1232/usr/lib/firefox/firefox
  8.759s /snap/firefox/1232/usr/lib/firefox/firefox
  10.553s /snap/firefox/1232/usr/lib/firefox/firefox
  0.695s /snap/firefox/1232/usr/lib/firefox/firefox
  0.624s /snap/firefox/1232/usr/lib/firefox/firefox
  1.762s /snap/firefox/1232/usr/lib/firefox/pingsender
  1.857s /snap/firefox/1232/usr/lib/firefox/pingsender
  1.719s /snap/firefox/1232/usr/lib/firefox/pingsender
Total time: 48.261s

Cold

Gtk-Message: 20:40:49.000: Failed to load module "window-decorations-gtk-module"
Gtk-Message: 20:40:49.051: Failed to load module "colorreload-gtk-module"
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
Slowest 10 exec calls during snap run:
  0.318s /snap/snapd/15904/usr/lib/snapd/snap-confine
  0.302s /usr/bin/snapctl
  0.951s /snap/firefox/1232/snap/command-chain/desktop-launch
  0.596s /usr/bin/cut
  0.732s /usr/bin/xdg-settings
  8.317s /snap/firefox/1232/usr/lib/firefox/firefox
  12.292s /snap/firefox/1232/usr/lib/firefox/firefox
  10.252s /snap/firefox/1232/usr/lib/firefox/firefox
  10.058s /snap/firefox/1232/usr/lib/firefox/firefox
  10.355s /snap/firefox/1232/usr/lib/firefox/firefox
Total time: 38.925s

Warm

Gtk-Message: 20:41:47.019: Failed to load module "window-decorations-gtk-module"
Gtk-Message: 20:41:47.023: Failed to load module "colorreload-gtk-module"
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.

###!!! [Parent][PImageBridgeParent] Error: RunMessage(msgname=PImageBridge::Msg_WillClose) Channel closing: too late to send/recv, messages will be lost

Slowest 10 exec calls during snap run:
  0.448s /snap/firefox/1232/snap/command-chain/desktop-launch
  0.130s /usr/bin/xdg-settings
  2.536s /snap/firefox/1232/usr/lib/firefox/firefox
  6.014s /snap/firefox/1232/usr/lib/firefox/firefox
  4.796s /snap/firefox/1232/usr/lib/firefox/firefox
  4.622s /snap/firefox/1232/usr/lib/firefox/firefox
  4.577s /snap/firefox/1232/usr/lib/firefox/firefox
  0.371s /snap/firefox/1232/usr/lib/firefox/pingsender
  0.438s /snap/firefox/1232/usr/lib/firefox/pingsender
  0.396s /snap/firefox/1232/usr/lib/firefox/pingsender
Total time: 11.135s
1 Like

How’s it going gang. I just wanted to update this thread to share our latest post on the Firefox snap performance process. Keep sharing your issues and benchmarks as we work to improve the user experience :slight_smile:

https://ubuntu.com/blog/how-are-we-improving-firefox-snap-performance-part-2

6 Likes

There’s any progress about the firefox.tmp in ~/Downloads ??

It’s really annoying

That’s fixed in the latest version as far as I know

1 Like

Fixed in version 101.0 as per Mozilla bug report:
https://bugzilla.mozilla.org/show_bug.cgi?id=1733750

Is anyone working on making the snap firefox work if you use NFS or SSHFS home directories? [ It doesn’t start at all in this case, see https://bugs.launchpad.net/snapd/+bug/1973321 and others ].

If not, the NFS how-tos on ubuntu documentation should probably warn people that trying to do so will stop Firefox from working on 22.04. I am happy to do this if this is helpful, but I am not sure who to talk to about modifying such docs.

3 Likes