[Bug 34281] PlotSoft PDFill 10 fails on startup, reports 'No Fonts found under: C:\\windows\\Fonts' (at least one font name in registry must contain 'truetype' token)

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Nov 22 11:34:49 CST 2015


https://bugs.winehq.org/show_bug.cgi?id=34281

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |NEW
                 CC|                            |focht at gmx.net
            Summary|PlotSoft PDFill 10: fails   |PlotSoft PDFill 10 fails on
                   |on startup without native   |startup, reports 'No Fonts
                   |corefonts                   |found under:
                   |                            |C:\\windows\\Fonts' (at
                   |                            |least one font name in
                   |                            |registry must contain
                   |                            |'truetype' token)

--- Comment #8 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

confirming.

Prerequisite for installer: 'winetricks -q mfc42' (bug 657).

--- snip ---
err:module:import_dll Library MFC42.DLL (which is needed by L"C:\\Program
Files\\PlotSoft\\PDFill\\SpellChecker\\wspell.ocx") not found
regsvr32: Failed to load DLL 'C:\Program
Files\PlotSoft\PDFill\SpellChecker\wspell.ocx'
regsvr32: Successfully registered DLL
'C:\windows\system32\DynamicTwainCtrl.dll'
err:psdrv:PSDRV_PPDGetNextTuple Line too long.
err:module:import_dll Library MFC42.DLL (which is needed by L"C:\\Program
Files\\PlotSoft\\PDFill\\PDFillZip.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"C:\\Program
Files\\PlotSoft\\PDFill\\PDFillZip.exe" failed, status c0000135 
--- snip ---

Ghostscript, Sun Java redist prerequisites are not needed for reproducing.
In fact the app installer does automatic download/install of Sun Java redist.

Relevant part of trace log:

--- snip ---
$ pwd
/home/focht/.wine/drive_c/Program Files/PlotSoft/PDFill

$ WINEDEBUG=+tid,+seh,+relay wine ./PDFill.exe >>log.txt 2>&1
...
0027:Call KERNEL32.GetFileAttributesW(005b3f48 L"C:\\windows\\Fonts\\")
ret=004561c3
0027:Ret  KERNEL32.GetFileAttributesW() retval=00000010 ret=004561c3 
...
0027:Call advapi32.RegOpenKeyExW(80000002,0033f5f8
L"SOFTWARE\\Microsoft\\Windows
NT\\CurrentVersion\\Fonts",00000000,00020019,0033f728) ret=00487f0d
0027:Ret  advapi32.RegOpenKeyExW() retval=00000000 ret=00487f0d
0027:Call
advapi32.RegEnumValueW(00000080,00000000,0033f2ec,0033f714,00000000,0033f6dc,0033f4f4,0033f708)
ret=0048847d
0027:Ret  advapi32.RegEnumValueW() retval=00000000 ret=0048847d
0027:Call msvcr70.wcslen(0033f2ec L"@AR PL UMing CN") ret=00401780
0027:Ret  msvcr70.wcslen() retval=0000000f ret=00401780 
...
0027:Call ntdll.wcscpy(0033f0e4,0033f4f4
L"Z:\\usr\\share\\fonts\\cjkuni-uming\\uming.ttc") ret=00487f89
0027:Ret  ntdll.wcscpy() retval=0033f0e4 ret=00487f89 
...
0027:Call msvcr70.wcsstr(005b42f0 L"@ar pl uming cn",004e2900 L"truetype")
ret=0040c617
0027:Ret  msvcr70.wcsstr() retval=00000000 ret=0040c617 
...
<repeats for all fonts in registry>
...
0027:Call
advapi32.RegEnumValueW(00000080,000000dd,0033f2ec,0033f714,00000000,0033f6dc,0033f4f4,0033f708)
ret=0048847d
0027:Ret  advapi32.RegEnumValueW() retval=00000103 ret=0048847d
0027:Call advapi32.RegCloseKey(00000080) ret=0048848e
0027:Ret  advapi32.RegCloseKey() retval=00000000 ret=0048848e 
...
0027:Call advapi32.RegOpenKeyExW(80000002,005b4288
L"SOFTWARE\\PlotSoft\\PDFill\\WinIni",00000000,00020019,0033fcac) ret=004562a1
0027:Ret  advapi32.RegOpenKeyExW() retval=00000002 ret=004562a1
0027:Call msvcr70.wcslen(004df144 L"No Fonts found under: ") ret=004018c5
0027:Ret  msvcr70.wcslen() retval=00000016 ret=004018c5 
...
0027:Call user32.MessageBoxW(00000000,005b43d0 L"No Fonts found under:
C:\\windows\\Fonts\\\nNo Fonts found under: C:\\Windows\\Fonts\\\nNo Fonts
found under: C:\\Windows\\Fonts\\\nPlease Select the system font folder by
yourself. \nIf you have problem, please report to support at pdfill.com",004c9354
L"PlotSoft PDFill",00000000) ret=00456472 
--- snip ---

The app validates if the font name (registry key name) contains the token
'truetype' and if the token is present it checks for the existence of the font
file.
The location/path doesn't matter though, if it points to Wine's font store
('z:\\..share\\wine\\fonts\\..') or somewhere within WINEPREFIX ('c:\\...').

ProtectionID scan:

--- snip ---
-=[ ProtectionID v0.6.6.7 DECEMBER]=-
(c) 2003-2015 CDKiLLER & TippeX
Build 24/12/14-22:48:13
Ready...
Scanning -> Z:\home\focht\Downloads\PDFill 10.0 build 4.exe
File Type : 32-Bit Exe (Subsystem : Win GUI / 2), Size : 11911936 (0B5C300h)
Byte(s)
Compilation TimeStamp : 0x4BDE8533 -> Mon 03rd May 2010 08:11:31 (GMT)
[TimeStamp] 0x4BDE8533 -> Mon 03rd May 2010 08:11:31 (GMT) | PE Header | - |
Offset: 0x00000120 | VA: 0x00400120 | -
-> File Appears to be Digitally Signed @ Offset 0B5BAF8h, size : 0808h / 02056
byte(s)
-> File has 11683064 (0B244F8h) bytes of appended data starting at offset
037600h
[!] Executable uses SEH Tables (/SAFESEH) (2 calculated 2 recorded... 0 invalid
addresses) 
[File Heuristics] -> Flag #1 : 00000000000001001100000000000100 (0x0004C004)
[Entrypoint Section Entropy] : 6.50 (section #0) ".text   " | Size : 0x24B43
(150339) byte(s)
[DllCharacteristics] -> Flag : (0x0000) -> NONE
[SectionCount] 4 (0x4) | ImageSize 0x3A000 (237568) byte(s)
[VersionInfo] Company Name : PlotSoft LLC
[VersionInfo] Product Name : PDFill PDF Editor with FREE Writer and FREE Tools
[VersionInfo] Product Version : 10.0
[VersionInfo] File Description : Create. Edit. Save PDF; Edit PDF file without
Adobe Acrobat
[VersionInfo] File Version : 10.0
[VersionInfo] Original FileName : PDFill.exe
[VersionInfo] Internal Name : PDFill
[VersionInfo] Legal Copyrights : Copyright (C) PlotSoft LLC
[CompilerDetect] -> Visual C++ 7.1 (Visual Studio 2003)
[!] File appears to have no protection or is using an unknown protection
- Scan Took : 0.390 Second(s) [000000186h (390) tick(s)] [558 of 573 scan(s)
done]

Scanning -> C:\Program Files\PlotSoft\PDFill\PDFill.exe
File Type : 32-Bit Exe (Subsystem : Win GUI / 2), Size : 1763336 (01AE808h)
Byte(s)
Compilation TimeStamp : 0x50A7A75B -> Sat 17th Nov 2012 15:03:55 (GMT)
[TimeStamp] 0x50A7A75B -> Sat 17th Nov 2012 15:03:55 (GMT) | PE Header | - |
Offset: 0x000000F8 | VA: 0x004000F8 | -
[TimeStamp] 0x50A7A75B -> Sat 17th Nov 2012 15:03:55 (GMT) | DebugDirectory | -
| Offset: 0x000C9144 | VA: 0x004C9144 | -
-> File Appears to be Digitally Signed @ Offset 01AE000h, size : 0808h / 02056
byte(s)
[File Heuristics] -> Flag #1 : 00000100000000000000000000000100 (0x04000004)
[Entrypoint Section Entropy] : 6.50 (section #0) ".text   " | Size : 0xC6610
(812560) byte(s)
[DllCharacteristics] -> Flag : (0x0000) -> NONE
[SectionCount] 4 (0x4) | ImageSize 0x1AF000 (1765376) byte(s)
[VersionInfo] Company Name : PlotSoft L.L.C.
[VersionInfo] Product Name : PDFill PDF Editor with FREE PDF Writer and PDF
Tools
[VersionInfo] Product Version : 10.0.0.4
[VersionInfo] File Description : PDFill PDF Editor 10.0
[VersionInfo] File Version : 10.0.0.4
[VersionInfo] Original FileName : PDFill.exe
[VersionInfo] Internal Name : PDFill.exe
[VersionInfo] Version Comments : PDFill PDF Editor with FREE PDF Writer and PDF
Tools
[VersionInfo] Legal Trademarks : PDFill
[VersionInfo] Legal Copyrights : Copyright 2002-2013 PlotSoft L.L.C.  All
rights reserved.
[Debug Info] (record 1 of 1) (file offset 0xC9140)
Characteristics : 0x0 | TimeDateStamp : 0x50A7A75B (Sat 17th Nov 2012 15:03:55
(GMT)) | MajorVer : 0 / MinorVer : 0 -> (0.0)
Type : 2 (0x2) -> CodeView | Size : 0x4E (78) 
AddressOfRawData : 0xEAD0C | PointerToRawData : 0xEAD0C
CvSig : 0x53445352 | SigGuid A935D5CE-6085-4D11-B7D029CC475BAE36
Age : 0x1 | Pdb : e:\PlotSoft\PDFill_10.0\PDFill_CPP\Release\PDFill.pdb
[CompilerDetect] -> Visual C++ 7.0 (Visual Studio 2002)
[!] File appears to have no protection or is using an unknown protection
- Scan Took : 0.752 Second(s) [0000002F0h (752) tick(s)] [499 of 573 scan(s)
done]
--- snip ---

$ sha1sum PDFill\ 10.0\ build\ 4.exe 
d8b19ad3a1d7d3faef3c2f4835267eef2457edff  PDFill 10.0 build 4.exe

$ du -sh PDFill\ 10.0\ build\ 4.exe 
12M    PDFill 10.0 build 4.exe

$ wine --version
wine-1.8-rc1

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list