Tiny mouse cursor in firefox snap

Bug #1970663 reported by Chris
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mozilla Firefox
Fix Released
Unknown
firefox (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Since a few day I've updated to Ubuntu Mate 22.04 with the firefox snap. Since then I've been having this strange bug. I have a 4k screen which I'm running at a 2180p resolution with scaling on HiDPI. This runs just fine except for in firefox. In the new firefox snap I get a really tiny mouse cursor. I also checked other snap, it is not the case there.

Regards,
Chris
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: MATE
DistroRelease: Ubuntu 22.04
InstallationDate: Installed on 2022-02-02 (83 days ago)
InstallationMedia: Ubuntu-MATE 21.10 "Impish Indri" - Release amd64 (20211012)
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
Package: ubuntu-mate-artwork
ProcVersionSignature: Ubuntu 5.15.0-27.28-generic 5.15.30
Snap: firefox 99.0.1-1 (stable)
Snap.Changes: no changes found
Tags: jammy
Uname: Linux 5.15.0-27-generic x86_64
UpgradeStatus: Upgraded to jammy on 2022-04-19 (7 days ago)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: MATE
DistroRelease: Ubuntu 22.04
InstallationDate: Installed on 2022-02-02 (83 days ago)
InstallationMedia: Ubuntu-MATE 21.10 "Impish Indri" - Release amd64 (20211012)
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
Package: ubuntu-mate-artwork
ProcVersionSignature: Ubuntu 5.15.0-27.28-generic 5.15.30
Snap: firefox 99.0.1-1 (stable)
Snap.Changes: no changes found
Tags: jammy
Uname: Linux 5.15.0-27-generic x86_64
UpgradeStatus: Upgraded to jammy on 2022-04-19 (7 days ago)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True

Revision history for this message
In , Emilio (emiliocobos) wrote :
Revision history for this message
In , Headlesscow (headlesscow) wrote :

Created attachment 9256474
about:support from the snap version with the tiny cursor

Revision history for this message
In , Headlesscow (headlesscow) wrote :

Created attachment 9256475
about:support from the deb version with functional cursor

Revision history for this message
In , Emilio (emiliocobos) wrote :

I tried to repro this, but I couldn't (on Fedora though).

Revision history for this message
Norbert (nrbrtx) wrote :

please run

apport-collect 1970663

tags: added: jammy
removed: firefox hidpi snap
tags: added: hidpi snap
Revision history for this message
Chris (cmiddeljans) wrote : Dependencies.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Chris (cmiddeljans) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Chris (cmiddeljans) wrote : ProcEnviron.txt

apport information

Revision history for this message
Chris (cmiddeljans) wrote : Snap.Connections.txt

apport information

Revision history for this message
Chris (cmiddeljans) wrote : Snap.Info.core20.txt

apport information

Revision history for this message
Chris (cmiddeljans) wrote : Snap.Info.firefox.txt

apport information

Revision history for this message
Chris (cmiddeljans) wrote : Snap.Info.gnome-3-38-2004.txt

apport information

Revision history for this message
Chris (cmiddeljans) wrote : Snap.Info.gtk-common-themes.txt

apport information

description: updated
Revision history for this message
Chris (cmiddeljans) wrote : Dependencies.txt

apport information

Revision history for this message
Chris (cmiddeljans) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Chris (cmiddeljans) wrote : ProcEnviron.txt

apport information

Revision history for this message
Chris (cmiddeljans) wrote : Snap.Connections.txt

apport information

Revision history for this message
Chris (cmiddeljans) wrote : Snap.Info.core20.txt

apport information

Revision history for this message
Chris (cmiddeljans) wrote : Snap.Info.firefox.txt

apport information

Revision history for this message
Chris (cmiddeljans) wrote : Snap.Info.gnome-3-38-2004.txt

apport information

Revision history for this message
Chris (cmiddeljans) wrote : Snap.Info.gtk-common-themes.txt

apport information

Changed in firefox (Ubuntu):
status: New → Invalid
Revision history for this message
Eric Buist (buisteric) wrote :

Hi, this is a major show stopper for me. I cannot use Ubuntu 22.04 at all because of that. Even if I downgrade to 21.10, I will have to stay with that version forever, unless there is a plan to fix that issue in an upcoming version of Ubuntu. The mouse pointer in Firefox is too tiny and I always, constantly, loose track of it. I cannot accept the idea of lowering the whole screen resolution for that single application and it is too time consuming and frustrating to bypass the Ubuntu's packaging system to manually install Firefox from somewhere else. It's been years and years I'm literally fighting to be able to use my LCD screen at a native resolution and I'm so pissed off if I finally have to give up that I am more and more eady to stop using my computer. People can argue this has no importance, but I was told, since two years and more, that NOTHING I do or enjoy has importance. I need a solution, otherwise I cannot use Ubuntu anymore. I will have to switch back to Windows for the time being, but I really dislike that.

Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

Thank you for taking the time to report this bug and help make Ubuntu better. Firefox is provided by a snap published by Mozilla, and they may not be aware of this issue. Please contact them via https://support.mozilla.org/kb/file-bug-report-or-feature-request-mozilla and link the bug report here so it can be further tracked, then re-mark the bug as new. Thank you!

Changed in firefox (Ubuntu):
status: Invalid → Incomplete
Revision history for this message
Olivier Tilloy (osomon) wrote :

There's already an upstream bug report, so the issue is being tracked there: https://bugzilla.mozilla.org/show_bug.cgi?id=1746759

Changed in firefox (Ubuntu):
status: Incomplete → New
Changed in firefox:
status: Unknown → Confirmed
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

Removed the Ubuntu Mate items since it has nothing to do with those.

no longer affects: ubuntu-mate-artwork (Ubuntu)
affects: ubuntu-mate → ubuntu-mate-meta (Ubuntu)
no longer affects: ubuntu-mate-meta (Ubuntu)
Revision history for this message
In , Lissyx+mozillians (lissyx+mozillians) wrote :

Do you still hit the issue ?

Revision history for this message
In , Release-mgmt-account-bot (release-mgmt-account-bot) wrote :

Redirect a needinfo that is pending on an inactive user to the triage owner.
:stransky, since the bug has recent activity, could you have a look please?

For more information, please visit [auto_nag documentation](https://wiki.mozilla.org/Release_Management/autonag#inactive_ni_pending.py).

Revision history for this message
In , Headlesscow (headlesscow) wrote :

I upgraded to 22.04 which forced me back onto the Firefox snap (I had been running the deb version instead as a workaround), but I'm no longer seeing this issue with it.

Revision history for this message
In , Lissyx+mozillians (lissyx+mozillians) wrote :

(In reply to headlesscow from comment #6)
> I upgraded to 22.04 which forced me back onto the Firefox snap (I had been running the deb version instead as a workaround), but I'm no longer seeing this issue with it.

Thanks, then we should assume it was fixed either by a fix on our side or in the rest of Snap / Wayland.

Revision history for this message
In , Lissyx+mozillians (lissyx+mozillians) wrote :

Anyone who might be still experiencing this, please reopen and share as much as infos as possible.

Changed in firefox:
status: Confirmed → Fix Released
Olivier Tilloy (osomon)
Changed in firefox (Ubuntu):
status: New → Fix Released
Revision history for this message
In , wmccarty (wdmlist) wrote :

(In reply to Alexandre LISSY :gerard-majax from comment #8)
> Anyone who might be still experiencing this, please reopen and share as much as infos as possible.

Hey Alexandre,

I am on the development branch Kubuntu 22.10 and I am experiencing this issue, this is on my HTPC using a 4K TV. My partner rebooted the computer mid upgrade from 20.04 -> 22.04 so I had to choose to either waste time by reinstalling and resetting all settings I made from memory, or reinstall the OS to a newer version with 22.10 a little more than a month away. Chromium seems to retain the correct cursor size where Firefox does not. I have tried a few different options however nothing was working.

Would it help to have a cursor override size something like widget.non-native-theme.scrollbar.size.override does?

Revision history for this message
wmccarty (wdmlist) wrote :

computer mid upgrade from 20.04 -> 22.04 so I had to choose to either waste time by reinstalling and resetting all settings I made from memory, or reinstall the OS to a newer version with 22.10 a little more than a month away. Chromium seems to retain the correct cursor size where Firefox does not. I have tried a few different options however nothing was working.

Would it help to have a cursor override size something like widget.non-native-theme.scrollbar.size.override does?

Please let me know what to provide.

Revision history for this message
In , Sahab-yazdani+github (sahab-yazdani+github) wrote :

I just updated from Ubuntu 20.04 LTS to Ubuntu 22.04 LTS and part of the upgrade said that Firefox would be moving to Snap as opposed to apt (i guess?) and I am now experiencing this cursor "too small issue".

I did some googling online and nothing really relevant popped up, but I can confirm a couple of details that seemed relevant:

* Firefox version 104.0.2 (which I believe is the latest?)
* 4K display with scaling set to 200% in Gnome
* nVidia drivers up to date (515.65.01)
* doesn't matter if the compositor (i think that's what you call it?) is Wayland or x11
* according to Gnome Tweaks, cursor theme is "Yaru". I tried a couple of the other ones and didn't see any changes. In particular I tried DMZ-White and DMZ-Black since i read on some reddit post that it might help.

I've never filed a bug like this before, so not sure if there is any other information that is relevant, but if you let me know what you need to triage, I am happy to oblige.

Revision history for this message
In , Ivan Sagalaev (isagalaev) wrote :

Seeing the same with 105.0 with the rest of setup exactly like sahab.yazdani.

Interestingly, my other laptop with an Intel video and fractional scaling doesn't have the problem.

Revision history for this message
In , Ivan Sagalaev (isagalaev) wrote :

Created attachment 9296037
Old-style tiny cursor screenshot

In fact, it seems to use the old X pre-modern desktop era cursors.

Changed in firefox:
status: Fix Released → Confirmed
Olivier Tilloy (osomon)
Changed in firefox (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
In , Ivan Sagalaev (isagalaev) wrote :

Another interesting observation. The cursor theme switches back to the correct system one while dragging the Firefox window. But drops to the tiny defaults as soon as you let go of dragging and move the cursor.

Revision history for this message
In , Lite (lite1979) wrote :

I'm chiming in to say that this is a bug on my setup as well.

I just upgraded from Ubuntu 20.04 LTS to 22.04.1 LTS, and the mouse cursor is hard to see because it's so tiny. I have a 27" 4k LG monitor connected with DP to an Nvidia graphics card.

I think Firefox sees the resolution, but not necessarily the scaling in Gnome. In my case, it's also 200% (fractional scaling is not enabled on this setup).

Not sure if it's exclusive to nvidia graphics either, but none of the configuration that was available in 20.04 is available now in 22.04, as far as I can tell. It's only been 30 minutes, though. I'm sure I'll get more information as I use 22.04 more...

Revision history for this message
In , H-reg (h-reg) wrote :

I have the same issue. Running Ubuntu 22.04.1 under Wayland and Firefox 105.0.1.

Cursor is very tiny, logs shows the following:

(firefox:11410): Gdk-WARNING **: 09:31:43.276: ../src/gdk/wayland/gdkcursor-wayland.c:242 cursor image size (9x16) not an integermultiple of scale (2)
Gdk-Message: 09:31:43.408: Unable to load hand2 from the cursor theme
Gdk-Message: 09:31:43.531: Unable to load hand2 from the cursor theme
Gdk-Message: 09:31:43.826: Unable to load hand2 from the cursor theme
Gdk-Message: 09:31:43.875: Unable to load hand2 from the cursor theme

Revision history for this message
In , Foster-goleta (foster-goleta) wrote :

sudo snap connect firefox:icon-themes gtk-common-themes:icon-themes
I saw this on Reddit and it fixed the cursor for me. Ubuntu 22.04 with Firefox snap.
Also https://askubuntu.com/questions/1432707/how-can-i-get-back-the-default-cursor-over-links-in-ubuntu-22-04-with-firefox-sn

Revision history for this message
In , Ivan Sagalaev (isagalaev) wrote :

> sudo snap connect firefox:icon-themes gtk-common-themes:icon-themes

Confirming, worked for me as well.

Revision history for this message
In , Lissyx+mozillians (lissyx+mozillians) wrote :

(In reply to foster.goleta from comment #16)
> sudo snap connect firefox:icon-themes gtk-common-themes:icon-themes
> I saw this on Reddit and it fixed the cursor for me. Ubuntu 22.04 with Firefox snap.
> Also https://askubuntu.com/questions/1432707/how-can-i-get-back-the-default-cursor-over-links-in-ubuntu-22-04-with-firefox-sn

Thanks!

Olivier, is this something that should be done automatically?

Revision history for this message
In , Oriol-bugzilla (oriol-bugzilla) wrote :

Nice fix! Effectively, no icon-themes in https://searchfox.org/mozilla-central/rev/32fd7c9b165d9202f441cdc7f68aca11065a1d37/taskcluster/docker/firefox-snap/firefox.snapcraft.yaml.in

Chromium has this: https://source.chromium.org/chromium/chromium/src/+/main:chrome/installer/linux/snap/snapcraft.yaml.in;drc=2f18960e28acf9f82cf04ab39950de3f5332ca6f;l=55-58

```
  icon-themes:
    interface: content
    target: $SNAP/data-dir/icons
    default-provider: gtk-common-themes
```

CC Olivier who has done various changes in firefox.snapcraft.yaml.in (edit: LOL, CC and ni already done in the previous comment)

Revision history for this message
In , Lissyx+mozillians (lissyx+mozillians) wrote :

(In reply to Oriol Brufau [:Oriol] from comment #19)
> Nice fix! Effectively, no icon-themes in https://searchfox.org/mozilla-central/rev/32fd7c9b165d9202f441cdc7f68aca11065a1d37/taskcluster/docker/firefox-snap/firefox.snapcraft.yaml.in

That's not the place you should be looking at, rather https://github.com/canonical/firefox-snap/blob/stable/snapcraft.yaml but there's no `icon-themes` there as well. It seems we also lack gtk themes as well as sound themes? Let's see what Olivier says, but if we just miss those it will be an easy fix. Well done foster.goleta :)

Revision history for this message
In , Olivier Tilloy (osomon) wrote :

These `icon-themes` and `sound-themes` sections are automatically generated by the use of the `gnome-3-38` extension. See the installed `/snap/firefox/current/meta/snap.yaml`.

Revision history for this message
In , Lissyx+mozillians (lissyx+mozillians) wrote :

(In reply to Olivier Tilloy from comment #21)
> These `icon-themes` and `sound-themes` sections are automatically generated by the use of the `gnome-3-38` extension. See the installed `/snap/firefox/current/meta/snap.yaml`.

As per discussions on IRC, Olivier has been able to reproduce the issue, so while the Firefox Snap package does not needs those statements, there is a bug somewhere making auto-connect not done.

Revision history for this message
In , H-reg (h-reg) wrote :

I can conform that running the following code, fixed the issue with the icon sizes.
> sudo snap connect firefox:icon-themes gtk-common-themes:icon-themes

But now I have a different issue where the icon is offset by 10 pixels, here is a [gif animation](https://imgur.com/a/JKIZRko) that shows the problerm.

Revision history for this message
In , Lissyx+mozillians (lissyx+mozillians) wrote :

(In reply to Victor from comment #23)
> I can conform that running the following code, fixed the issue with the icon sizes.
> > sudo snap connect firefox:icon-themes gtk-common-themes:icon-themes
>
> But now I have a different issue where the icon is offset by 10 pixels, here is a [gif animation](https://imgur.com/a/JKIZRko) that shows the problerm.

Is this with xwayland (firefox snap stable) ? Does it goes away with forcing `MOZ_ENABLE_WAYLAND=1` ? Either way, please file a new issue for that

Revision history for this message
In , Olivier Tilloy (osomon) wrote :

(In reply to Alexandre LISSY :gerard-majax from comment #22)
> As per discussions on IRC, Olivier has been able to reproduce the issue, so while the Firefox Snap package does not needs those statements, there is a bug somewhere making auto-connect not done.

And that bug was fixed in the store, auto-connection for `icon-themes` and `sound-themes` should be restored now.

Revision history for this message
In , H-reg (h-reg) wrote :

(In reply to Alexandre LISSY :gerard-majax from comment #24)
> (In reply to Victor from comment #23)
> > I can conform that running the following code, fixed the issue with the icon sizes.
> > > sudo snap connect firefox:icon-themes gtk-common-themes:icon-themes
> >
> > But now I have a different issue where the icon is offset by 10 pixels, here is a [gif animation](https://imgur.com/a/JKIZRko) that shows the problerm.
>
> Is this with xwayland (firefox snap stable) ? Does it goes away with forcing `MOZ_ENABLE_WAYLAND=1` ? Either way, please file a new issue for that

This is happening with Ubuntu 22.04.1 under Wayland , firefox snap stable, with MOZ_ENABLED_WAYLAND=1, but seems like I have found a way around it, my display is 4k and using resolution 3840x2400 with scale of 300% would trigger this issue, I have change resolution to 2560x1600 with scale 200% and the cursor position is now correct.

Revision history for this message
In , Lissyx+mozillians (lissyx+mozillians) wrote :

(In reply to Victor from comment #26)
> (In reply to Alexandre LISSY :gerard-majax from comment #24)
> > (In reply to Victor from comment #23)
> > > I can conform that running the following code, fixed the issue with the icon sizes.
> > > > sudo snap connect firefox:icon-themes gtk-common-themes:icon-themes
> > >
> > > But now I have a different issue where the icon is offset by 10 pixels, here is a [gif animation](https://imgur.com/a/JKIZRko) that shows the problerm.
> >
> > Is this with xwayland (firefox snap stable) ? Does it goes away with forcing `MOZ_ENABLE_WAYLAND=1` ? Either way, please file a new issue for that
>
> This is happening with Ubuntu 22.04.1 under Wayland , firefox snap stable, with MOZ_ENABLED_WAYLAND=1, but seems like I have found a way around it, my display is 4k and using resolution 3840x2400 with scale of 300% would trigger this issue, I have change resolution to 2560x1600 with scale 200% and the cursor position is now correct.

Victor, please try and repro that under non snap environment, and file a different bug, but I worry this is not unexpected and related to bug 1766862

Revision history for this message
In , Lissyx+mozillians (lissyx+mozillians) wrote :

(In reply to Olivier Tilloy from comment #25)
> (In reply to Alexandre LISSY :gerard-majax from comment #22)
> > As per discussions on IRC, Olivier has been able to reproduce the issue, so while the Firefox Snap package does not needs those statements, there is a bug somewhere making auto-connect not done.
>
> And that bug was fixed in the store, auto-connection for `icon-themes` and `sound-themes` should be restored now.

Thanks, we can consider this is fixed now. Anyone experiencing again this should verify `snap connections firefox` for those two items and ping us if auto connection fails.

Changed in firefox:
status: Confirmed → Fix Released
Olivier Tilloy (osomon)
Changed in firefox (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
In , Lissyx+mozillians (lissyx+mozillians) wrote :

*** Bug 1794026 has been marked as a duplicate of this bug. ***

Revision history for this message
Lite (lite1979) wrote :

Posting again to say "It's baaaaaaaack." Cursor went tiny in the middle of writing an email in gmail.

Hopefully just a quirk of applying a recent update. Will reboot and report.

Revision history for this message
Lite (lite1979) wrote :

Reboot has the cursor back at expected size. :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.