在64位Windows上运行32位可执行文件时出现问题 [英] Issue running 32-bit executable on 64-bit Windows

查看:591
本文介绍了在64位Windows上运行32位可执行文件时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当SO让我加入时,我会添加500个自己的代表作为奖励。

我正在使用 wkhtmltopdf 可以将HTML网页转换为PDF。这可以在我的32位开发服务器上完美运行[很遗憾,我无法运送我的机器:-p]。但是,当我部署到Web应用程序的64位服务器时,将显示以下错误:
(从cmd.exe运行)

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....

随即创建并保存了PDF。 ..只是没有文字。所有表单域,图像,边框,表格,div,跨度,ps等都可以准确呈现...根本没有任何文本。

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.

服务器信息:

    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

可以有人给我一个线索,这是怎么回事以及我该如何解决?

此外,我不确定要标记什么/为此问题加上标题...,以便您能想到更好的标签/标题为它们添加注释或编辑问题。 :-)

推荐答案

好吧,正确的答案只是重新启动生产服务器。由于某些未知原因,某些字体服务肯定已经崩溃。愿这对我们所有人都是一个教训。

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.

这篇关于在64位Windows上运行32位可执行文件时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆