Blank icon on PDF files

Questions, glitches, bugs and crashes
Maxobus
Posts: 7
Joined: Wed Oct 26, 2022 9:47 am

Blank icon on PDF files

Post by Maxobus » Thu Oct 27, 2022 3:22 pm

After upgrading to MacOS Ventura all PDF files have blank (white) icon. But in Finder icon is displaying normally.
Maybe some other file types have the same issue, but I noticed on PDFs.

How to fix it?
Thanks.
NC.png
NC.png (27.07 KiB) Viewed 529 times
Finder.png
Finder.png (81.68 KiB) Viewed 529 times

moonrak
Posts: 47
Joined: Thu Sep 29, 2016 12:42 pm
Location: Rio Grande, Argentina

Re: Blank icon on PDF files

Post by moonrak » Sun Oct 30, 2022 12:06 am

I also have the same issue with pdf files, blank icon.
Carlos

Maxobus
Posts: 7
Joined: Wed Oct 26, 2022 9:47 am

Re: Blank icon on PDF files

Post by Maxobus » Mon Oct 31, 2022 9:27 am

moonrak wrote:
Sun Oct 30, 2022 12:06 am
I also have the same issue with pdf files, blank icon.
Do you have it also on MacOS Ventura?

User avatar
mike
Posts: 1006
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

Re: Blank icon on PDF files

Post by mike » Tue Nov 01, 2022 9:23 pm

Looks like a compatibility issue with Ventura. I'll update my Mac and check what's going on under the hood.

jhbarker
Posts: 1
Joined: Wed Nov 02, 2022 4:10 am

Re: Blank icon on PDF files

Post by jhbarker » Wed Nov 02, 2022 4:11 am

I have the same problem.

moonrak
Posts: 47
Joined: Thu Sep 29, 2016 12:42 pm
Location: Rio Grande, Argentina

Re: Blank icon on PDF files

Post by moonrak » Fri Nov 04, 2022 1:00 am

Maxobus wrote:
Mon Oct 31, 2022 9:27 am
moonrak wrote:
Sun Oct 30, 2022 12:06 am
I also have the same issue with pdf files, blank icon.
Do you have it also on MacOS Ventura?
Yep, Ventura it is.
Carlos

User avatar
mike
Posts: 1006
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

Re: Blank icon on PDF files

Post by mike » Sun Nov 20, 2022 10:46 pm

Found the root cause for the issue.
This release adjusts the structure of UTIs (https://en.wikipedia.org/wiki/Uniform_Type_Identifier) - which one conforms to what.
NC has a configurable list of UTIs for which it renders file icons, that is:

Code: Select all

    "filePanel": {
        ...
        "presentation": {
            ...
            /**
             * A whitelist of UTIs used to determine whether an QuickLook icon is required for a
             * file. Requires restart to take effect.
             */
            "quickLookIconsWhitelist": "public.image, public.movie, public.audio",
That list can changed manually in ~/Library/ApplicationSupport/Nimble Commander/Config/Config.json.

Now the UTI of PDF files ("com.adobe.pdf") no longer conforms to these three core UTIs so NC didn't try to produce icons for this file extension.
Fixed now, next build will be behave properly.
In the meantime a "hotfix" would be to add e.g. "public.content" in this config entry.

Maxobus
Posts: 7
Joined: Wed Oct 26, 2022 9:47 am

Re: Blank icon on PDF files

Post by Maxobus » Mon Nov 21, 2022 10:03 am

Thanks.
Applied a hotfix. And now instead of PDF icon it renders content of pdf file as icon.
Is it possible to fix to show just pdf icon?

User avatar
mike
Posts: 1006
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

Re: Blank icon on PDF files

Post by mike » Sat Dec 03, 2022 5:57 pm

Hi all,

Well, I can finally report something back.

First of all - I completely mixed up the expected behaviour for these file types. For some reason I thought previously NC rendered an actual contents of PDF files, but in fact it just shown the proper icon. So please disregard what I wrote about UTI types previously.

It took quite some to investigate the issue.
To begin with, on my setup the PDF icon was properly rendered in NC no matter what, what's with macOS 13 running on both Arm64 and AMD64 (different machines).
Then I noticed Adobe Acrobat's icon in some screenshot(s) that demonstrate the issue.
So lo and behold - after installing Acrobat Reader and rebooting one of my Macs that machine stopped displaying proper icons, showing a blank one instead. Removing Acrobat Reader, cleaning its traces and rebooting didn't fix the issue - still get blank icons.
In the end I composed a tiny app with essentially one line of code that gets an icon for UTI "com.adobe.pdf" using the official Apple's API.
On two of my machines it display different results - a one that had Acrobat Reader installed shows a blank icon, while the machine that didn't have it shows a proper icon.

The app is attached and if you could run it on your machine and write back - that would be awesome.

It seems other software is affected by this issue as well, including Safari and Mail:
https://community.adobe.com/t5/acrobat- ... p/13327540
https://www.msofficeforums.com/outlook/ ... hment.html
https://discussions.apple.com/thread/254319653

So, by the current looks of it seems the problem is on the Adobe's side - unfortunately not much I can do here.
Attachments
icontest.zip
(34.34 KiB) Downloaded 18 times

moonrak
Posts: 47
Joined: Thu Sep 29, 2016 12:42 pm
Location: Rio Grande, Argentina

Re: Blank icon on PDF files

Post by moonrak » Sat Dec 03, 2022 6:35 pm

I'm getting a blank icon within the app you provided and also in NC for a pdf file.
Mac mini M1 with Ventura.
Carlos

Post Reply