I added some traces to understand where the problem was coming from, and I found this: when the problem occurs, the scrollToMousePos() method of the magnifier can be called while the _xDelayed and _yDelayed variables are undefined. This is the case when you enable the magnifier in push mode with focus and caret tracking disabled; calling the startTrackingMouse() method invokes this method very early, even though these variables haven't been defined. We could do it differently, but a simple change in the type check for the variables in question from null to undefined is enough to fix the problem for me (see patch).
** Attachment added: "fix freeze with magnifier in push mode" https://bugs.launchpad.net/gnome-shell/+bug/1991001/+attachment/5865297/+files/check_delayed_undefined -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/1991001 Title: Can't move (or see) the mouse cursor during desktop zoom Status in GNOME Shell: New Status in gnome-shell package in Ubuntu: Confirmed Bug description: What I expect to happen: After booting up Ubuntu I'd like to be able to just enable desktop zoom using Alt+Super+8. What actually happens: When I enable desktop zoom after logging in to Ubuntu, it doesn't work. Magnifier zooms in to the top-left portion of my desktop. The mouse pointer disappears and I can no longer move my view around. I can still disable zoom, so apparently it didn't crash. After I go to Settings->Accessibility>Zoom, change some settings and enable zoom it works. When I change the settings back to my preferences it still works. After this the magnifier seems to work without further problems. I'm experiencing this problem with both xorg and Wayland. Some general information: - My Magnifier settings: - Magnification: 2.00 - Magnifier position: - Screen part: full screen - Magnifier cursor pushes contents around - I used gsettings to set caret-tracking and focus-tracking to 'none' - The setting 'mouse-tracking' is still on 'push´ - Graphics card: NVidia GeForce GTX 970 - Graphics driver: Proprietary nvidia-driver-5.15 ProblemType: Bug DistroRelease: Ubuntu 22.04 Package: gnome-shell 42.4-0ubuntu0.22.04.1 ProcVersionSignature: Ubuntu 5.15.0-48.54-generic 5.15.53 Uname: Linux 5.15.0-48-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.11-0ubuntu82.1 Architecture: amd64 CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME Date: Tue Sep 27 18:44:56 2022 DisplayManager: gdm3 InstallationDate: Installed on 2022-09-26 (1 days ago) InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1) RelatedPackageVersions: mutter-common 42.2-0ubuntu1 SourcePackage: gnome-shell UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-shell/+bug/1991001/+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