macOS Monterrey 更新后 Sencha CMD 问题

Kel*_*hel 6 java macos extjs sencha-cmd

问题

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

当我执行时:

sencha app watch
Run Code Online (Sandbox Code Playgroud)

得到错误:

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 "$@"
Run Code Online (Sandbox Code Playgroud)

有趣的是...如果再次运行...相同的命令(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 "$@"
Run Code Online (Sandbox Code Playgroud)

又是 ( 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 "$@"
Run Code Online (Sandbox Code Playgroud)

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

尝试

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版本是7.4.0.39,令我惊讶的是有一个新版本(7.5.0.5),但更新后仍然如此不工作。

有什么建议吗?

Kel*_*hel 26

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

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

采取该解决方法后,系统将再次运行。我希望这些答案可以帮助别人!

更新!!!

在某些 macOS 更新后,删除 app.properties 将停止工作。所以sencha报告要添加bypass_lp:trueapp.json

  • Sencha CMD 票证 SKDTOOLS-2139 更新:“根据我们工程团队的最新消息,为了解决此问题。请更新 app.json,如下所示” “bypass_lp”:true (5认同)
  • 在 MacOS 12.2 中,该问题再次出现,通过删除 app.properties 已解决。添加bypass_lp 有助于解决这个问题。谢谢凯勒...也许您可以更新您的答案并添加此信息。 (2认同)