Skip to content

Instantly share code, notes, and snippets.

@XLNCs
Last active March 21, 2024 15:33
Show Gist options
  • Save XLNCs/86d7a391e46f85a04d28db171656b458 to your computer and use it in GitHub Desktop.
Save XLNCs/86d7a391e46f85a04d28db171656b458 to your computer and use it in GitHub Desktop.
To fix adobe products crashes on AMD hackintosh
MOVED HERE:
https://gist.github.com/naveenkrdy/26760ac5135deed6d0bb8902f6ceb6bd
@mazen-khalil1
Copy link

Anything for lightroom CC not Classic ?

@polymax2016
Copy link

iiskuzii, I have a 3700x and red devil 5700xt also. Running the following one by one in terminal worked for me.

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

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/Versions/A/CameraRaw

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/Versions/A/CameraRaw

sudo codesign -fs - /Applications/Adobe\ Lightroom\ Classic/Adobe\ Lightroom\ Classic.app

@acoffeeworld
Copy link

iiskuzii,我也有3700x和紅色魔鬼5700xt。在終端中逐一運行以下內容對我來說很有效。

sudo perl -i -pe's | \ x90 \ x90 \ x90 \ x90 \ x56 \ xE8 \ x5A \ x00 | \ x90 \ x90 \ x90 \ x90 \ x56 \ xE8 \ x3A \ x00 | sg'/ Applications / Adob​​e \ Lightroom \ Classic / Adob​​e \ 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 / Adob​​e \ Lightroom \ Classic / Adob​​e \ 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 / Adob​​e \ Lightroom \ Classic / Adob​​e \ Lightroom \ Classic.app/Contents/Frameworks/CameraRaw.lrtoolkit/Versions/A/CameraRaw

sudo perl -i -pe's | \ x90 \ x90 \ x90 \ x90 \ x56 \ xE8 \ x5A \ x00 | \ x90 \ x90 \ x90 \ x90 \ x56 \ xE8 \ x3A \ x00 | sg'/ Applications / Adob​​e \ Lightroom \ Classic / Adob​​e \ Lightroom \ Classic.app/Contents/Frameworks/CameraRaw.lrtoolkit/Versions/A/CameraRaw

sudo codesign -fs-/ Applications / Adob​​e \ Lightroom \ Classic / Adob​​e \ Lightroom \ Classic.app

Hello Bro.It works on my r7 2700 with MacOS 10.15.5 . B-T-Y, I want to know how you run PS2020 .The Photoshop patch only allowed me to open the software, but it crashed after I imported the images

@polymax2016
Copy link

polymax2016 commented Jun 11, 2020

Yes I'm running PS2020. Version 21.1.2. Catalina 10.15.4
It's working fine for me opening images back and forth with Lightroom

@rafaeldrincon
Copy link

Yes I'm running PS2020. Version 21.1.2. Catalina 10.15.4
It's working fine for me opening images back and forth with Lightroom

Hey Guys... Having similar issues here. X570 Aorus Ultra 3900X OS X 10.15.5 64G RAM Rig.
LR Running Fine so far, but PS2020 when I try to use content aware fill. Opening RAW images or editing from LR works fine.

I hope someone will find a solution soon :)

Thanks in advance for any suggestions.

@kwvg
Copy link

kwvg commented Jun 14, 2020

Worked on a bash script that should automate the patching process... AMDAdobePatch.sh

Warning: Might break activation in applications like Bridge CC due to subsequent failed integrity checks when querying Adobe activation servers

Copy link

ghost commented Jun 14, 2020

This worked for After Effects.

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

sudo codesign --remove-signature /Applications/Adobe\ After\ Effects\ 2020/Adobe\ After\ Effects\ 2020.app

Copy link

ghost commented Jun 15, 2020

@alvarini
Copy link

PH2020 crashing too with Color Region selection. Patch applied but not running with MKL_DEBUG_CPU_TYPE=5

@LLf13
Copy link

LLf13 commented Jun 15, 2020

PH2020 crashing too with Color Region selection. Patch applied but not running with MKL_DEBUG_CPU_TYPE=5

Same for me. What I found out is that if you want to adjust for example hue/saturation, you can uncheck the preview box and you will be able to apply these changes. This might work for the other filters as well, however I did not test it yet.

MKL_DEBUG_CPU_TYPE=5 sadly is no option for me because I get a program error if I open a file.

I really hope there will be a fix in the near future.

@yurkins
Copy link

yurkins commented Jun 23, 2020

Photoshop Font crash fix :-
#PS2020 21.2.0
sudo rm -rf /Applications/Adobe\ Photoshop\ 2020/Adobe\ Photoshop\ 2020.app/Contents/Required/Sensei_Models/Deep_Font

@surajmandalcell
Copy link

Photoshop Font crash fix :-
#PS2020 21.2.0
sudo rm -rf /Applications/Adobe\ Photoshop\ 2020/Adobe\ Photoshop\ 2020.app/Contents/Required/Sensei_Models/Deep_Font

Why are fonts crashing ps and others?

@hossamtarek
Copy link

What about the new Camera Raw in PS2020 21.2.0 ? Does it work on ryzen ?

@BRNKR
Copy link

BRNKR commented Jun 26, 2020

lightroom crashes when trying to use person/face detection. after that it crashes on each start. you cannot leave the person tab.

@XLNCs
Copy link
Author

XLNCs commented Jun 28, 2020

Gist is now moved here :
https://gist.github.com/naveenkrdy/26760ac5135deed6d0bb8902f6ceb6bd

please continue the further discussions there.

@rarturo-91
Copy link

Hi, i have a r5 2600 and a rx5700, im having trouble getting lightroom classic 9.3 to even open and i used Adobe Zii 2020 5.2.2.
any help, thanks in advance.

@ngocrebel
Copy link

Hi, i have a r5 2600 and a rx5700, im having trouble getting lightroom classic 9.3 to even open and i used Adobe Zii 2020 5.2.2.
any help, thanks in advance.

Did you ty to launch LR before crack it with Zii? Zii 5.2.2 corrupt LR 9.3. Only option now is LR 9.2.1/Zii 5.2.0

@sharklatan
Copy link

sharklatan commented Jul 23, 2020

Work 😊

Adobe Photoshop 2020 v21.2

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

Screen Shot 2020-07-23 at 01 57 01

@Aevant
Copy link

Aevant commented Oct 25, 2020

HI.
The Photoshop 2021 crashes every time after applying the terminal code by changing them from 2020 to 2021.
Help.

Thanks

@will11378
Copy link

Hi
The photoshop works fine but if I try using liquify and it crash any one know how to fix it?

Thanks

@priyabratary
Copy link

is there any fix for the 2021 ( ver 22.0) ?

@steveilyo
Copy link

steveilyo commented Oct 29, 2020

Version Photoshop 2021 cashes with:

Logical CPU: 0
Error Code: 0x00000006 (no mapping for user data write)
Trap Number: 14

Not sure how to fix this...

@wellcarvalho1976
Copy link

I have same problem X__x

Photoshop 2021 22.0
changing font, liquify or neural filter --> Close the app immediately

I've done all the procedures above and only Photoshop keeps the error

@serson33
Copy link

did anyone found the solution for the 3D camera tracker in after effects?

@Artmd
Copy link

Artmd commented Apr 1, 2021

Yet another solution to the environment variable problem. Found it based on this article:

Create a launch agent which sets a global environment variable at boot.
The following snippet enables MKL_DEBUG_CPU_TYPE=5 for ALL apps started after this launch agent has started.

For single user install, paste this in the terminal:

AGENT=~/Library/LaunchAgents/environment.plist

cat << EOF > ${AGENT}
<?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 5;</string>

 </array>
 <key>RunAtLoad</key>
 <true/>
</dict>
</plist>
EOF

launchctl load ${AGENT}
launchctl start ${AGENT}

NOTE:

  • If you want to install it for all users, omit the tilde in the AGENT variable.
  • Alter the number value (5) to a lower number for older AMD architectures (e.g. MKL_DEBUG_CPU_TYPE 4 for FX)
  • You have to wait a few seconds after the Finder has started in order for this to take effect. Maybe anyone finds a way to have the lauch agent started earlier.

Hello! I can't apply this script, what could be the problem ? I don't have a warp stabilizer running in premiere, an amd razen 7 2700 processor. I installed Adobe Premiere Pro 2021 v15.0
Снимок экрана 2021-04-01 в 08 55 33

@marlonassuncao
Copy link

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

@fabiosun
Copy link

fabiosun commented Oct 4, 2021

I have same problem X__x

Photoshop 2021 22.0 changing font, liquify or neural filter --> Close the app immediately

I've done all the procedures above and only Photoshop keeps the error

i would try to read here ..no need to delete or patching many things:

https://www.macos86.it/topic/4822-photoshop-after-effects-cc-2021-premiere-pro-cc-2021-154-amd-hackintosh-fix/#comments
Also warp stabilizer ,camera Track, MorphCut effects in Premiere Pro/After Effects work fine ;)

By the way it works perfectly with latest ADOBE CC suite also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment