小编Ani*_*Ani的帖子

Apple AWT 内部异常:NSWindow 拖动区域应仅在主线程上无效

我正在尝试运行 PApplet 类。我在 Eclipse 上运行它,在 MacOS 中。所有必需的库文件都包含在应用程序中,并使用 Java 1.8 来编译和运行该类。Mac OS 版本为 Catalina,10.15.6 (19G2021)。我收到以下错误:

    2020-10-13 13:23:51.528 java[20420:1238853] Apple AWT Internal Exception: NSWindow drag regions should only be invalidated on the Main Thread!
    2020-10-13 13:23:51.528 java[20420:1238853] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
    *** First throw call stack:
    (
    0   CoreFoundation                      0x00007fff338dbb57 __exceptionPreprocess + 250
    1   libobjc.A.dylib                     0x00007fff6c7245bf objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff3390434c -[NSException raise] + 9 …
Run Code Online (Sandbox Code Playgroud)

java macos macos-catalina

6
推荐指数
1
解决办法
1043
查看次数

标签 统计

java ×1

macos ×1

macos-catalina ×1