-
Install needed adobe apps from adobe creative cloud.
-
Open Terminal.
-
Copy-paste the below command to your terminal and run it (enter password when asked).
files_list=(MMXCore FastCore TextModel libiomp5.dylib)
lib_dir="${HOME}/Documents/AdobeLibs"
lib1_file="${lib_dir}/libiomp5.dylib"
lib1_link="https://raw.githubusercontent.com/naveenkrdy/Misc/master/Libs/libiomp5.dylib"
for file in $files_list; do
find /Applications/Adobe* -type f -name $file | while read -r curr_file; do
name=$(basename $curr_file)
sw_vers -productVersion | grep "11" >/dev/null 2>&1
[[ $? == 0 ]] && [[ $name =~ ^(MMXCore|FastCore)$ ]] && continue
echo "found $curr_file"
sudo -v
[[ ! -f ${curr_file}.back ]] && sudo cp -f $curr_file ${curr_file}.back || sudo cp -f ${curr_file}.back $curr_file
if [[ $name == "libiomp5.dylib" ]]; then
[[ ! -d $lib_dir ]] && mkdir $lib_dir
[[ ! -f $lib1_file ]] && cd $lib_dir && curl -sO $lib1_link
adobelib_dir=$(dirname "$curr_file")
echo -n "replacing " && sudo cp -vf $lib1_file $adobelib_dir
elif [[ $name == "TextModel" ]]; then
echo "emptying $curr_file"
sudo echo -n >$curr_file
else
echo "patching $curr_file"
sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x6A\x00|\x90\x90\x90\x90\x56\xE8\x3A\x00|sg' $curr_file
sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x4A\x00|\x90\x90\x90\x90\x56\xE8\x1A\x00|sg' $curr_file
fi
done
done
- Now copy-paste the below command to terminal and run it (enter password if asked).
agent_dir="${HOME}/Library/LaunchAgents"
env_file="${agent_dir}/environment.plist"
lib_dir="${HOME}/Documents/AdobeLibs"
lib2_file="${lib_dir}/libfakeintel.dylib"
lib2_link="https://raw.githubusercontent.com/naveenkrdy/Misc/master/Libs/libfakeintel.dylib"
sw_vers -productVersion | grep "11" >/dev/null 2>&1
if [[ $? == 0 ]]; then
[[ ! -d $lib_dir ]] && mkdir $lib_dir
[[ ! -f $lib2_file ]] && cd $lib_dir && curl -sO $lib2_link
env="launchctl setenv DYLD_INSERT_LIBRARIES $lib2_file"
else
mkl_value=$(
sysctl -n machdep.cpu.brand_string | grep FX >/dev/null 2>&1
echo $(($? != 0 ? 5 : 4))
)
env="launchctl setenv MKL_DEBUG_CPU_TYPE $mkl_value"
fi
[[ ! -d $agent_dir ]] && mkdir $agent_dir
cat >$env_file <<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>$env;</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
EOF
launchctl load ${AGENT} >/dev/null 2>&1
launchctl start ${AGENT} >/dev/null 2>&1
- Reboot macOS.
- To revert run the following command as required.
- To revert step-3
files_list=(MMXCore FastCore TextModel libiomp5.dylib)
for file in $files_list; do
find /Applications/Adobe* -type f -name $file | while read -r curr_file; do
sudo -v
[[ -f ${curr_file}.back ]] && echo "Restoring backup $curr_file"&& sudo mv -f ${curr_file}.back $curr_file
done
done
- To revert step-4
agent_dir="${HOME}/Library/LaunchAgents"
env_file="${agent_dir}/environment.plist"
if [[ -f $env_file ]]; then
echo "Deleting $env_file"
launchctl unload ${env_file} >/dev/null 2>&1
launchctl stop ${env_file} >/dev/null 2>&1
rm -rf $env_file
fi
- Reboot macOS
Does not work for Acrobat pro, any way to fix?
Time Awake Since Boot: 610 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000888
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [1641]
VM Regions Near 0x888:
-->
__TEXT 10f9a8000-10f9ac000 [ 16K] r-x/r-x SM=COW /Applications/Adobe Acrobat DC/Adobe Acrobat.app/Contents/MacOS/AdobeAcrobat
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_pthread.dylib 0x00007fff2032bd86 pthread_mutex_lock + 4
1 com.adobe.Acrobat.framework 0x000000010fa65324 0x10f9df000 + 549668
2 com.adobe.Acrobat.framework 0x000000011160c3fd 0x10f9df000 + 29545469
3 com.adobe.Acrobat.framework 0x000000011160bc96 0x10f9df000 + 29543574
4 com.adobe.Acrobat.framework 0x000000011160be0c 0x10f9df000 + 29543948
5 com.adobe.Acrobat.framework 0x00000001103849df 0x10f9df000 + 10115551
6 com.adobe.Acrobat.framework 0x0000000110384124 0x10f9df000 + 10113316
7 com.adobe.Acrobat.framework 0x0000000110939107 0x10f9df000 + 16097543
8 com.adobe.Acrobat.framework 0x000000010fa334aa 0x10f9df000 + 345258
9 com.adobe.Acrobat.framework 0x000000010fa5e5a0 0x10f9df000 + 521632
10 com.adobe.Acrobat.framework 0x000000010fcc5b38 0x10f9df000 + 3042104
11 com.adobe.Acrobat.framework 0x000000010fcbf149 0x10f9df000 + 3014985
12 com.adobe.Acrobat.framework 0x000000010fcc0163 0x10f9df000 + 3019107
13 com.adobe.Acrobat.framework 0x000000011024de67 0x10f9df000 + 8842855
14 com.adobe.Acrobat.framework 0x000000011024571a 0x10f9df000 + 8808218
15 com.adobe.Acrobat.framework 0x000000010f9ea893 0x10f9df000 + 47251
16 com.adobe.Acrobat.framework 0x000000010f9e9e73 0x10f9df000 + 44659
17 com.adobe.Acrobat.framework 0x000000010f9e98e3 0x10f9df000 + 43235
18 com.apple.CoreFoundation 0x00007fff2041e6cf CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12
19 com.apple.CoreFoundation 0x00007fff204ba0c5 ___CFXRegistrationPost_block_invoke + 49
20 com.apple.CoreFoundation 0x00007fff204ba03f _CFXRegistrationPost + 496
21 com.apple.CoreFoundation 0x00007fff203ef984 _CFXNotificationPost + 795
22 com.apple.Foundation 0x00007fff2108bbb8 -[NSNotificationCenter postNotificationName:object:userInfo:] + 59
23 com.apple.AppKit 0x00007fff22b63440 -[NSApplication _postDidFinishNotification] + 305
24 com.apple.AppKit 0x00007fff22b63192 -[NSApplication _sendFinishLaunchingNotification] + 208
25 com.apple.AppKit 0x00007fff22b60331 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 541
26 com.apple.AppKit 0x00007fff22b5ff87 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 665
27 com.apple.Foundation 0x00007fff210b7306 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 308
28 com.apple.Foundation 0x00007fff210b7176 _NSAppleEventManagerGenericHandler + 80
29 com.apple.AE 0x00007fff261677f3 0x7fff2615b000 + 51187
30 com.apple.AE 0x00007fff26166f0e 0x7fff2615b000 + 48910
31 com.apple.AE 0x00007fff2615fc23 aeProcessAppleEvent + 448
32 com.apple.HIToolbox 0x00007fff288e3012 AEProcessAppleEvent + 54
33 com.apple.AppKit 0x00007fff22b5a610 _DPSNextEvent + 2046
34 com.apple.AppKit 0x00007fff22b58945 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1364
35 com.apple.AppKit 0x00007fff22b4ac69 -[NSApplication run] + 586
36 com.adobe.Acrobat.framework 0x000000010f9e8635 0x10f9df000 + 38453
37 com.adobe.Acrobat.framework 0x000000010f9e6fb3 RunAcrobat + 653
38 com.adobe.Acrobat.Pro 0x000000010f9abddc main + 196
39 libdyld.dylib 0x00007fff2034bf3d start + 1
Thread 1:
0 libsystem_pthread.dylib 0x00007fff2032c420 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x00007fff2032c420 start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x00007fff2032c420 start_wqthread + 0
Thread 4:
0 libsystem_pthread.dylib 0x00007fff2032c420 start_wqthread + 0
Thread 5:
0 libsystem_kernel.dylib 0x00007fff202fdcde __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff20330e49 _pthread_cond_wait + 1298
2 com.adobe.AGM 0x0000000114da97f2 AGMMessageQueueImpl::Pull() + 68
3 com.adobe.AGM 0x0000000114da9733 AGMWorkQueueTask::operator()() + 73
4 com.adobe.AGM 0x0000000115102c84 boost::(anonymous namespace)::thread_proxy(void*) + 105
5 libsystem_pthread.dylib 0x00007fff203308fc _pthread_start + 224
6 libsystem_pthread.dylib 0x00007fff2032c443 thread_start + 15
Thread 6:
0 libsystem_kernel.dylib 0x00007fff202fdcde __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff20330e49 _pthread_cond_wait + 1298
2 com.adobe.AGM 0x0000000114da97f2 AGMMessageQueueImpl::Pull() + 68
3 com.adobe.AGM 0x0000000114da9733 AGMWorkQueueTask::operator()() + 73
4 com.adobe.AGM 0x0000000115102c84 boost::(anonymous namespace)::thread_proxy(void*) + 105
5 libsystem_pthread.dylib 0x00007fff203308fc _pthread_start + 224
6 libsystem_pthread.dylib 0x00007fff2032c443 thread_start + 15
Thread 7:
0 libsystem_kernel.dylib 0x00007fff202fdcde __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff20330e49 _pthread_cond_wait + 1298
2 com.adobe.AGM 0x0000000114da97f2 AGMMessageQueueImpl::Pull() + 68
3 com.adobe.AGM 0x0000000114da9733 AGMWorkQueueTask::operator()() + 73
4 com.adobe.AGM 0x0000000115102c84 boost::(anonymous namespace)::thread_proxy(void*) + 105
5 libsystem_pthread.dylib 0x00007fff203308fc _pthread_start + 224
6 libsystem_pthread.dylib 0x00007fff2032c443 thread_start + 15
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000888 rbx: 0x0000000000000888 rcx: 0xb129266107290035 rdx: 0x0000000000000004
rdi: 0x0000000000000888 rsi: 0x0000000000000004 rbp: 0x00007ffee02557b0 rsp: 0x00007ffee02557b0
r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x00007fff800a1600 r11: 0x00007fff21128d82
r12: 0x0000000000000000 r13: 0x0000600000a28550 r14: 0x0000000000000000 r15: 0x0000000000000000
rip: 0x00007fff2032bd86 rfl: 0x0000000000010202 cr2: 0x0000000000000888
Logical CPU: 10
Error Code: 0x00000004 (no mapping for user data read)
Trap Number: 14
Thread 0 instruction stream:
48 89 f3 49 89 fe 48 8d-3d 31 ef 2f 60 be 00 00 H..I..H.=1./
... 05 00 e8 3d 7e 00 00 b8-00 01 00 00 48 8d 0d 27 ...=~.......H..' ef 2f 60 48 83 3c c1 00-74 12 48 ff c0 48 3d 00 ./
H.<..t.H..H=.03 00 00 75 ee bb 23 00-00 00 eb 0c 48 f7 d3 48 ...u..#.....H..H
89 1c c1 49 89 06 31 db-48 8d 3d ef ee 2f 60 e8 ...I..1.H.=../`.
06 7e 00 00 89 d8 5b 41-5e 5d c3 90 55 48 89 e5 .~....[A^]..UH..
[48]81 3f 5a 54 55 4d 75-73 8b 47 0c 89 c1 81 e1 H.?ZTUMus.G..... <==
c0 01 00 00 83 f9 40 74-6b 0f ba e0 0e 72 6d 48 ......@tk....rmH
8d 57 27 48 83 e2 f8 48-8b 0a f6 c1 02 75 45 4c .W'H...H.....uEL
8d 57 1f 49 83 e2 f8 65-4c 8b 04 25 f8 ff ff ff .W.I...eL..%....
49 b9 00 00 00 00 ff ff-ff ff 48 89 ce f6 c1 02 I.........H.....
75 22 4c 21 ce 89 c8 48-09 f0 83 c9 02 48 09 f1 u"L!...H.....H..
Thread 0 last branch register state not available.