问HN:你的Mac菜单栏出现错误了吗?
我注意到在 macOS 26 上,任何我安装的第三方菜单栏程序都会导致控制台应用程序充满日志,内容为“WindowServer _CGXPackagesSetWindowConstraints: Invalid window”或“_CGXPackagesSetWindowConstraints: Invalid window”。流行程序的统计数据在这里显示了这个错误。
https://github.com/exelban/stats/issues/2829
这个日志似乎是从 macOS 的 WindowServer 深处抛出的。如果你在 macOS 上有一个带菜单栏图标的应用程序,可以打开你的控制台应用程序,看看日志中是否也有类似的内容。
查看原文
I've noticed on Macos 26 any third party menu bar program I install will cause the console application to fill with logs with<p>"WindowServer _CGXPackagesSetWindowConstraints: Invalid window"<p>or just<p>"_CGXPackagesSetWindowConstraints: Invalid window"<p>Popular program stats shows the bug here.
https://github.com/exelban/stats/issues/2829<p>The log seems to be thrown from somewhere deep inside MacOS' 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.