金融 网站建设,国内外优秀设计网站,八年级信技做网站,东莞seo建站优化工具最近在玩RLCraft#xff0c;在windows中运行正常的#xff0c;移植到macOS中发现如果加载OptiFine模组就会崩溃
报错日志
报错日志如下#xff0c;其中已经包含了各种版本信息#xff0c;我就不单独说明了。这里说一下#xff0c;报错的时候用的是oracle jdk x64的…最近在玩RLCraft在windows中运行正常的移植到macOS中发现如果加载OptiFine模组就会崩溃
报错日志
报错日志如下其中已经包含了各种版本信息我就不单独说明了。这里说一下报错的时候用的是oracle jdk x64的我平时开发项目使用。
[16:55:35] [Client thread/INFO]: [OptiFine]
[16:55:35] [Client thread/INFO]: [OptiFine] OptiFine_1.12.2_HD_U_G5
[16:55:35] [Client thread/INFO]: [OptiFine] Build: 20210124-142939
[16:55:35] [Client thread/INFO]: [OptiFine] OS: Mac OS X (x86_64) version 15.1.1
[16:55:35] [Client thread/INFO]: [OptiFine] Java: 1.8.0_411, Oracle Corporation
[16:55:35] [Client thread/INFO]: [OptiFine] VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
[16:55:35] [Client thread/INFO]: [OptiFine] LWJGL: 2.9.2
[16:55:35] [Client thread/INFO]: [OptiFine] OpenGL: Apple M2, version 2.1 Metal - 89.3, Apple
[16:55:35] [Client thread/INFO]: [OptiFine] OpenGL Version: 2.1.0
[16:55:35] [Client thread/INFO]: [OptiFine] Maximum texture size: 16384x16384
[16:55:35] [VersionCheck/INFO]: [OptiFine] Checking for new version
*** Terminating app due to uncaught exception NSInternalInconsistencyException, reason: NSWindow geometry should only be modified on the main thread!
*** First throw call stack:
(0 CoreFoundation 0x00007ff802f46f4e __exceptionPreprocess 2421 libobjc.A.dylib 0x00007ff802a30f12 objc_exception_throw 622 CoreFoundation 0x00007ff802f69d84 -[NSException raise] 93 AppKit 0x00007ff80736f9d1 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMargins] 3494 AppKit 0x00007ff8067a480d -[NSThemeFrame setStyleMask:] 1625 AppKit 0x00007ff8067a4618 __25-[NSWindow setStyleMask:]_block_invoke 19746 AppKit 0x00007ff8067a3e08 NSPerformVisuallyAtomicChange 1347 AppKit 0x00007ff8067a3d21 -[NSWindow setStyleMask:] 1508 liblwjgl.dylib 0x000000013b335ee2 Java_org_lwjgl_opengl_MacOSXDisplay_nSetResizable 829 ??? 0x000000010ff94387 0x0 456296128710 ??? 0x000000010ff8433d 0x0 4562895677
)
libcabi: terminating due to uncaught exception of type NSException
[16:55:35] [org.jackhuang.hmcl.event.EventBus.fireEvent/INFO] ProcessExitedAbnormallyEvent [sourceorg.jackhuang.hmcl.launch.ExitWaiter6982d7ea, processManagedProcess[commands[/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java, -Xmx4096m, -Dfile.encodingUTF-8, -Dsun.stdout.encodingUTF-8, -Dsun.stderr.encodingUTF-8, -Djava.rmi.server.useCodebaseOnlytrue, -Dcom.sun.jndi.rmi.object.trustURLCodebasefalse, -Dcom排除过程
首先我要确定的是OptiFine是否支持macOS经测试MC 1.20.1-Forge-OptiFine中完美运行。所以至少可以确定是支持macOS的。
解决办法
我在这个地址找到了解决办法但是这个地址提供的JDK版本我是无法正常安装成功的。 https://github.com/MultiMC/Launcher/wiki/Java-on-macOS
我最终是从oracle官网下载的最新的arm版本的然后就启动成功啦。
https://www.oracle.com/java/technologies/downloads/#java8-mac
我下载的JDK版本是 总结
最终发现原来是JDK版本的原因导致的。终于成功运行了开心