Ask HN:你的 Mac 菜单栏报错了吗?

1作者: vsgherzi4 个月前
我注意到在 macOS 26 上,我安装的任何第三方菜单栏程序都会导致控制台应用程序充斥着以下日志: “WindowServer _CGXPackagesSetWindowConstraints: Invalid window” 或者仅仅是 “_CGXPackagesSetWindowConstraints: Invalid window” 热门程序 Stats 显示了此处的错误。 [https://github.com/exelban/stats/issues/2829](https://github.com/exelban/stats/issues/2829) 该日志似乎是从 macOS 的 windowserver 内部深处抛出的。打开你的控制台应用程序,看看如果你在 macOS 上安装了带有菜单栏图标的应用程序,是否也能在日志中看到它。
查看原文
I&#x27;ve noticed on Macos 26 any third party menu bar program I install will cause the console application to fill with logs with<p>&quot;WindowServer _CGXPackagesSetWindowConstraints: Invalid window&quot;<p>or just<p>&quot;_CGXPackagesSetWindowConstraints: Invalid window&quot;<p>Popular program stats shows the bug here. https:&#x2F;&#x2F;github.com&#x2F;exelban&#x2F;stats&#x2F;issues&#x2F;2829<p>The log seems to be thrown from somewhere deep inside MacOS&#x27; windowserver. Crack open your console app and see if you also see it anywhere in the logs if you have an app that has a menu bar icon on macos.