开发者社区> 柳鲲鹏> 正文
阿里云
为了无法计算的价值
打开APP
阿里云APP内打开

JDK/JAVA Exception NSWindow drag regions should only be invalidated on the Main Thread

简介: JDK/JAVA Exception NSWindow drag regions should only be invalidated on the Main Thread
+关注继续查看
  • 在MAC 11上运行jogmap,报错:
2022-01-24 10:56:37.395 java[94984:1325231] Apple AWT Internal Exception: NSWindow drag regions should only be invalidated on the Main Thread!
2022-01-24 10:56:37.395 java[94984:1325231] *** 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                      0x00007fff2062a1db __exceptionPreprocess + 242
  1   libobjc.A.dylib                     0x00007fff20363d92 objc_exception_throw + 48
  2   CoreFoundation                      0x00007fff206528e6 -[NSException raise] + 9
  3   AppKit                              0x00007fff22de1eb2 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 321
  4   AppKit                              0x00007fff22dccaa2 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1296
  5   AppKit                              0x00007fff22dcc58b -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
  6   libnativewindow_macosx.jnilib       0x00000001b2269502 Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 354
  7   ???                                 0x000000011937caa8 0x0 + 4718054056
)
libc++abi: terminating with uncaught exception of type NSException
  • 参考网页

搜索了一下,说JDK242正常,252出现的问题。


java - Apple AWT Internal Exception: NSWindow drag regions should only be invalidated on the Main Thread - Stack Overflow


吾试了一下,使用官方发布的JDK202确实是可以的。由错误变成了警告。下载链接:


Java Archive | Oracle


  • 原因分析

对比老新版本的JDK输出,由Warning变成了Error。说明JDK本身没有变化,变化的是Xcode版本(新版本要求必须在主线程进行某些操作)。而其他软件没有及时跟进,于是出错了。


版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
SAP C4C - the entity BO node XXXX is unknown
When I try to create a business object extension on Lead BO in Cloud Application Studio, I meet with the following error message:
35 0
Access the OData service exposed by your CDS view via Smart Business Tile
It is possible to configure a Smart business tile which consumes the OData service exposed by your CDS view. Create a new KPI definition:
35 0
IDEA运行spark程序报错Exception in thread "main" java.net.BindException: Cannot
错误提示如下: Exception in thread “main” java.net.BindException: Cannot assign requested address: Service ‘sparkDrive...
1591 0
java.lang.ClassNotFoundException: javax.servlet.Filter
java.lang.ClassNotFoundException: javax.servlet.Filter:有两个原因:(1)在maven中的作用域,不能是provided,需要是compile就是默认的scope(2)spring-boot-starter-tomcat的版本bug,换个新的或旧...
3610 0
Bash data exfiltration through DNS (using bash builtin functions)
https://forsec.nl/2015/01/bash-data-exfiltration-through-dns-using-bash-builtin-functions/ Af...
863 0
Excel Handle by org.apache.poi.xssf.usermodel.*

package shuai.study.excel.xssf;

import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException
1815 0
ORACLE EXPDP IMPDP 中停止和启动
截取于http://junmail.javaeye.com/blog/215780 EXPDP和IMPDP的本质在于,通过API调用,把传统的EXP/IMP类交付式模式的操作,转变成数据库内部的job任务,从而实现了任务的可终止与重启动。
803 0
+关注
2381
文章
1
问答
文章排行榜
最热
最新
相关电子书
更多
低代码开发师(初级)实战教程
立即下载
阿里巴巴DevOps 最佳实践手册
立即下载
冬季实战营第三期:MySQL数据库进阶实战
立即下载