三尺非寒 发表于 2025-1-15 04:52:50

MC1.12.2 macOS高清修复OptiFine运行崩溃

最近在玩RLCraft,在windows中运行正常的,移植到macOS中发现如果加载OptiFine模组就会崩溃
报错日志

报错日志如下,此中已经包含了各种版本信息,我就不但独分析白。这里说一下,报错的时候用的是oracle jdk x64的,我平常开发项目使用。
:
: OptiFine_1.12.2_HD_U_G5
: Build: 20210124-142939
: OS: Mac OS X (x86_64) version 15.1.1
: Java: 1.8.0_411, Oracle Corporation
: VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
: LWJGL: 2.9.2
: OpenGL: Apple M2, version 2.1 Metal - 89.3, Apple
: OpenGL Version: 2.1.0
: Maximum texture size: 16384x16384
: 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 + 242
        1   libobjc.A.dylib                     0x00007ff802a30f12 objc_exception_throw + 62
        2   CoreFoundation                      0x00007ff802f69d84 - + 9
        3   AppKit                              0x00007ff80736f9d1 - + 349
        4   AppKit                              0x00007ff8067a480d - + 162
        5   AppKit                              0x00007ff8067a4618 __25-_block_invoke + 1974
        6   AppKit                              0x00007ff8067a3e08 NSPerformVisuallyAtomicChange + 134
        7   AppKit                              0x00007ff8067a3d21 - + 150
        8   liblwjgl.dylib                      0x000000013b335ee2 Java_org_lwjgl_opengl_MacOSXDisplay_nSetResizable + 82
        9   ???                                 0x000000010ff94387 0x0 + 4562961287
        10???                                 0x000000010ff8433d 0x0 + 4562895677
)
libc++abi: terminating due to uncaught exception of type NSException
ProcessExitedAbnormallyEvent [source=org.jackhuang.hmcl.launch.ExitWaiter@6982d7ea, process=ManagedProcess[commands=[/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java, -Xmx4096m, -Dfile.encoding=UTF-8, -Dsun.stdout.encoding=UTF-8, -Dsun.stderr.encoding=UTF-8, -Djava.rmi.server.useCodebaseOnly=true, -Dcom.sun.jndi.rmi.object.trustURLCodebase=false, -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版本是
https://i-blog.csdnimg.cn/direct/44a210edc4704106a68ef9a70503a6d9.png
https://i-blog.csdnimg.cn/direct/58306950f0e348988563703dca742195.png
总结

终极发现原来是JDK版本的原因导致的。终于成功运行了,开心!!!

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: MC1.12.2 macOS高清修复OptiFine运行崩溃