Bartender editor hangs opening label when unable to access font on Windows 10 追蹤

0
Avatar
Ira Grollman

A development system was upgraded from windows 7 to windows 10 and was hanging while opening some labels using Bartender editor 10.1 SR4. The issue is file access control lists (ACL's) on certain installed fonts in the c:\windows\fonts folder. The installed fonts may also be located elsewhere if you have font install on demand (font driver functionality). This can also occur with upgrades of Windows Server systems (2008 to 2016).


You can use Sysinternals procmon.exe (source Microsoft download) to watch and see if fontdrvhost.exe is failing to load a given font after you have started the label open process. You can assume there's a problem if any font is failing to load and fix it using PowerShell. All mentions of PowerShell assume you are running it as administrator.


fix all fonts using PowerShell: get-acl C:\Windows\fonts\arial.ttf | Set-Acl -path c:\windows\fonts\*.*


See near end of this post for what the folder's ACL should look like.


Please first verify that the default Arial font is ok, using get-acl c:\windows\fonts\arial.ttf | format-list. You should see
APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES Allow ReadAndExecute, Synchronize
APPLICATION PACKAGE AUTHORITY\ALL RESTRICTED APPLICATION PACKAGES Allow ReadAndExecute, Synchronize

as part of the permissions.


get-acl c:\windows\fonts\arial.ttf | format-list
Path : Microsoft.PowerShell.Core\FileSystem::C:\windows\fonts\arial.ttf
Owner : NT SERVICE\TrustedInstaller
Group : NT SERVICE\TrustedInstaller
Access : NT AUTHORITY\SYSTEM Allow ReadAndExecute, Synchronize
BUILTIN\Administrators Allow ReadAndExecute, Synchronize
BUILTIN\Users Allow ReadAndExecute, Synchronize
NT SERVICE\TrustedInstaller Allow FullControl
APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES Allow ReadAndExecute, Synchronize
APPLICATION PACKAGE AUTHORITY\ALL RESTRICTED APPLICATION PACKAGES Allow ReadAndExecute, Synchronize
Audit :
Sddl : O:S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464G:S-1-5-80-956008885-3418522649-1831038044-185
3292631-2271478464D:PAI(A;;0x1200a9;;;SY)(A;;0x1200a9;;;BA)(A;;0x1200a9;;;BU)(A;;FA;;;S-1-5-80-956008885-34185
22649-1831038044-1853292631-2271478464)(A;;0x1200a9;;;AC)(A;;0x1200a9;;;S-1-15-2-2)
Running windows PowerShell as an administrator, you can see the ACL of a failing font.
get-acl c:\windows\fonts\arialn.ttf | format-list
Path : Microsoft.PowerShell.Core\FileSystem::C:\windows\fonts\arialn.ttf
Owner : NT AUTHORITY\SYSTEM
Group : NT AUTHORITY\SYSTEM
Access : NT AUTHORITY\SYSTEM Allow FullControl
BUILTIN\Administrators Allow FullControl
BUILTIN\Users Allow ReadAndExecute, Synchronize
Audit :
Sddl : O:SYG:SYD:(A;ID;FA;;;SY)(A;ID;FA;;;BA)(A;ID;0x1200a9;;;BU)

get-acl c:\windows\fonts | format-list

Path : Microsoft.PowerShell.Core\FileSystem::C:\windows\fonts
Owner : NT SERVICE\TrustedInstaller
Group : NT SERVICE\TrustedInstaller
Access : CREATOR OWNER Allow 268435456
NT AUTHORITY\SYSTEM Allow 268435456
NT AUTHORITY\SYSTEM Allow Modify, Synchronize
BUILTIN\Administrators Allow 268435456
BUILTIN\Administrators Allow Modify, Synchronize
BUILTIN\Users Allow -1610612736
BUILTIN\Users Allow ReadAndExecute, Synchronize
NT SERVICE\TrustedInstaller Allow 268435456
NT SERVICE\TrustedInstaller Allow FullControl
APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES Allow ReadAndExecute, Synchronize
APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES Allow -1610612736
APPLICATION PACKAGE AUTHORITY\ALL RESTRICTED APPLICATION PACKAGES Allow ReadAndExecute, Synchronize
APPLICATION PACKAGE AUTHORITY\ALL RESTRICTED APPLICATION PACKAGES Allow -1610612736
Audit :
Sddl : O:S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464G:S-1-5-80-956008885-3418522649-1831038044-185
3292631-2271478464D:PAI(A;OICIIO;GA;;;CO)(A;OICIIO;GA;;;SY)(A;;0x1301bf;;;SY)(A;OICIIO;GA;;;BA)(A;;0x1301bf;;;
BA)(A;OICIIO;GXGR;;;BU)(A;;0x1200a9;;;BU)(A;CIIO;GA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271
478464)(A;;FA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;;0x1200a9;;;AC)(A;OICIIO;GXG
R;;;AC)(A;;0x1200a9;;;S-1-15-2-2)(A;OICIIO;GXGR;;;S-1-15-2-2)

The hint about the font ACL's came from a different related problem described at https://answers.microsoft.com/en-us/msoffice/forum/msoffice_word-mso_win10/office-2016-there-is-insufficient-memory-or-disk/f9244b18-eaa6-4b2a-8f47-273ec7e86607?page=3&auth=1  

Regards, Ira

登入寫評論。