当前位置: 首页 > news >正文

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

最近在玩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
)
libc++abi: terminating due to uncaught exception of type NSException
[16:55:35] [org.jackhuang.hmcl.event.EventBus.fireEvent/INFO] 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

排除过程

  1. 首先我要确定的是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版本的原因导致的。终于成功运行了,开心!!!

http://www.lryc.cn/news/521183.html

相关文章:

  • 精选2款.NET开源的博客系统
  • 转运机器人在物流仓储行业的优势特点
  • 简识MySQL的InnoDB Locking锁的分类
  • 如何通过openssl生成.crt和.key
  • .NetCore 使用 NPOI 读取带有图片的excel数据
  • linux上使用update-alternatives来选择软件版本
  • 【Elasticsearch复合查询】
  • Java List去重:Stream、HashMap与TreeSet对比分析
  • 大师课程:专业角色AE+AI动画动态设计关键帧学院视频课程 Key Frame Academy – Character Animation Launchpad
  • 游戏盾SDK如何防护APP攻击
  • Spring Boot 3.x 整合 Logback 日志框架(支持异步写入)
  • 从0开始学习搭网站第二天
  • 【Unity-Animator】通过 StateMachineBehaviour 实现回调
  • 鸿蒙中自定义slider实现字体大小变化
  • 数据结构与算法之栈: LeetCode 71. 简化路径 (Ts版)
  • STM32-笔记40-BKP(备份寄存器)
  • NAS中不同RAID级别特点与适用场景
  • node.js的进程保活
  • meta name=“viewport“ content=“width=device-width, initial-scale=1.0“
  • 【vue3】 defineExpose 的使用
  • 思维转换:突破思维桎梏,创造更高效的工作与生活
  • OpenCV相机标定与3D重建(55)通用解决 PnP 问题函数solvePnPGeneric()的使用
  • vue3学习日记5 - 项目起步
  • java导出pdf文件
  • 【MySQL学习笔记】MySQL视图View
  • 从玩具到工业控制--51单片机的跨界传奇【2】
  • 【Redis】初识Redis
  • docker虚拟机平台未启用问题
  • 《零基础Go语言算法实战》【题目 2-22】Go 调度器优先调度问题
  • 关于使用FastGPT 摸索的QA