macbook上 idea打开报错idea

macbook上idea打开报错Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'

问题原因:

所有AppKit / GUI调用都需要在主线程中进行,无法在其他线程执行。

处理方法:
在主线程执行代码,如果该代码在其他子线程当中,则可以用dispatch_async(dispatch_get_main_queue(), ^{})方法调起主线程,将代码写在其中

如有帮助,欢迎采纳!

要不去去官网重下试试。