当前位置:   article > 正文

macOS Pycharm打开报NSInternalInconsistencyException_nswindow drag regions should only be invalidated o

nswindow drag regions should only be invalidated on the main thread!

用某工具激活了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的文章,给了指引方向。

上解决方案:

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

  1. 删除launch setenv *_OPTIONS

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

修改后的文件内容

  1. 保存并关闭文件

  1. 重启Mac

  1. 重新打开Pycharm等软件

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

完整报错如下:

  1. -------------------------------------
  2. Translated Report (Full Report Below)
  3. -------------------------------------
  4. Process: pycharm [39765]
  5. Path: /Applications/PyCharm.app/Contents/MacOS/pycharm
  6. Identifier: com.jetbrains.pycharm
  7. Version: 2022.2.4 (PY-222.4459.20)
  8. Code Type: X86-64 (Native)
  9. Parent Process: launchd [1]
  10. User ID: 501
  11. Date/Time: 2023-01-03 15:24:10.9876 +0800
  12. OS Version: macOS 12.2.1 (21D62)
  13. Report Version: 12
  14. Bridge OS Version: 6.2 (19P744)
  15. Anonymous UUID: 9A5F300C-94AF-1A8E-BA88-5617F64227C3
  16. Sleep/Wake UUID: 6001053A-C9F5-4377-9CA5-07544405EDFC
  17. Time Awake Since Boot: 120000 seconds
  18. Time Since Wake: 10224 seconds
  19. System Integrity Protection: enabled
  20. Crashed Thread: 3
  21. Exception Type: EXC_CRASH (SIGABRT)
  22. Exception Codes: 0x0000000000000000, 0x0000000000000000
  23. Exception Note: EXC_CORPSE_NOTIFY
  24. Application Specific Information:
  25. *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
  26. terminating with uncaught exception of type NSException
  27. abort() called
  28. Application Specific Backtrace 0:
  29. 0 CoreFoundation 0x00007ff81a4edf0b __exceptionPreprocess + 242
  30. 1 libobjc.A.dylib 0x00007ff81a24eb9d objc_exception_throw + 48
  31. 2 CoreFoundation 0x00007ff81a5168ca -[NSException raise] + 9
  32. 3 AppKit 0x00007ff81cec8171 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 321
  33. 4 AppKit 0x00007ff81ceb3ee6 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1287
  34. 5 AppKit 0x00007ff81d05d4b2 -[NSPanel _initContent:styleMask:backing:defer:contentView:] + 50
  35. 6 AppKit 0x00007ff81ceb39d9 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
  36. 7 AppKit 0x00007ff81d05d46b -[NSPanel initWithContentRect:styleMask:backing:defer:] + 59
  37. 8 AppKit 0x00007ff81ceb2107 -[NSWindowTemplate nibInstantiate] + 354
  38. 9 AppKit 0x00007ff81ce7ed2f -[NSIBObjectData instantiateObject:] + 222
  39. 10 AppKit 0x00007ff81ce7e49e -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 476
  40. 11 AppKit 0x00007ff81ce730cc loadNib + 392
  41. 12 AppKit 0x00007ff81ce725f2 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 796
  42. 13 AppKit 0x00007ff81ce721e1 -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 201
  43. 14 AppKit 0x00007ff81d1da9f2 -[NSAlert init] + 137
  44. 15 pycharm 0x000000010fca8a48 -[Launcher buildArgsFor:] + 1416
  45. 16 pycharm 0x000000010fca8f54 -[Launcher launch] + 340
  46. 17 Foundation 0x00007ff81b2d02d9 __NSThread__start__ + 1025
  47. 18 libsystem_pthread.dylib 0x00007ff81a3ab4f4 _pthread_start + 125
  48. 19 libsystem_pthread.dylib 0x00007ff81a3a700f thread_start + 15
  49. Thread 0:: Dispatch queue: com.apple.main-thread
  50. 0 libsystem_kernel.dylib 0x7ff81a36eaba mach_msg_trap + 10
  51. 1 libsystem_kernel.dylib 0x7ff81a36ee2b mach_msg + 59
  52. 2 CoreFoundation
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/70506
推荐阅读
相关标签
  

闽ICP备14008679号