繁体   English   中英

macOS Monterrey 更新后的 Sencha CMD 问题

[英]Sencha CMD problem after macOS Monterrey update

问题

将我的 macOS 更新到 Monterrey (12.0.1) 后,我在使用 ExtJS 启动我的本地项目时遇到了一个大问题。

当我执行时:

sencha app watch

得到错误:

Sencha Cmd v7.5.0.5
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007ff813dcb6f2, pid=18621, tid=0x000000000000a707
#
# JRE version: OpenJDK Runtime Environment (8.0_242-b08) (build 1.8.0_242-b08)
# Java VM: OpenJDK 64-Bit Server VM (25.242-b08 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  [libsystem_platform.dylib+0x16f2]  _platform_strlen+0x12
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# [my app folder]/hs_err_pid18621.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
/Users/kellerkichel/bin/Sencha/Cmd/sencha: line 167: 18621 Abort trap: 6           $BASEDIR/$VER/sencha "$@"

有趣的是...如果再次运行...相同的命令( sencha app watch ),错误变化:

2021-12-06 22:10:28.229 java[17909:173895] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSPlaceholderString initWithFormat:locale:arguments:]: nil argument'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007ff813efae5b __exceptionPreprocess + 242
    1   libobjc.A.dylib                     0x00007ff813c5bb9d objc_exception_throw + 48
    2   Foundation                          0x00007ff814c9126d -[NSPlaceholderString initWithFormat:locale:arguments:] + 295
    3   Foundation                          0x00007ff814c9ff2f +[NSString stringWithFormat:] + 153
    4   Update1478821341979869630.dylib     0x00000001218897a9 wuusgJAD + 553
    5   Update1478821341979869630.dylib     0x0000000121874319 pGgFelzv + 9
    6   Update1478821341979869630.dylib     0x0000000121888ab2 MKNXgAzM + 562
    7   Update1478821341979869630.dylib     0x000000012188795d tyRtaPXr + 61
    8   Update1478821341979869630.dylib     0x00000001218877bb ZWwnJFGw + 283
    9   Update1478821341979869630.dylib     0x0000000121880dc6 Phdl_SDOTFG + 246
    10  Update1478821341979869630.dylib     0x0000000121880e49 Phdl_SDOTF + 25
    11  Update1478821341979869630.dylib     0x000000012186e505 Java_phdl_Phdl_SDOTF + 21
    12  ???                                 0x000000010e0e3407 0x0 + 4530779143
)
libc++abi: terminating with uncaught exception of type NSException
/Users/kellerkichel/bin/Sencha/Cmd/sencha: line 167: 17909 Abort trap: 6           $BASEDIR/$VER/sencha "$@"

再一次( sencha app watch )......另一个:

java(18084,0x7000041c5000) malloc: Heap corruption detected, free list is damaged at 0x6000005f3330
*** Incorrect guard value: 105553126503408
java(18084,0x7000041c5000) malloc: *** set a breakpoint in malloc_error_break to debug
/Users/kellerkichel/bin/Sencha/Cmd/sencha: line 167: 18084 Abort trap: 6           $BASEDIR/$VER/sencha "$@"

每次执行后,错误都会在上述错误之间交替...

尝试

1 - JAVA 首先,我认为是JAVA版本的东西,所以我删除了所有安装的JAVA ,包括brew安装的版本。

还删除了对JAVA_HOME的所有引用,并重新安装了JAVA 8 没有成功...再次使用JAVA 11JAVA 17做了一次,但没有成功。

观察。 在 JAVA 17 处,问题发生了变化,但这是因为JAVA 17不再具有 javascript 处理器 ( javax )。

2 - SENCHA CMD 在 JAVA 之后,检查了Sencha cmd ,如果有任何更新或什么......我的Sencha cmd versio 是 7.4.0.39,令我惊讶的是有一个新版本(7.5.0.5),但更新后仍然不工作。

有什么建议吗?

在与 discord 的一些 sencha MVP 交谈后....收到以下提示:

您必须删除以下文件:/Users/user/Library/Application Support/Sencha/Cmd/Update/app.properties

在该解决方法之后,系统再次工作。 我希望这些答案可以帮助某人!

  1. 下载JRE 8(需要支持apple silicon,ex:zulu/bellsoft),解压。
  2. 将“{your_senchacmd_path}/.install4j/inst_jre.cfg”和“{your_senchacmd_path}/.install4j/pref_jre.cfg”中的路径编辑为新的 JRE 路径。

原因:Sencha CMD 包含的 JRE 未针对 ARM 架构甚至 Rosetta 2 编译。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM