Adobe Photoshop 2021 crashed in AMD hackintosh

Shaneee

The AMD Guy
Staff member
Administrator
Joined
Mar 13, 2020
Messages
1,883
PS 2021 works with this. Copy and paste into Terminal,

Code:
for file in MMXCore FastCore TextModel libiomp5.dylib libtbb.dylib libtbbmalloc.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
 

haolevu

New member
Joined
Dec 12, 2020
Messages
1
PS 2021 works with this. Copy and paste into Terminal,

Code:
for file in MMXCore FastCore TextModel libiomp5.dylib libtbb.dylib libtbbmalloc.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
thank you
I hope liquify and object selection tool work on next time :(
 

gearwhore

New member
Joined
Dec 3, 2020
Messages
9
Still crashing for me with the above fix:


Crashed Thread: 56 UI Worker 1

Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Illegal instruction: 4
Termination Reason: Namespace SIGNAL, Code 0x4
Terminating Process: exc handler [1363]
 
Last edited:

RyzeCooker

Donator
Donator
Joined
May 3, 2020
Messages
249
Yeah, AMDfriend needs some work. It can both analyze and report succesful patching yet complain in the middle of the process it can't find the file or something.

Code:
sudo amdfriend --in-place --sign /Applications/Adobe\ Photoshop\ 2022.app/Contents/Frameworks/libmkl_core.dylib
Analyzing and patching file: /Applications/Adobe Photoshop 2022.app/Contents/Frameworks/libmkl_core.dylib
Error while opening /Applications/Adobe Photoshop 2022.app/Contents/Frameworks/libmkl_core.dylib: ENOENT: no such file or directory, open '/Applications/Adobe Photoshop 2022.app/Contents/Frameworks/libmkl_core.dylib'
Finished processing file: /Applications/Adobe Photoshop 2022.app/Contents/Frameworks/libmkl_core.dylib

My Photoshop 2020 works fine so I'm sticking to that. I think it has to do with the missing \ between Photoshop and the year, so a script b0rk. May need to check if there's a newer version.
 

Shaneee

The AMD Guy
Staff member
Administrator
Joined
Mar 13, 2020
Messages
1,883
AMDFriend worked without issue for me using 23.3.0

Bash:
sudo amdfriend --in-place --backup --sign --directories /Applications/Adobe\ Photoshop\ 2022/Adobe\ Photoshop\ 2022.app/Contents
 

AMDPUSH

Donator
Donator
Joined
May 2, 2020
Messages
211
AMDFriend worked without issue for me using 23.3.0

Bash:
sudo amdfriend --in-place --backup --sign --directories /Applications/Adobe\ Photoshop\ 2022/Adobe\ Photoshop\ 2022.app/Contents
Hi, have you tested PremierePro 2022v 22.3 ?
 

RyzeCooker

Donator
Donator
Joined
May 3, 2020
Messages
249
AMDFriend worked without issue for me using 23.3.0

Bash:
sudo amdfriend --in-place --backup --sign --directories /Applications/Adobe\ Photoshop\ 2022/Adobe\ Photoshop\ 2022.app/Contents

Hm, I had already uninstalled it but wanted to try again, so reinstalled the latest version. I did a dry run before and tried to patch the libraries it found individually, but ran into that error. Your command is far more efficient. It seems Neural Filters also work? (At least SuperZoom when I tried it) o_O
 
Top Bottom