用某工具激活了JetBrain全家,经过一段时间的爽,今天终于尝到恶果。

报错内容如下:Application Specific Information:

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

不管是打开Pycharm、DateGrip...都报错,即使重装历史版本、社区版,都是一样的结果。

有幸搜到https://www.cnblogs.com/panpanda/p/16701363.html的文章,给了指引方向。

上解决方案:

打开/Users/{USER_NAME}/Library/LaunchAgents/jetbrains.vmoptions.plist

删除launch setenv *_OPTIONS

修改前的文件内容(红框中即为需要删除的内容)

修改后的文件内容

保存并关闭文件

重启Mac

重新打开Pycharm等软件

附上jetbrain的原贴地址https://youtrack.jetbrains.com/issue/JBR-4296/#focus=Comments-27-5840836.0-0

完整报错如下:

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

Translated Report (Full Report Below)

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

Process: pycharm [39765]

Path: /Applications/PyCharm.app/Contents/MacOS/pycharm

Identifier: com.jetbrains.pycharm

Version: 2022.2.4 (PY-222.4459.20)

Code Type: X86-64 (Native)

Parent Process: launchd [1]

User ID: 501

Date/Time: 2023-01-03 15:24:10.9876 +0800

OS Version: macOS 12.2.1 (21D62)

Report Version: 12

Bridge OS Version: 6.2 (19P744)

Anonymous UUID: 9A5F300C-94AF-1A8E-BA88-5617F64227C3

Sleep/Wake UUID: 6001053A-C9F5-4377-9CA5-07544405EDFC

Time Awake Since Boot: 120000 seconds

Time Since Wake: 10224 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

Application Specific Backtrace 0:

0 CoreFoundation 0x00007ff81a4edf0b __exceptionPreprocess + 242

1 libobjc.A.dylib 0x00007ff81a24eb9d objc_exception_throw + 48

2 CoreFoundation 0x00007ff81a5168ca -[NSException raise] + 9

3 AppKit 0x00007ff81cec8171 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 321

4 AppKit 0x00007ff81ceb3ee6 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1287

5 AppKit 0x00007ff81d05d4b2 -[NSPanel _initContent:styleMask:backing:defer:contentView:] + 50

6 AppKit 0x00007ff81ceb39d9 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42

7 AppKit 0x00007ff81d05d46b -[NSPanel initWithContentRect:styleMask:backing:defer:] + 59

8 AppKit 0x00007ff81ceb2107 -[NSWindowTemplate nibInstantiate] + 354

9 AppKit 0x00007ff81ce7ed2f -[NSIBObjectData instantiateObject:] + 222

10 AppKit 0x00007ff81ce7e49e -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 476

11 AppKit 0x00007ff81ce730cc loadNib + 392

12 AppKit 0x00007ff81ce725f2 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 796

13 AppKit 0x00007ff81ce721e1 -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 201

14 AppKit 0x00007ff81d1da9f2 -[NSAlert init] + 137

15 pycharm 0x000000010fca8a48 -[Launcher buildArgsFor:] + 1416

16 pycharm 0x000000010fca8f54 -[Launcher launch] + 340

17 Foundation 0x00007ff81b2d02d9 __NSThread__start__ + 1025

18 libsystem_pthread.dylib 0x00007ff81a3ab4f4 _pthread_start + 125

19 libsystem_pthread.dylib 0x00007ff81a3a700f thread_start + 15

Thread 0:: Dispatch queue: com.apple.main-thread

0 libsystem_kernel.dylib 0x7ff81a36eaba mach_msg_trap + 10

1 libsystem_kernel.dylib 0x7ff81a36ee2b mach_msg + 59

2 CoreFoundation

推荐阅读

评论可见,请评论后查看内容,谢谢!!!评论后请刷新页面。