Copy link to clipboard
Copied
Hi.
I'm experiencing nasty bug with Content Aware Remove in ACR 15.x on older CPUs.
In Lightroom Classic ACR (builtin) crashes with "illegal instruction" exception (0xC000001D) due to use of SSE4.2 instruction which my CPU doesn't have.
If started from Bridge - ACR crashes with the "illegal instruction" exception (0xC000001D) at the same code, and then with the "stack overflow" exception (0xC00000FD) and Bridge dies.
As I can see ACR have different code paths for various CPU features present, at least code pathes for SSE2 and SSE4.2 are present.
Everything else apart from Content Aware Remove works just fine.
CPU is pretty capable with 6 cores at 4.0 GHz, it's just an AMD CPU and it have SSE3 and SSE4a at maximum, no SSE4.2
Is it possible to make requirement of SSE4.2 optional as it was all the way before release of ACR 15?
It's just a matter of one compiler switch after all...
I can provide technical details on where exactly ACR crashes if this will help.
This all happens under Windows 10 22H2 x64.
In ACR 15.1.1 it crashes at RVA=0x28AE0 on code:
000000004FAF8AE0 | 66:0F383105 6C558E07 | pmovzxbd xmm0,dword ptr ds:[0x573DE055] | |
000000004FAF8AE9 | 66:0FEFC9 | pxor xmm1,xmm1 | |
000000004FAF8AED | 66:0F76C8 | pcmpeqd xmm1,xmm0 | |
000000004FAF8AF1 | 44:0F50C1 | movmskps r8d,xmm1 |
Unfortunately, the processor does not meet minimum specs for the current versions of Camera Raw. Please see:
https://helpx.adobe.com/camera-raw/system-requirements.html
Copy link to clipboard
Copied
We’ve reviewed the email address you use with this forum and find no crash reports in our system.
Did you see a crash dialog?
Do you use a different email address when filling out the crash report?
Was the crash dialog Adobe’s? Microsoft’s?
Copy link to clipboard
Copied
I didn't send any crash reports because it just freezes.
Crash address and code where it crashes is in the first message.
If you need anything else - let me know how to help.
Funny thing is that it crashes on this code:
000000004FAF8AE0 | 66:0F383105 6C558E07 | pmovzxbd xmm0,dword ptr ds:[0x573DE055] | |
000000004FAF8AE9 | 66:0FEFC9 | pxor xmm1,xmm1 | |
000000004FAF8AED | 66:0F76C8 | pcmpeqd xmm1,xmm0 | |
000000004FAF8AF1 | 44:0F50C1 | movmskps r8d,xmm1 | |
000000004FAF8AF5 | 45:89C1 | mov r9d,r8d | |
000000004FAF8AF8 | 41:80E1 02 | and r9b,0x2 | |
000000004FAF8AFC | 41:D0E9 | shr r9b,0x1 | r9b=1 if byte1=0 |
000000004FAF8AFF | 45:89C2 | mov r10d,r8d | |
000000004FAF8B02 | 41:C0EA 02 | shr r10b,0x2 | r10b=?1b if byte2=0 |
000000004FAF8B06 | 44:89C0 | mov eax,r8d | |
000000004FAF8B09 | C0E8 03 | shr al,0x3 | al=1 if byte3=0 |
000000004FAF8B0C | 44:20D0 | and al,r10b | and byte2=0 |
000000004FAF8B0F | 44:20C8 | and al,r9b | and byte1=0 |
000000004FAF8B12 | 44:20C0 | and al,r8b | and byte0=0 |
which is fully equivalent to this one:
000000004FAF8AE0 | 44:8B05 6E558E07 | mov r8d,dword ptr ds:[0x573DE055] | |
000000004FAF8AE7 | 45:85C0 | test r8d,r8d | |
000000004FAF8AEA | 0F94C0 | sete al |
And if I just patch it in binary - it works fine.
And this is the only place where SSE4.1 is required - in fact it's only one CPU instruction.
Everything else works just fine.
Copy link to clipboard
Copied
Unfortunately, the processor does not meet minimum specs for the current versions of Camera Raw. Please see:
https://helpx.adobe.com/camera-raw/system-requirements.html
Copy link to clipboard
Copied
Great!
I knew I'll get this answer, but thought why not to try?
Adobe is Adobe, nothing changes...
And can you clarify why is this?
Because of performance?
Doesn't look like 14 instructions will be faster than 3, nope.
It's just because of someone's very wise decision.
Once again - it's only one instruction for the whole binary.
Sure it will make huge performance boost...
It's just one more example of making very debating (to say the least) desicions and then stubbornly protecting them.
Very sad.
Copy link to clipboard
Copied
Why it is? Because, like all software products from Adobe and others, as new features are updated, older processors (GPUs) and Operating Systems are no longer supported because they can't be**. I can't run Photoshop 7 on my Apple Silicon Mac. Or run the current version of Photoshop (and Adobe Camera Raw) under a PowerPC Mac.
This is indeed a wise decision for those of us running modern hardware and operating systems that expect Adobe and others to push the processing and feature envelope. Others can run older hardware and OSs; no one forces you to update.
Anyway, you now know what the issue is; your processor does not meet the minimum specs for the current versions of Camera Raw.
** No different with Capture One and other products.
Copy link to clipboard
Copied
Yeh, right.
Your explanation is like "it is what it is".
You really don't get it?
The issue is with one instruction per whole ACR.
I can patch it and it will work.
How will this affect people with newer CPUs?
It will not.
If requiring some newer instructions will make application faster - this is understandable.
If it's just requirement for the requirement - that's nonsense.
Copy link to clipboard
Copied
Yeh, right.
By @FSt0p
Indeed it is. You asked two questions, and I provided one of the answers. As did Rikk: Your processor does not meet the minimum specs for the current versions of Camera Raw.
Copy link to clipboard
Copied
If you'll read my first message carefully, you'll notice that I already knew that because I clearly stated that crash is due to use of SSE4.1 instruction which my CPU doesn't have.
What I'm trying to say that this requirement is plain stupid on the first place.
Requiring something that improves nothing but just prevents application from running on a certain hardware is not very wise decision.
But never mind, I got the attitude.
Copy link to clipboard
Copied
From Adobe (community forums):
If you wish to report what you believe is a bug, you do so by following these guidelines:
https://community.adobe.com/t5/photoshop-ecosystem-bugs/how-do-i-write-a-bug-report/idi-p/12373403
If you wish to provide a feature request, you do so by following these guidelines (then make a request in the product forum):
https://community.adobe.com/t5/lightroom-classic-ideas/how-do-i-write-a-feature-request/idi-p/123863...
Your two questions here were answered.