• 请不要在回答技术问题时复制粘贴 AI 生成的内容
wuyiccc
V2EX  ›  程序员

macos m1 芯片使用 memory analyzer 工具报错 应用程序无法打开

  •  
  •   wuyiccc · Feb 10, 2025 · 2425 views
  •   You need to sign in to view this topic
    This topic created in 642 days ago, the information mentioned may be changed or developed.
    macos m1 芯片使用 memory analyzer 工具报错 应用程序无法打开。

    有大佬知道怎么解决这个问题的吗?

    我使用的版本是最新的 memory analyzer 的 macos aarch64 版本的。

    第一次下载安装完成之后,先打开 mat 工具是闪退,然后根据网上的教程配置了 Info.plist 中的-vm 指定 java 的 bin 路径之后可以正常打开和使用了,然后电脑重启之后,再次打开 mat 工具就提示应用程序无法打开。

    卸载 mat 重装之后也还是报应用程序无法打开。

    后来我换前一个版本,进行相同的操作之后,也是第一次可以正常打开,后面电脑重启之后也是提示应用程序无法打开了。。。

    有大佬知道是怎么回事吗?

    我想看 mat 提示应用程序无法打开的报错详细日志,在网上百度了一下也没找到哪里可以看这个日志。
    5 replies  •  2025-02-11 15:33:45 +08:00
    chendy
    chendy
    Feb 10, 2025❤️1
    1
    M1 MAT 老用户路过
    最新版本改名叫 MemoryAnalyzer.app 了,不叫那个尴尬的缩写 mat 了
    我手里的环境应该比较干净,参数除了 xmx 都没动过,环境变量里躺着一个 java17 ,仅供参考
    NotFoundEgg
    NotFoundEgg
    Feb 10, 2025
    2
    贴一下我这边的 MemoryAnalyzer.ini 文件的内容,供参考

    /Applications/MemoryAnalyzer.app/Contents/Eclipse/MemoryAnalyzer.ini

    ```
    -startup
    ../Eclipse/plugins/org.eclipse.equinox.launcher_1.6.600.v20231106-1826.jar
    -vm
    /Users/xxx/.sdkman/candidates/java/21.0.2-zulu/bin
    --launcher.library
    ../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.aarch64_1.2.800.v20231003-1442
    -vmargs
    --add-exports=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED
    -Xmx4096m
    -Dorg.eclipse.swt.internal.carbon.smallFonts
    -XstartOnFirstThread
    ```
    wuyiccc
    wuyiccc
    OP
    Feb 11, 2025
    3
    @chendy 我的也叫 memoryanalizer.app, 也是啥都没变过,我是用的 zulujdk17
    wuyiccc
    wuyiccc
    OP
    Feb 11, 2025
    4
    @NotFoundEgg 感谢,我试试
    frankly123
    frankly123
    Feb 11, 2025
    5
    换个版本试试 1.13.0 Release ,啥也不用配
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1815 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 06:52 · PVG 14:52 · LAX 22:52 · JFK 01:52
    ♥ Do have faith in what you're doing.