idea NSInternalInconsistencyException

idea 莫名其妙就报错了

-------------------------------------

Translated Report (Full Report Below)

-------------------------------------

Process: idea [1309]

Path: /Applications/IntelliJ IDEA CE.app/Contents/MacOS/idea

Identifier: com.jetbrains.intellij.ce

Version: 2021.3 (IC-213.5744.223)

Code Type: ARM-64 (Native)

Parent Process: launchd [1]

User ID: 501

Date/Time: 2022-03-04 03:30:51.4521 +0330

OS Version: macOS 12.2.1 (21D62)

Report Version: 12

Anonymous UUID: 4AF85493-B75E-9524-875A-8726A4E64735

Sleep/Wake UUID: 1662191C-F228-4E09-A887-2FE95A86854F

Time Awake Since Boot: 660 seconds

Time Since Wake: 20 seconds

System Integrity Protection: enabled

Crashed Thread: 3 Exception Type: EXC_CRASH (SIGABRT)

Exception Codes: 0x0000000000000000, 0x0000000000000000

Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'

terminating with uncaught exception of type NSException

abort() called

想到应该是某个配置信息有问题导致的,就想删除idea再重新下载,删除重新安装后还是报错,然后就上网查了一下彻底删除idea的方式,网上给的答案:

(1)删除~/Library/Preferences/IntelliJIdea* (*表示版本发行日期)

(2)删除~/Library/Caches/JetBrains/IntelliJIdea*(*表示版本发行日期)

(3)删除~/Library/ApplicationSupport/JetBrains/IntelliJIdea*(*表示版本发行日期)

(4)删除~/Library/Application Support/JetBrains/IntelliJIdea*(*表示版本发行日期)

(5)删除~/Library/Logs/JetBrains/IntelliJIdea*(*表示版本发行日期)

操作完后还是不行,感觉还有配置文件没有删除,上idea的官方issue下找到了答案:

hey I could fix this issue with following instructions:

open this file /Users/{USER_NAME}/Library/LaunchAgents/jetbrains.vmoptions.plist

and then remove all `launchctl setenv "*_OPTIONS"`.

save and close it.

reboot your mac.

now you can use jetbrain :)

issue地址:https://youtrack.jetbrains.com/issue/JBR-4296

你可能感兴趣的:(idea,intellij-idea,java,ide)