Issue running 32-bit executable on 64-bit Windows

China☆狼群 提交于 2019-12-07 10:40:59

问题


I'll add 500 of my own rep as a bounty when SO lets me.

I'm using wkhtmltopdf to convert HTML web pages to PDFs. This works perfectly on my 32-bit dev server [unfortunately, I can't ship my machine :-p ]. However, when I deploy to the web application's 64-bit server the following errors are displayed: (running from cmd.exe)

C:\>wkhtmltopdf http://www.google.com google.pdf
Loading pages (1/5)
QFontEngine::loadEngine: GetTextMetrics failed ()            ] 10%
QFontEngineWin: GetTextMetrics failed ()
QFontEngineWin: GetTextMetrics failed ()
QFontEngine::loadEngine: GetTextMetrics failed ()
QFontEngineWin: GetTextMetrics failed ()
QFontEngineWin: GetTextMetrics failed ()
QFontEngineWin: GetTextMetrics failed ()
QFontEngine::loadEngine: GetTextMetrics failed ()            ] 36%
QFontEngineWin: GetTextMetrics failed ()
QFontEngineWin: GetTextMetrics failed ()
// ...etc....

and the PDF is created and saved... just WITHOUT text. All form-fields, images, borders, tables, divs, spans, ps, etc are rendered accurately...just void of any text at all.

Server information:

    Windows edition: Windows Server Standard Service Pack 2
    Processor: Intel Xeon    E5410 @ 2.33GHz 2.33 GHz
    Memory: 8.00 GB
    System type: 64-bit Operating System

Can anyone give me a clue as to what is happening and how I can fix this?

Also, I wasn't sure what to tag/title this question with...so if you can think of better tags/title comment them or edit the question. :-)


回答1:


Well, the correct answer was just to restart the Production server. Some font-service must have silently crashed for some unknown reason. May this be a lesson to us all.



来源:https://stackoverflow.com/questions/2812478/issue-running-32-bit-executable-on-64-bit-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!