SaneBar icon indicating copy to clipboard operation
SaneBar copied to clipboard

Suddenly my mouse was overtaken and looked like it was moving around grabbing menu items

Open edmundml opened this issue 6 months ago • 9 comments

Issue Description

Suddenly my mouse was overtaken and looked like it was moving menu items around. Hard to recreate, don’t know what caused it. Its hapened a few times. Can’t screen record it as its seems to control the mouse.


Environment

Property Value
App Version 2.1.62 (2162)
OS macOS 26.0.1
Device MacBookPro17,1 (Apple Silicon)
Collected 2026-06-03T13:23:50Z

Full diagnostics were copied to your clipboard. Press Cmd V below to paste them.

Issue Description

Suddenly my mouse was overtaken and looked like it was moving menu items around. Hard to recreate, don’t know what caused it. Its hapened a few times. Can’t screen record it as its seems to control the mouse.


Environment

Property Value
App Version 2.1.62 (2162)
OS macOS 26.0.1
Device MacBookPro17,1 (Apple Silicon)
Collected 2026-06-03T13:23:50Z

Recent Logs (last 5 minutes)

[16:57:08.931] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3890.000000), using cached 1113.000000
[16:59:42.297] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3890.000000), using cached 1113.000000
[17:00:48.066] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3890.000000), using cached 1114.000000
[17:04:59.466] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3890.000000), using cached 1114.000000
[17:07:22.748] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3889.000000), using cached 1114.000000
[17:08:41.897] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3890.000000), using cached 1115.000000
[17:13:34.312] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3888.000000), using cached 1114.000000
[17:24:12.903] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3889.000000), using cached 1117.000000
[17:30:00.124] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3890.000000), using cached 1115.000000
[17:37:37.145] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3888.000000), using cached 1115.000000
[17:39:37.012] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3889.000000), using cached 1115.000000
[17:42:03.943] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3889.000000), using cached 1117.000000
[17:43:45.776] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3889.000000), using cached 1115.000000
[19:50:13.778] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3896.000000), using cached 1108.000000
[19:53:48.286] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3896.000000), using cached 1109.000000
[19:56:16.884] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3896.000000), using cached 1108.000000
[19:57:56.487] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3890.000000), using cached 1108.000000
[19:58:27.071] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3891.000000), using cached 1113.000000
[19:59:49.757] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3891.000000), using cached 1113.000000
[20:01:28.956] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3889.000000), using cached 1113.000000
[20:10:23.383] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3890.000000), using cached 1111.000000
[20:11:04.767] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3909.000000), using cached 1114.000000
[20:14:50.403] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3912.000000), using cached 1116.000000
[20:15:44.351] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3911.000000), using cached 1113.000000
[20:29:36.185] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3911.000000), using cached 1112.000000
[20:35:00.932] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3912.000000), using cached 1112.000000
[20:40:27.548] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3913.000000), using cached 1113.000000
[20:48:14.250] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3911.000000), using cached 1112.000000
[20:55:20.636] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3912.000000), using cached 1114.000000
[21:02:42.508] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3911.000000), using cached 1111.000000
[21:06:20.046] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3911.000000), using cached 1115.000000
[21:09:48.638] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3911.000000), using cached 1114.000000
[21:13:48.467] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3909.000000), using cached 1116.000000
[21:14:15.518] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3909.000000), using cached 1116.000000
[21:15:14.166] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3908.000000), using cached 1117.000000
[21:21:15.547] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3907.000000), using cached 1117.000000
[21:24:24.630] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3911.000000), using cached 1116.000000
[21:26:21.216] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3911.000000), using cached 1114.000000
[21:30:39.904] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3911.000000), using cached 1114.000000
[21:33:17.903] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3911.000000), using cached 1116.000000
[21:35:32.646] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3911.000000), using cached 1114.000000
[21:38:04.229] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3909.000000), using cached 1114.000000
[21:39:03.312] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3911.000000), using cached 1116.000000
[21:40:59.946] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3912.000000), using cached 1114.000000
[21:50:12.479] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3911.000000), using cached 1114.000000
[21:54:37.983] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3910.000000), using cached 1115.000000
[22:00:48.174] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3912.000000), using cached 1114.000000
[08:42:15.315] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3897.000000), using cached 1107.000000
[08:43:29.554] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3896.000000), using cached 1107.000000
[08:44:32.717] [ERROR] getSeparatorRightEdgeX: stale frame (w=24.000000, x=-3897.000000), using cached 1107.000000

Settings Summary

hidingState: hidden
isAnimating: false
delimiterConfigured: true
delimiterLength: 10000.00
isMenuOpen: false
isRevealPinned: false
shouldSkipHideForExternalMonitor: false
hasNotch: false
isOnExternalMonitor: false
accessibilityGranted: true

separatorOriginX: 1112.00
alwaysHiddenSeparatorOriginX: 777.00
mainIconLeftEdgeX: 1298.00

mainStatusItemVisible: true
statusMenuItemCount: 13

statusItemForensics:
  startupItemsValid: true
  mainWindowValid: true
  separatorWindowValid: true
  systemMenuBarSuppressionHint: none
  visibilityOverrideCount: 0
  visibilityOverrides: none
  missionControlDisplaysHaveSeparateSpaces: unknown
  missionControlSpansDisplaysRaw: unknown
  missionControlSummary: unknown

mainButton:
  identifier: SaneBar.main
  action: statusItemClicked:
  hasTarget: true
  windowFrame: x=1298.0 y=870.0 w=21.0 h=30.0
  screen: Built-in Retina Display

separatorButton:
  identifier: SaneBar.separator
  action: nil
  hasTarget: false
  windowFrame: x=-3910.0 y=870.0 w=5004.0 h=30.0

alwaysHiddenSeparatorButton:
  identifier: SaneBar.alwaysHiddenSeparator
  action: nil
  hasTarget: false
  windowFrame: x=-4438.0 y=870.0 w=18.0 h=30.0

prefsForensics:
  bundleIdentifier: com.sanebar.app
  autosaveVersion: 12
  currentScreenWidth: 1440.00
  currentScreenCount: 1
  statusItemScreen: Built-in Retina Display
  statusItemScreenWidth: 1440.00
  pointerScreen: Built-in Retina Display
  pointerScreenWidth: 1440.00
  calibratedScreenWidth: 1440.00
  currentWidthBucket: 1440
  storedWidthBucket: 1440
  legacyAlwaysHiddenSeparator: nil
  displayBackupCurrentMain: 108
  displayBackupCurrentSeparator: 288
  displayBackupStoredMain: 108
  displayBackupStoredSeparator: 288

nsStatusItemPreferredPositions:
  main: 121
  separator: 306
  alwaysHiddenSeparator: 846

settings:
  autoRehide: true
  rehideDelay: 15.0s
  findIconRehideDelay: 15.0s
  showOnHover: true
  showOnScroll: false
  showOnClick: false
  hideApplicationMenusOnInlineReveal: true
  showOnUserDrag: true
  showOnLowBattery: false
  showOnAppLaunch: false
  showOnNetworkChange: false
  rehideOnAppChange: false
  requireAuthToShowHiddenIcons: false
  showDockIcon: false
  hideMainIcon: false
  dividerStyle: slash
  menuBarSpacing: default
  iconGroups: 0
  iconHotkeys: 0
  disableOnExternalMonitor: false
  useSecondMenuBar: false
  alwaysHiddenSectionEnabled: true
  alwaysHiddenPinnedItemCount: 13

diagnostics:
    accessibility:
      granted: true
      ownersCacheCount: 27
      ownersCacheAge: stale
      itemsCacheCount: 28
      itemsCacheAge: 66.3s
      ownersRefreshInFlight: false
      itemsRefreshInFlight: false
      cacheWarmupInFlight: false
      cacheWarmupSuppressionDepth: 0
      deferredCacheWarmupReason: none
      knownOwnerRefreshAttempts: 80
      knownOwnerRefreshAccepted: 74
      knownOwnerRefreshFullFallbacks: 0
      knownOwnerRefreshLastOutcome: accepted.initial
      knownOwnerRefreshLastSeededItems: 28
      knownOwnerRefreshLastSeededOwners: 27
      knownOwnerRefreshLastFirstResult: 28
      knownOwnerRefreshLastFirstCoverage: 1.00
      knownOwnerRefreshLastRetryOwners: 0
      knownOwnerRefreshLastRetryResult: 0
      knownOwnerRefreshLastRetryCoverage: 0.00
      bundlesWithoutExtrasMenuBarCount: 0
      bundlesWithoutExtrasMenuBar: none
    lastActivation:
      startedAt: 2026-06-02T13:11:27.719
      requestedApp: id=com.sindresorhus.Dato::statusItem:0 bundle=com.sindresorhus.Dato menuExtra=nil statusItemIndex=0 x=-4195.0 width=107.0
      origin: browsePanel
      didReveal: true
      preferHardwareFirst: true
      initialResolution: forceRefresh=true items=19 method=uniqueId
      initialTarget: id=com.sindresorhus.Dato::statusItem:0 bundle=com.sindresorhus.Dato menuExtra=nil statusItemIndex=0 x=785.0 width=107.0
      waitOutcome: stable after 200ms at x=838.5
      firstAttempt: success=true accepted=true timedOut=false durationMs=387 fallbackCenter=x=838.5 y=15.0 allowImmediateFallbackCenter=true requireObservableReaction=true verification=verified (focusedWindow)
      retryAttempt: not-needed
      finalOutcome: click succeeded
    secondMenuBar:
      showRequestedAt: 2026-06-02T13:11:25.210
      currentMode: findIcon
      windowVisible: false
      windowFrame: x=510.0 y=297.0 w=420.0 h=552.0
      refreshForced: false
      visibleCount: 0
      hiddenCount: 0
      alwaysHiddenCount: 0
      relayoutPassCount: 0
      lastRelayoutAt: 2026-06-02T13:12:27.072
      lastRelayoutReason: windowWillClose

Submitted via SaneBar's in-app feedback

edmundml avatar Jun 03 '26 13:06 edmundml

If there's any useful info I can give let me know. Adding to the above, it appeared to move items that were in "permanently hidden" into just "show on hover".

edmundml avatar Jun 03 '26 13:06 edmundml

Thanks for reporting this. I traced a likely cause to stale separator / always-hidden geometry being trusted too far after transitions. In some cases SaneBar could try to “repair” icon positions using old coordinates, which matches the behavior you described where icons appeared to be grabbed or moved unexpectedly.

I shipped changes in v2.1.64 intended to address this. Visible moves now require live separator geometry, always-hidden pin reconciliation requires fresh live geometry, and the release was verified with exact-ID move tests against shared fixture items plus native Siri and Spotlight menu bar items.

Download: https://sanebar.com/download

MrSaneApps avatar Jun 05 '26 09:06 MrSaneApps

SaneBar 2.1.66 is live now with additional wake/display recovery work for Hidden, Always Hidden, and hide-all-other layouts, including helper-owned menu extras: https://sanebar.com/download

Please update and try the same flow again when you can. If the issue still reproduces on 2.1.66, please send a fresh in-app report right after it happens so I can compare the current diagnostics against this issue.

Mr. Sane https://saneapps.com

MrSaneApps avatar Jun 06 '26 13:06 MrSaneApps

First, that was not malware, but I completely understand the alarm and I am sorry about it. That was SaneBar itself: after wake it replayed your saved icon layout using simulated drags, which physically moves the cursor.

2.1.67 changes the policy outright. Automatic restores after wake never move your cursor anymore. If SaneBar thinks your layout needs fixing, it verifies positions silently and offers a one-click restore in the Health panel instead of taking over your mouse. Cursor movement now only happens for actions you trigger yourself. Please update via the in-app updater or sanebar.com.

MrSaneApps avatar Jun 11 '26 12:06 MrSaneApps

Thanks again for the report. I shipped SaneBar 2.1.76 with another round of fixes for the menu bar recovery/layout path and the related release QA.

Please update when you can and let me know if this helps.

MrSaneApps avatar Jun 21 '26 20:06 MrSaneApps

I dug into this one, and it turns out it's not so much a SaneBar problem as a macOS one — the way macOS tracks menu-bar item positions has a bug, and from what I can tell every menu-bar manager app is wrestling with the same drift right now (the popular ones all have open reports of it). That said, I think I've landed on a pretty good approach: 2.1.83 already stops SaneBar from fighting macOS when it reshuffles the menu bar and recovers the divider if it gets parked off-screen, and I've got a more targeted change in the works for the residual drift after sleep/wake. Could you update (SaneBar updates itself, or use the SaneBar menu → Check for Updates) and let me know if it's any better in the meantime — and if it still drifts, which icon moves and when? That detail genuinely helps. —Mr. Sane

MrSaneApps avatar Jun 27 '26 00:06 MrSaneApps

I know that looked alarming. 2.1.84 (just out) adds more guards around what causes it. Please update — and if it ever happens again, a quick screen recording would help.

Mr. Sane https://saneapps.com

MrSaneApps avatar Jun 28 '26 17:06 MrSaneApps

Good news and bad news — and I'll give you the good news first.

Everything I'm about to say affects SaneBar only. None of the other SaneApps have been impacted by Apple's changes — they all work great, they are actively maintained, and they will keep working. You can see the whole family at saneapps.com.

Now the bad news. SaneBar — and every other menu bar manager on the Mac — has been rug-pulled by Apple. This is not a SaneBar bug we were too lazy to fix. It is a platform problem, and it is hitting the whole category on two fronts at once.

1. The current version of macOS is already broken for menu bar managers. The OS itself fights apps like this — it flips a menu bar item's visibility in a loop and rewrites menu bar order out from under the app — and there is no public API to control status items, so every app in this category is stuck with the same toolkit. That is why some issues — very possibly the one you just filed — cannot be fixed at the app level today, on current macOS. Apple has acknowledged pieces of it in Feedback FB9052637 (toggling item visibility destroys the saved position) and FB8732253 (macOS stopped preserving menu bar order).

This is not unique to us — the identical bugs are open in other menu bar apps right now:

2. The next version of macOS makes it total. macOS 27 "Golden Gate" rebuilds how the menu bar works and is already breaking every menu bar manager in the beta — right-click menus stop responding, and dragging an icon now triggers Mission Control instead of moving it. Straight from Apple:

So this was never for lack of trying. Apple moved the ground out from under the entire category — already, on today's macOS, and completely on the next one.

SaneBar is not dead in spirit, though. As of the sunset it is completely free and open source (MIT), community-maintained, every feature unlocked. I am no longer triaging issues, but the door is wide open:

  • Fork the repo and fix what you need for your own setup
  • If you have found a solution, open a pull request — PRs still get reviewed and merged by real people
  • Read the full sunset write-up for the whole story and references

Closing this out, but the code stays open. Thank you for caring enough to file it.

Mr. Sane

MrSaneApps avatar Jul 01 '26 18:07 MrSaneApps

Closing this out — the full explanation is in the comment above. SaneBar is now free and open source (MIT), and I welcome pull requests with fixes.

MrSaneApps avatar Jul 01 '26 18:07 MrSaneApps