Skip to content

Instantly share code, notes, and snippets.

@RightFS
Forked from naveenkrdy/AdobeAMDFix.md
Last active September 25, 2021 21:36
Show Gist options
  • Save RightFS/d696220271ec37e54fc9db9af03b8bcb to your computer and use it in GitHub Desktop.
Save RightFS/d696220271ec37e54fc9db9af03b8bcb to your computer and use it in GitHub Desktop.

Revisions

  1. RightFS revised this gist Nov 9, 2020. 2 changed files with 38 additions and 0 deletions.
    19 changes: 19 additions & 0 deletions AdobeAMDFix.md
    Original file line number Diff line number Diff line change
    @@ -11,6 +11,25 @@
    ```
    for file in MMXCore FastCore TextModel dvaaudiodsp Camera\ Raw libtbbmalloc.dylib libintl.dylib libirc.dylib ibintlc.dylib libtbb.dylib libiomp5.dylib; do
    find /Applications/Adobe* -type f -name $file | while read -r FILE; do
    sudo -v
    echo "found $FILE"
    [[ ! -f ${FILE}.back ]] && sudo cp -f $FILE ${FILE}.back || sudo cp -f ${FILE}.back $FILE
    echo $FILE | grep libiomp5 >/dev/null
    if [[ $? == 0 ]]; then
    dir=$(dirname "$FILE")
    [[ ! -f ${HOME}/libiomp5.dylib ]] && cd $HOME && curl -sO https://excellmedia.dl.sourceforge.net/project/badgui2/libs/mac64/libiomp5.dylib
    echo -n "replacing " && sudo cp -vf ${HOME}/libiomp5.dylib $dir && echo
    continue
    fi
    echo $FILE | grep TextModel >/dev/null
    [[ $? == 0 ]] && echo "emptying $FILE" && sudo echo -n >$FILE && continue
    echo "patching $FILE \n"
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' $FILE
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x4A\x00|\x90\x90\x90\x90\x56\xE8\x1A\x00|sg' $FILE
    done
    done
    for file in MMXCore FastCore TextModel dvaaudiodsp Camera\ Raw libtbbmalloc.dylib libintl.dylib libirc.dylib ibintlc.dylib libtbb.dylib libiomp5.dylib; do
    find /Library/Application\ Support/Adobe* -type f -name $file | while read -r FILE; do
    sudo -v
    echo "found $FILE"
    [[ ! -f ${FILE}.back ]] && sudo cp -f $FILE ${FILE}.back || sudo cp -f ${FILE}.back $FILE
    19 changes: 19 additions & 0 deletions AdobeAMDFix_CN.md
    Original file line number Diff line number Diff line change
    @@ -13,6 +13,25 @@
    ```
    for file in MMXCore FastCore TextModel dvaaudiodsp Camera\ Raw libtbbmalloc.dylib libintl.dylib libirc.dylib ibintlc.dylib libtbb.dylib libiomp5.dylib; do
    find /Applications/Adobe* -type f -name $file | while read -r FILE; do
    sudo -v
    echo "found $FILE"
    [[ ! -f ${FILE}.back ]] && sudo cp -f $FILE ${FILE}.back || sudo cp -f ${FILE}.back $FILE
    echo $FILE | grep libiomp5 >/dev/null
    if [[ $? == 0 ]]; then
    dir=$(dirname "$FILE")
    [[ ! -f ${HOME}/libiomp5.dylib ]] && cd $HOME && curl -sO https://excellmedia.dl.sourceforge.net/project/badgui2/libs/mac64/libiomp5.dylib
    echo -n "replacing " && sudo cp -vf ${HOME}/libiomp5.dylib $dir && echo
    continue
    fi
    echo $FILE | grep TextModel >/dev/null
    [[ $? == 0 ]] && echo "emptying $FILE" && sudo echo -n >$FILE && continue
    echo "patching $FILE \n"
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' $FILE
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x4A\x00|\x90\x90\x90\x90\x56\xE8\x1A\x00|sg' $FILE
    done
    done
    for file in MMXCore FastCore TextModel dvaaudiodsp Camera\ Raw libtbbmalloc.dylib libintl.dylib libirc.dylib ibintlc.dylib libtbb.dylib libiomp5.dylib; do
    find /Library/Application\ Support/Adobe* -type f -name $file | while read -r FILE; do
    sudo -v
    echo "found $FILE"
    [[ ! -f ${FILE}.back ]] && sudo cp -f $FILE ${FILE}.back || sudo cp -f ${FILE}.back $FILE
  2. RightFS revised this gist Nov 9, 2020. 2 changed files with 2 additions and 2 deletions.
    2 changes: 1 addition & 1 deletion AdobeAMDFix.md
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@
    3. Copy-paste the below command to your terminal and run it (enter password if asked).

    ```
    for file in MMXCore FastCore TextModel dvaaudiodsp libtbbmalloc.dylib libintl.dylib libirc.dylib ibintlc.dylib libtbb.dylib libiomp5.dylib; do
    for file in MMXCore FastCore TextModel dvaaudiodsp Camera\ Raw libtbbmalloc.dylib libintl.dylib libirc.dylib ibintlc.dylib libtbb.dylib libiomp5.dylib; do
    find /Applications/Adobe* -type f -name $file | while read -r FILE; do
    sudo -v
    echo "found $FILE"
    2 changes: 1 addition & 1 deletion AdobeAMDFix_CN.md
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@
    1. 如果卡住不动或者curl报错请按ctrl+c打断脚本执行,手动下载[libiomp5.dylib](https://pan.baidu.com/s/1TM_qOh_PwzLNi-snWuW5XQ) 提取码: 67tx 放到HOME目录下再重新运行一次脚本.

    ```
    for file in MMXCore FastCore TextModel dvaaudiodsp libtbbmalloc.dylib libintl.dylib libirc.dylib ibintlc.dylib libtbb.dylib libiomp5.dylib; do
    for file in MMXCore FastCore TextModel dvaaudiodsp Camera\ Raw libtbbmalloc.dylib libintl.dylib libirc.dylib ibintlc.dylib libtbb.dylib libiomp5.dylib; do
    find /Applications/Adobe* -type f -name $file | while read -r FILE; do
    sudo -v
    echo "found $FILE"
  3. RightFS revised this gist Nov 9, 2020. No changes.
  4. RightFS revised this gist Nov 9, 2020. 2 changed files with 2 additions and 2 deletions.
    2 changes: 1 addition & 1 deletion AdobeAMDFix.md
    Original file line number Diff line number Diff line change
    @@ -66,7 +66,7 @@ launchctl start ${AGENT} >/dev/null 2>&1

    1. To revert run the following command in terminal.
    ```
    for file in MMXCore FastCore TextModel libiomp5.dylib; do
    for file in MMXCore FastCore TextModel dvaaudiodsp libtbbmalloc.dylib libintl.dylib libirc.dylib ibintlc.dylib libtbb.dylib libiomp5.dylib; do
    find /Applications/Adobe* -type f -name $file | while read -r FILE; do
    sudo -v
    [[ -f ${FILE}.back ]] && echo "found backup $FILE" && sudo mv -f ${FILE}.back $FILE
    2 changes: 1 addition & 1 deletion AdobeAMDFix_CN.md
    Original file line number Diff line number Diff line change
    @@ -68,7 +68,7 @@ launchctl start ${AGENT} >/dev/null 2>&1

    1. 在终端里运行下面这些命令就可以恢复,不用重新安装.
    ```
    for file in MMXCore FastCore TextModel libiomp5.dylib; do
    for file in MMXCore FastCore TextModel dvaaudiodsp libtbbmalloc.dylib libintl.dylib libirc.dylib ibintlc.dylib libtbb.dylib libiomp5.dylib; do
    find /Applications/Adobe* -type f -name $file | while read -r FILE; do
    sudo -v
    [[ -f ${FILE}.back ]] && echo "found backup $FILE" && sudo mv -f ${FILE}.back $FILE
  5. RightFS revised this gist Nov 9, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion AdobeAMDFix_CN.md
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@

    3. 把下面一段脚本粘贴到终端里按下回车,如果让你输密码你就输入电脑的登录密码后回车.-----替换libiomp5并给文件打二进制补丁

    3.1 如果卡住不动或者curl报错请按ctrl+c打断脚本执行,手动下载[libiomp5.dylib](https://pan.baidu.com/s/1TM_qOh_PwzLNi-snWuW5XQ) 提取码: 67tx 放到HOME目录下再重新运行一次脚本.
    1. 如果卡住不动或者curl报错请按ctrl+c打断脚本执行,手动下载[libiomp5.dylib](https://pan.baidu.com/s/1TM_qOh_PwzLNi-snWuW5XQ) 提取码: 67tx 放到HOME目录下再重新运行一次脚本.

    ```
    for file in MMXCore FastCore TextModel dvaaudiodsp libtbbmalloc.dylib libintl.dylib libirc.dylib ibintlc.dylib libtbb.dylib libiomp5.dylib; do
  6. RightFS revised this gist Nov 9, 2020. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions AdobeAMDFix_CN.md
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,8 @@

    3. 把下面一段脚本粘贴到终端里按下回车,如果让你输密码你就输入电脑的登录密码后回车.-----替换libiomp5并给文件打二进制补丁

    3.1 如果卡住不动或者curl报错请按ctrl+c打断脚本执行,手动下载[libiomp5.dylib](https://pan.baidu.com/s/1TM_qOh_PwzLNi-snWuW5XQ) 提取码: 67tx 放到HOME目录下再重新运行一次脚本.

    ```
    for file in MMXCore FastCore TextModel dvaaudiodsp libtbbmalloc.dylib libintl.dylib libirc.dylib ibintlc.dylib libtbb.dylib libiomp5.dylib; do
    find /Applications/Adobe* -type f -name $file | while read -r FILE; do
  7. RightFS revised this gist Nov 9, 2020. 1 changed file with 87 additions and 0 deletions.
    87 changes: 87 additions & 0 deletions AdobeAMDFix_CN.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,87 @@
    ## 修复Adobe全家桶在AMD上的崩溃问题

    ### 操作说明

    1. 用Adobe Creative Cloud安装好你需要的软件.

    2. 打开终端.

    3. 把下面一段脚本粘贴到终端里按下回车,如果让你输密码你就输入电脑的登录密码后回车.-----替换libiomp5并给文件打二进制补丁

    ```
    for file in MMXCore FastCore TextModel dvaaudiodsp libtbbmalloc.dylib libintl.dylib libirc.dylib ibintlc.dylib libtbb.dylib libiomp5.dylib; do
    find /Applications/Adobe* -type f -name $file | while read -r FILE; do
    sudo -v
    echo "found $FILE"
    [[ ! -f ${FILE}.back ]] && sudo cp -f $FILE ${FILE}.back || sudo cp -f ${FILE}.back $FILE
    echo $FILE | grep libiomp5 >/dev/null
    if [[ $? == 0 ]]; then
    dir=$(dirname "$FILE")
    [[ ! -f ${HOME}/libiomp5.dylib ]] && cd $HOME && curl -sO https://excellmedia.dl.sourceforge.net/project/badgui2/libs/mac64/libiomp5.dylib
    echo -n "replacing " && sudo cp -vf ${HOME}/libiomp5.dylib $dir && echo
    rm -f ${HOME}/libiomp5.dylib
    continue
    fi
    echo $FILE | grep TextModel >/dev/null
    [[ $? == 0 ]] && echo "emptying $FILE" && sudo echo -n >$FILE && continue
    echo "patching $FILE \n"
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' $FILE
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x4A\x00|\x90\x90\x90\x90\x56\xE8\x1A\x00|sg' $FILE
    done
    done
    ```

    4. 再把下面一段脚本粘贴到终端里按下回车,如果让你输密码你就输入电脑的登录密码后回车.----加个开机启动项,作用是设置MKL_DEBUG_CPU_TYPE全局环境变量

    ```
    [ ! -d $HOME/Library/LaunchAgents ] && mkdir $HOME/Library/LaunchAgents
    AGENT=$HOME/Library/LaunchAgents/environment.plist
    sysctl -n machdep.cpu.brand_string | grep FX >/dev/null 2>&1
    x=$(echo $(($? != 0 ? 5 : 4)))
    cat >$AGENT <<EOF
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Label</key>
    <string>mkl-debug</string>
    <key>ProgramArguments</key>
    <array>
    <string>sh</string>
    <string>-c</string>
    <string>launchctl setenv MKL_DEBUG_CPU_TYPE $x;</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    </dict>
    </plist>
    EOF
    launchctl load ${AGENT} >/dev/null 2>&1
    launchctl start ${AGENT} >/dev/null 2>&1
    ```

    5. 正常应该可以工作了,如果不行那就重启一下电脑,再不行把崩溃报告放上来我看下.

    ### 如何恢复

    1. 在终端里运行下面这些命令就可以恢复,不用重新安装.
    ```
    for file in MMXCore FastCore TextModel libiomp5.dylib; do
    find /Applications/Adobe* -type f -name $file | while read -r FILE; do
    sudo -v
    [[ -f ${FILE}.back ]] && echo "found backup $FILE" && sudo mv -f ${FILE}.back $FILE
    done
    done
    AGENT=$HOME/Library/LaunchAgents/environment.plist
    if [[ -f $AGENT ]]; then
    launchctl unload ${AGENT} >/dev/null 2>&1
    launchctl stop ${AGENT} >/dev/null 2>&1
    rm -rf $AGENT
    fi
    ```

    ### 注意

    - 测试过 Adobe (2020) Photopshop, LightRoom Classic, Illustrator, Premier Pro, After Effects Bridge, Indesign, XD.
    - 如果你重新安装过软件需要再执行步骤3给它们打上补丁.
  8. RightFS revised this gist Nov 9, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions AdobeAMDFix.md
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@
    3. Copy-paste the below command to your terminal and run it (enter password if asked).

    ```
    for file in MMXCore FastCore TextModel libiomp5.dylib; do
    for file in MMXCore FastCore TextModel dvaaudiodsp libtbbmalloc.dylib libintl.dylib libirc.dylib ibintlc.dylib libtbb.dylib libiomp5.dylib; do
    find /Applications/Adobe* -type f -name $file | while read -r FILE; do
    sudo -v
    echo "found $FILE"
    @@ -60,7 +60,7 @@ launchctl load ${AGENT} >/dev/null 2>&1
    launchctl start ${AGENT} >/dev/null 2>&1
    ```

    5. Reboot macOS.
    5. If not work, reboot macOS then retry.

    ### Revert Instructions

  9. @naveenkrdy naveenkrdy revised this gist Jul 6, 2020. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion AdobeAMDFix.md
    Original file line number Diff line number Diff line change
    @@ -26,6 +26,7 @@ for file in MMXCore FastCore TextModel libiomp5.dylib; do
    [[ $? == 0 ]] && echo "emptying $FILE" && sudo echo -n >$FILE && continue
    echo "patching $FILE \n"
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' $FILE
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x4A\x00|\x90\x90\x90\x90\x56\xE8\x1A\x00|sg' $FILE
    done
    done
    ```
    @@ -65,7 +66,7 @@ launchctl start ${AGENT} >/dev/null 2>&1

    1. To revert run the following command in terminal.
    ```
    for file in MMXCore FastCore TextModel; do
    for file in MMXCore FastCore TextModel libiomp5.dylib; do
    find /Applications/Adobe* -type f -name $file | while read -r FILE; do
    sudo -v
    [[ -f ${FILE}.back ]] && echo "found backup $FILE" && sudo mv -f ${FILE}.back $FILE
  10. @naveenkrdy naveenkrdy revised this gist Jul 6, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion AdobeAMDFix.md
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@
    3. Copy-paste the below command to your terminal and run it (enter password if asked).

    ```
    for file in MMXCore FastCore TextModel libiomp5; do
    for file in MMXCore FastCore TextModel libiomp5.dylib; do
    find /Applications/Adobe* -type f -name $file | while read -r FILE; do
    sudo -v
    echo "found $FILE"
  11. @naveenkrdy naveenkrdy revised this gist Jul 5, 2020. 1 changed file with 11 additions and 2 deletions.
    13 changes: 11 additions & 2 deletions AdobeAMDFix.md
    Original file line number Diff line number Diff line change
    @@ -9,13 +9,22 @@
    3. Copy-paste the below command to your terminal and run it (enter password if asked).

    ```
    for file in MMXCore FastCore TextModel; do
    for file in MMXCore FastCore TextModel libiomp5; do
    find /Applications/Adobe* -type f -name $file | while read -r FILE; do
    sudo -v
    echo "found $FILE"
    [[ ! -f ${FILE}.back ]] && sudo cp -f $FILE ${FILE}.back || sudo cp -f ${FILE}.back $FILE
    echo $FILE | grep libiomp5 >/dev/null
    if [[ $? == 0 ]]; then
    dir=$(dirname "$FILE")
    [[ ! -f ${HOME}/libiomp5.dylib ]] && cd $HOME && curl -sO https://excellmedia.dl.sourceforge.net/project/badgui2/libs/mac64/libiomp5.dylib
    echo -n "replacing " && sudo cp -vf ${HOME}/libiomp5.dylib $dir && echo
    rm -f ${HOME}/libiomp5.dylib
    continue
    fi
    echo $FILE | grep TextModel >/dev/null
    [[ $? == 0 ]] && sudo echo -n >$FILE && continue
    [[ $? == 0 ]] && echo "emptying $FILE" && sudo echo -n >$FILE && continue
    echo "patching $FILE \n"
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' $FILE
    done
    done
  12. @naveenkrdy naveenkrdy revised this gist Jun 28, 2020. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions AdobeAMDFix.md
    Original file line number Diff line number Diff line change
    @@ -54,6 +54,7 @@ launchctl start ${AGENT} >/dev/null 2>&1

    ### Revert Instructions

    1. To revert run the following command in terminal.
    ```
    for file in MMXCore FastCore TextModel; do
    find /Applications/Adobe* -type f -name $file | while read -r FILE; do
    @@ -69,6 +70,7 @@ if [[ -f $AGENT ]]; then
    rm -rf $AGENT
    fi
    ```
    2. Reboot macOS

    ### Notes

  13. @naveenkrdy naveenkrdy revised this gist Jun 28, 2020. 1 changed file with 65 additions and 65 deletions.
    130 changes: 65 additions & 65 deletions AdobeAMDFix.md
    Original file line number Diff line number Diff line change
    @@ -1,76 +1,76 @@
    ___ADOBE CRASH FIX BY XLNC___
    ## Adobe Crash Fix _XLNC_

    USAGE : Open terminal and run the below commands as required.
    ### Instructions

    NOTE: File path changes in each version release. So if the file is not found you can find the specified file manually and replace the path in the below commands.
    You can also use this command to find the location of a specific adobe file :
    eg:- if you want to search for MMXCore then run this command :
    find /Applications/Adobe* -type f -name "MMXCore" | sed 's/ /\\ /g'
    1. Install needed adobe apps from adobe creative cloud.

    Photoshop crash fix :-
    #PS2018
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x5A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Photoshop\ CC\ 2018/Adobe\ Photoshop\ CC\ 2018.app/Contents/Required/Plug-ins/Extensions/MMXCore.plugin/Contents/MacOS/MMXCore
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x5A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Photoshop\ CC\ 2018/Adobe\ Photoshop\ CC\ 2018.app/Contents/Required/Plug-ins/Extensions/FastCore.plugin/Contents/MacOS/FastCore
    #PS2019
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Photoshop\ CC\ 2019/Adobe\ Photoshop\ CC\ 2019.app/Contents/Required/Plug-ins/Extensions/MMXCore.plugin/Contents/MacOS/MMXCore
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Photoshop\ CC\ 2019/Adobe\ Photoshop\ CC\ 2019.app/Contents/Required/Plug-ins/Extensions/FastCore.plugin/Contents/MacOS/FastCore
    #PS2020
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Photoshop\ 2020/Adobe\ Photoshop\ 2020.app/Contents/PlugIns/Required/Extensions/MMXCore.plugin/Contents/MacOS/MMXCore
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Photoshop\ 2020/Adobe\ Photoshop\ 2020.app/Contents/PlugIns/Required/Extensions/FastCore.plugin/Contents/MacOS/FastCore
    2. Open Terminal.

    Photoshop Font crash fix :-
    #PS2018
    sudo rm -rf /Applications/Adobe\ Photoshop\ CC\ 2018/Adobe\ Photoshop\ CC\ 2018.app/Contents/Required/Deep_Font
    #PS2019
    sudo rm -rf /Applications/Adobe\ Photoshop\ CC\ 2019/Adobe\ Photoshop\ CC\ 2019.app/Contents/Required/Deep_Font
    #PS2020
    sudo rm -rf /Applications/Adobe\ Photoshop\ 2020/Adobe\ Photoshop\ 2020.app/Contents/Required/Deep_Font
    3. Copy-paste the below command to your terminal and run it (enter password if asked).

    Photoshop image open , drag-n-drop and image size change crash fix :-
    sudo rm -rf /Library/Application\ Support/Adobe/Plug-Ins/CC/File Formats/Camera\ Raw.plugin
    ~OR~
    Use Camera Raw 9.12.1
    http://download.adobe.com/pub/adobe/photoshop/cameraraw/mac/9.x/CameraRaw_9_12_1_mac.zip
    ~OR~
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x3A\x00|\x90\x90\x90\x90\x56\xE8\x1A\x00|sg' /Library/Application\ Support/Adobe/Plug-Ins/CC/File\ Formats/Camera\ Raw.plugin/Contents/MacOS/Camera\ Raw
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x5A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Library/Application\ Support/Adobe/Plug-Ins/CC/File\ Formats/Camera\ Raw.plugin/Contents/MacOS/Camera\ Raw
    ```
    for file in MMXCore FastCore TextModel; do
    find /Applications/Adobe* -type f -name $file | while read -r FILE; do
    sudo -v
    echo "found $FILE"
    [[ ! -f ${FILE}.back ]] && sudo cp -f $FILE ${FILE}.back || sudo cp -f ${FILE}.back $FILE
    echo $FILE | grep TextModel >/dev/null
    [[ $? == 0 ]] && sudo echo -n >$FILE && continue
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' $FILE
    done
    done
    ```

    Illustrator crash fix :-
    #AI2018
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x5A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Illustrator\ CC\ 2018/Adobe\ Illustrator\ CC\ 2018.app/Contents/MacOS/MMXCore.plugin/Contents/MacOS/MMXCore
    sudo rm -rf /Applications/Adobe\ Illustrator\ CC\ 2018/Adobe\ Illustrator\ CC\ 2018.app/Contents/Required/Plug-ins/Text\ Filters/TextModel.aip
    #AI2019
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Illustrator\ CC\ 2019/Adobe\ Illustrator.app/Contents/MacOS/MMXCore.plugin/Contents/MacOS/MMXCore
    sudo rm -rf /Applications/Adobe\ Illustrator\ CC\ 2019/Adobe\ Illustrator.app/Contents/Required/Plug-ins/Text\ Filters/TextModel.aip
    #AI2020
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Illustrator\ 2020/Adobe\ Illustrator.app/Contents/MacOS/MMXCore.plugin/Contents/MacOS/MMXCore
    sudo rm -rf /Applications/Adobe\ Illustrator\ 2020/Adobe\ Illustrator.app/Contents/Required/Plug-ins/Text\ Filters/TextModel.aip
    4. Now copy-paste the below command to terminal and run it (enter password if asked).

    #InDesign crash fix:-
    Run the app binary with MKL_DEBUG_CPU_TYPE=5 flag from terminal.
    Example:
    MKL_DEBUG_CPU_TYPE=5 /Applications/Adobe\ InDesign\ 2020/Adobe\ InDesign\ 2020.app/Contents/MacOS/Adobe\ InDesign\ 2020
    NOTE:
    For FX and lower CPU's , you will need to use MKL_DEBUG_CPU_TYPE=4 flag.
    ```
    [ ! -d $HOME/Library/LaunchAgents ] && mkdir $HOME/Library/LaunchAgents
    AGENT=$HOME/Library/LaunchAgents/environment.plist
    sysctl -n machdep.cpu.brand_string | grep FX >/dev/null 2>&1
    x=$(echo $(($? != 0 ? 5 : 4)))
    cat >$AGENT <<EOF
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Label</key>
    <string>mkl-debug</string>
    <key>ProgramArguments</key>
    <array>
    <string>sh</string>
    <string>-c</string>
    <string>launchctl setenv MKL_DEBUG_CPU_TYPE $x;</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    </dict>
    </plist>
    EOF
    launchctl load ${AGENT} >/dev/null 2>&1
    launchctl start ${AGENT} >/dev/null 2>&1
    ```

    Bridge crash fix :-
    #BR2018
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Bridge\ CC\ 2018/Adobe\ Bridge\ CC\ 2018.app/Contents/Plug-ins/MMXCore.plugin/Contents/MacOS/MMXCore
    #BR2019
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Bridge\ CC\ 2019/Adobe\ Bridge\ 2019.app/Contents/Plug-Ins/MMXCore.plugin/Contents/MacOS/MMXCore
    #BR2020
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Bridge\ 2020/Adobe\ Bridge\ 2020.app/Contents/Plug-Ins/MMXCore.plugin/Contents/MacOS/MMXCore
    5. Reboot macOS.

    After Effects crash fix :-
    sudo rm -rf /Library/Application\ Support/Adobe/Plug-Ins/CC/File Formats/Camera\ Raw.plugin
    ~OR~
    Use Camera Raw 9.12.1
    http://download.adobe.com/pub/adobe/photoshop/cameraraw/mac/9.x/CameraRaw_9_12_1_mac.zip
    ~OR~
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x3A\x00|\x90\x90\x90\x90\x56\xE8\x1A\x00|sg' /Library/Application\ Support/Adobe/Plug-Ins/CC/File\ Formats/Camera\ Raw.plugin/Contents/MacOS/Camera\ Raw
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x5A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Library/Application\ Support/Adobe/Plug-Ins/CC/File\ Formats/Camera\ Raw.plugin/Contents/MacOS/Camera\ Raw
    ### Revert Instructions

    Lightroom Classic crash fix :-
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x5A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Lightroom\ Classic/Adobe\ Lightroom\ Classic.app/Contents/Frameworks/CameraRaw.lrtoolkit/CameraRaw
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x3A\x00|\x90\x90\x90\x90\x56\xE8\x1A\x00|sg' /Applications/Adobe\ Lightroom\ Classic/Adobe\ Lightroom\ Classic.app/Contents/Frameworks/CameraRaw.lrtoolkit/CameraRaw
    ```
    for file in MMXCore FastCore TextModel; do
    find /Applications/Adobe* -type f -name $file | while read -r FILE; do
    sudo -v
    [[ -f ${FILE}.back ]] && echo "found backup $FILE" && sudo mv -f ${FILE}.back $FILE
    done
    done
    AGENT=$HOME/Library/LaunchAgents/environment.plist
    if [[ -f $AGENT ]]; then
    launchctl unload ${AGENT} >/dev/null 2>&1
    launchctl stop ${AGENT} >/dev/null 2>&1
    rm -rf $AGENT
    fi
    ```

    ### Notes

    - Tested Adobe (2020) Photopshop, LightRoom Classic, Illustrator, Premier Pro, After Effects Bridge, Indesign, XD.
    - If you re-install any adobe app then you will need redo the STEP-3 again.
  14. @naveenkrdy naveenkrdy created this gist Jun 28, 2020.
    76 changes: 76 additions & 0 deletions AdobeAMDFix.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,76 @@
    ___ADOBE CRASH FIX BY XLNC___

    USAGE : Open terminal and run the below commands as required.

    NOTE: File path changes in each version release. So if the file is not found you can find the specified file manually and replace the path in the below commands.
    You can also use this command to find the location of a specific adobe file :
    eg:- if you want to search for MMXCore then run this command :
    find /Applications/Adobe* -type f -name "MMXCore" | sed 's/ /\\ /g'

    Photoshop crash fix :-
    #PS2018
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x5A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Photoshop\ CC\ 2018/Adobe\ Photoshop\ CC\ 2018.app/Contents/Required/Plug-ins/Extensions/MMXCore.plugin/Contents/MacOS/MMXCore
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x5A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Photoshop\ CC\ 2018/Adobe\ Photoshop\ CC\ 2018.app/Contents/Required/Plug-ins/Extensions/FastCore.plugin/Contents/MacOS/FastCore
    #PS2019
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Photoshop\ CC\ 2019/Adobe\ Photoshop\ CC\ 2019.app/Contents/Required/Plug-ins/Extensions/MMXCore.plugin/Contents/MacOS/MMXCore
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Photoshop\ CC\ 2019/Adobe\ Photoshop\ CC\ 2019.app/Contents/Required/Plug-ins/Extensions/FastCore.plugin/Contents/MacOS/FastCore
    #PS2020
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Photoshop\ 2020/Adobe\ Photoshop\ 2020.app/Contents/PlugIns/Required/Extensions/MMXCore.plugin/Contents/MacOS/MMXCore
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Photoshop\ 2020/Adobe\ Photoshop\ 2020.app/Contents/PlugIns/Required/Extensions/FastCore.plugin/Contents/MacOS/FastCore

    Photoshop Font crash fix :-
    #PS2018
    sudo rm -rf /Applications/Adobe\ Photoshop\ CC\ 2018/Adobe\ Photoshop\ CC\ 2018.app/Contents/Required/Deep_Font
    #PS2019
    sudo rm -rf /Applications/Adobe\ Photoshop\ CC\ 2019/Adobe\ Photoshop\ CC\ 2019.app/Contents/Required/Deep_Font
    #PS2020
    sudo rm -rf /Applications/Adobe\ Photoshop\ 2020/Adobe\ Photoshop\ 2020.app/Contents/Required/Deep_Font

    Photoshop image open , drag-n-drop and image size change crash fix :-
    sudo rm -rf /Library/Application\ Support/Adobe/Plug-Ins/CC/File Formats/Camera\ Raw.plugin
    ~OR~
    Use Camera Raw 9.12.1
    http://download.adobe.com/pub/adobe/photoshop/cameraraw/mac/9.x/CameraRaw_9_12_1_mac.zip
    ~OR~
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x3A\x00|\x90\x90\x90\x90\x56\xE8\x1A\x00|sg' /Library/Application\ Support/Adobe/Plug-Ins/CC/File\ Formats/Camera\ Raw.plugin/Contents/MacOS/Camera\ Raw
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x5A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Library/Application\ Support/Adobe/Plug-Ins/CC/File\ Formats/Camera\ Raw.plugin/Contents/MacOS/Camera\ Raw

    Illustrator crash fix :-
    #AI2018
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x5A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Illustrator\ CC\ 2018/Adobe\ Illustrator\ CC\ 2018.app/Contents/MacOS/MMXCore.plugin/Contents/MacOS/MMXCore
    sudo rm -rf /Applications/Adobe\ Illustrator\ CC\ 2018/Adobe\ Illustrator\ CC\ 2018.app/Contents/Required/Plug-ins/Text\ Filters/TextModel.aip
    #AI2019
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Illustrator\ CC\ 2019/Adobe\ Illustrator.app/Contents/MacOS/MMXCore.plugin/Contents/MacOS/MMXCore
    sudo rm -rf /Applications/Adobe\ Illustrator\ CC\ 2019/Adobe\ Illustrator.app/Contents/Required/Plug-ins/Text\ Filters/TextModel.aip
    #AI2020
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Illustrator\ 2020/Adobe\ Illustrator.app/Contents/MacOS/MMXCore.plugin/Contents/MacOS/MMXCore
    sudo rm -rf /Applications/Adobe\ Illustrator\ 2020/Adobe\ Illustrator.app/Contents/Required/Plug-ins/Text\ Filters/TextModel.aip

    #InDesign crash fix:-
    Run the app binary with MKL_DEBUG_CPU_TYPE=5 flag from terminal.
    Example:
    MKL_DEBUG_CPU_TYPE=5 /Applications/Adobe\ InDesign\ 2020/Adobe\ InDesign\ 2020.app/Contents/MacOS/Adobe\ InDesign\ 2020
    NOTE:
    For FX and lower CPU's , you will need to use MKL_DEBUG_CPU_TYPE=4 flag.

    Bridge crash fix :-
    #BR2018
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Bridge\ CC\ 2018/Adobe\ Bridge\ CC\ 2018.app/Contents/Plug-ins/MMXCore.plugin/Contents/MacOS/MMXCore
    #BR2019
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Bridge\ CC\ 2019/Adobe\ Bridge\ 2019.app/Contents/Plug-Ins/MMXCore.plugin/Contents/MacOS/MMXCore
    #BR2020
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Bridge\ 2020/Adobe\ Bridge\ 2020.app/Contents/Plug-Ins/MMXCore.plugin/Contents/MacOS/MMXCore

    After Effects crash fix :-
    sudo rm -rf /Library/Application\ Support/Adobe/Plug-Ins/CC/File Formats/Camera\ Raw.plugin
    ~OR~
    Use Camera Raw 9.12.1
    http://download.adobe.com/pub/adobe/photoshop/cameraraw/mac/9.x/CameraRaw_9_12_1_mac.zip
    ~OR~
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x3A\x00|\x90\x90\x90\x90\x56\xE8\x1A\x00|sg' /Library/Application\ Support/Adobe/Plug-Ins/CC/File\ Formats/Camera\ Raw.plugin/Contents/MacOS/Camera\ Raw
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x5A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Library/Application\ Support/Adobe/Plug-Ins/CC/File\ Formats/Camera\ Raw.plugin/Contents/MacOS/Camera\ Raw

    Lightroom Classic crash fix :-
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x5A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' /Applications/Adobe\ Lightroom\ Classic/Adobe\ Lightroom\ Classic.app/Contents/Frameworks/CameraRaw.lrtoolkit/CameraRaw
    sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x3A\x00|\x90\x90\x90\x90\x56\xE8\x1A\x00|sg' /Applications/Adobe\ Lightroom\ Classic/Adobe\ Lightroom\ Classic.app/Contents/Frameworks/CameraRaw.lrtoolkit/CameraRaw