启动异常崩溃,如下图
Process: webstorm [6624]
Path: /Applications/WebStorm.app/Contents/MacOS/webstorm
Identifier: com.jetbrains.WebStorm
Version: 2022.2 (WS-222.3345.108)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: webstorm [6624]
User ID: 501
Date/Time: 2022-10-14 10:22:28.258 +0800
OS Version: Mac OS X 10.15.5 (19F101)
Report Version: 12
Anonymous UUID: 145xx2xx58-5F9E-86F8-E221-xxxxxxxx
Time Awake Since Boot: 8900 seconds
System Integrity Protection: disabled
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
Application Specific Backtrace 1:
0 CoreFoundation 0x00007fff37125be7 __exceptionPreprocess + 250
1 libobjc.A.dylib 0x00007fff6ff445bf objc_exception_throw + 48
2 CoreFoundation 0x00007fff3714e3dc -[NSException raise] + 9
3 AppKit 0x00007fff3434cddc -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 310
4 AppKit 0x00007fff34334842 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1416
5 AppKit 0x00007fff345155a5 -[NSPanel _initContent:styleMask:backing:defer:contentView:] + 50
6 AppKit 0x00007fff343342b3 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
7 AppKit 0x00007fff3451555a -[NSPanel initWithContentRect:styleMask:backing:defer:] + 64
8 AppKit 0x00007fff34332299 -[NSWindowTemplate nibInstantiate] + 393
........
........
解决思路:
第一时间猜测肯定是哪里配置有问题
1. 查看idea对应编辑器的日志文件,
日志文件位置(大概,可能版本不一样位置有所不同), 列:
# MAC
/Users/用户名/Library/Logs/JetBrains/GoLand2022.1/idea.log
# win c盘
用户/用户名/AppData/Local/JetBrains//GoLand2022.1/idea.log
2.查看日志文件, 发现还是读取已删除的文件配置,这个就产生了问题
ps: 如果你刚好看到这个文章,那么可以直接执行idea安装目录bin下的 printenv 查看环境配置
处理
原因: 使用了ja-netfilter,激活成功正常使用后,将激活时执行脚本的项目目录(ja-netfilter下载解压后的目录)删除后导致
解决方式:
1.还原删除的文件即可解决,如果找不回删除文件则重新下载然后以同样的路径保存 2.查看日志文件发现是启动时执行了一条设置环境变量的命令(如下图),所以可以尝试修改idea的启动环境变量修复,这里就不没事找事了,有兴趣的自己尝试吧