Wine 错误:应用程序尝试创建窗口,但无法加载驱动程序

Dan*_*der 5 wine winelib

我制作了一个 fcgi-isapi 桥,并使用wineg++(关键字 winelib)进行编译。LoadLibrary它正在使用/运行纯 Win32 isapi 扩展GetProcAddress。这对于简单的演示 isapi dll 来说效果很好,但对于更复杂的演示则不行,因为 wine 在 dll 内的某个地方崩溃了。WINEDEBUG=+olerelay,+storage,+relay给我以下输出:

0009:Call KERNEL32.InterlockedIncrement(00000150) ret=1001eebe
0009:Call KERNEL32.UnhandledExceptionFilter(0033f428) ret=7bc8e2f5
wine: Unhandled page fault on write access to 0x00000150 at address 0x7b8716bd (thread 0009), starting debugger...
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
couldn't load main module (0)
0009:Ret  KERNEL32.UnhandledExceptionFilter() retval=00000000 ret=7bc8e2f5
Unhandled exception: page fault on write access to 0x00000150 in 32-bit code (0x7b8716bd).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:7b8716bd ESP:0033f8cc EBP:0033f8e0 EFLAGS:00010246(  R- --  I  Z- -P- )
 EAX:00000001 EBX:00000000 ECX:00000000 EDX:00000150
 ESI:0033f8fc EDI:0033f8d4
Stack dump:
0x0033f8cc:  7bc6592e 00000150 00000000 7ca3c7d4
0x0033f8dc:  00000000 0033fdc8 7b823b61 7b8be9d4
0x0033f8ec:  000102d1 0033f8f4 1001eebe 00000150
0x0033f8fc:  7ef82158 7ca3c7d0 f775d2c8 0033faac
0x0033f90c:  7bcd7208 00000000 f775c2b1 0000000f
0x0033f91c:  7bcbbed8 1004e06c 00000002 00115760
Backtrace:
=>0 0x7b8716bd in kernel32 (+0x616bd) (0x0033f8e0)
  1 0x7b823b61 in kernel32 (+0x13b60) (0x0033fdc8)
  2 0x7ef813d0 (0x0033fe18)
  3 0x7ef815f5 (0x0033fe60)
  4 0x7b85e84c in kernel32 (+0x4e84b) (0x0033fe78)
  5 0x7b85f903 in kernel32 (+0x4f902) (0x0033feb8)
  6 0x7bc77600 (0x0033fed8)
  7 0x7bc7a59d (0x0033ffa8)
  8 0x7bc775de (0x0033ffc8)
  9 0x7bc4c65e (0x0033ffe8)
Run Code Online (Sandbox Code Playgroud)

(使用 Wine 1.4.1 和 1.6.2 进行测试,两者给出完全相同的输出(只有一些不同的数字)

我的问题:

  1. 到底发生了什么以及如何找出页面错误的原因?
  2. wine 是否尝试运行图形调试器,或者 dll 本身是否尝试创建 X11 对象?为什么会失败?此安装在 64 位主机上的 32 位 chroot 环境中运行,但我使用 调用xhost +并测试了 X11 xlogogedit甚至使用 Wine 调用了 Win32 GUI 应用程序。X11似乎没有任何问题。

更新:这里是源链接:http://gist.github.com/daald/5f37de8352e1c8ca62db

ken*_*orb 0

根据这篇文章wine适用于图形程序。要在没有图形界面的情况下运行程序,请使用wineconsole,例如

wineconsole fastcgi-to-isapi.exe
Run Code Online (Sandbox Code Playgroud)

请参阅:文本模式程序(CUI:控制台用户界面)

或者使用X 虚拟帧缓冲区,请参阅:完全无头运行 wine