Sencha Cmd v7.5.0及以下 不兼容 MacOS Monterey (12.x) 的解决办法

编程入门 行业动态 更新时间:2024-10-10 07:27:27

Sencha Cmd v7.5.0及以下 不兼容 MacOS Monterey (12.x) 的<a href=https://www.elefans.com/category/jswz/34/1767401.html style=解决办法"/>

Sencha Cmd v7.5.0及以下 不兼容 MacOS Monterey (12.x) 的解决办法

Sencha Cmd 7.6.0+ 应该解决了。


MacOS 升级到 Monterey,运行 Sencha Cmd v7.5.0 会有如下错误

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:
#   .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 "$@"

和这个错误

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 + 2421   libobjc.A.dylib                     0x00007ff813c5bb9d objc_exception_throw + 482   Foundation                          0x00007ff814c9126d -[NSPlaceholderString initWithFormat:locale:arguments:] + 2953   Foundation                          0x00007ff814c9ff2f +[NSString stringWithFormat:] + 1534   Update1478821341979869630.dylib     0x00000001218897a9 wuusgJAD + 5535   Update1478821341979869630.dylib     0x0000000121874319 pGgFelzv + 96   Update1478821341979869630.dylib     0x0000000121888ab2 MKNXgAzM + 5627   Update1478821341979869630.dylib     0x000000012188795d tyRtaPXr + 618   Update1478821341979869630.dylib     0x00000001218877bb ZWwnJFGw + 2839   Update1478821341979869630.dylib     0x0000000121880dc6 Phdl_SDOTFG + 24610  Update1478821341979869630.dylib     0x0000000121880e49 Phdl_SDOTF + 2511  Update1478821341979869630.dylib     0x000000012186e505 Java_phdl_Phdl_SDOTF + 2112  ???                                 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 "$@"

还有这个

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 "$@"

解决办法

可能是 Sencha Cmd 内置的 JRE 不兼容 Monterey 导致的
官方给出的解决方法是
1、先删除文件 /Users/你的用户名/Library/Application Support/Sencha/Cmd/Update/app.properties
操作系统是中文的话,路径是 /用户/你的用户名/资源库/Application Support/Sencha/Cmd/Update/app.properties
2、在项目的 app.json 里面加一个配置 "bypass_lp": true,,如下

再次使用 Sencha 命令就正常了。

更多推荐

Sencha Cmd v7.5.0及以下 不兼容 MacOS Monterey (12.x) 的解决办法

本文发布于:2024-03-10 07:03:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1727302.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:解决办法   不兼容   Cmd   Sencha   Monterey

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!