Ask HN:你的 Mac 菜单栏报错了吗?
1 分•作者: vsgherzi•4 个月前
我注意到在 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'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.