Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

[wine 3.8] gdi32.dll failed to initialize #10

Closed
specter119 opened this issue May 19, 2018 · 30 comments
Closed

[wine 3.8] gdi32.dll failed to initialize #10

specter119 opened this issue May 19, 2018 · 30 comments

Comments

@specter119
Copy link

感谢维护!
安装正常,安装后无法启动。
试过卸载依赖并删除 ~/.deepinwine重装,但是没有作用。

sh /opt/deepinwine/apps/Deepin-TIM/run.sh

~/.deepinwine/Deepin-TIM/drive_c/deepin/EnvInit.sh:行27: /opt/deepinwine/tools/add_hotkeys: 没有那个文件或目录
reg:系统无法找到指定的注册表键或值

0150:err:module:attach_dlls "gdi32.dll" failed to initialize, aborting
0150:err:module:attach_dlls Initializing dlls for L"c:\\Program Files\\Tencent\\TIM\\Bin\\TIM.exe" failed, status c0000005

我的 /opt/deepinwine 里只有app目录,没有tools目录。

@specter119
Copy link
Author

删除掉~/.deepwine 重新安装的话的,再稍微定位下报错。

运行 sh ~/.deepinwine/Deepin-TIM/drive_c/deepin/EnvInit.sh

0012:err:module:import_dll Library ntoskrnl.exe (which is needed by L"C:\\windows\\system32\\winedevice.exe") not found
0012:err:module:attach_dlls Importing dlls for L"C:\\windows\\system32\\winedevice.exe" failed, status c0000135
000f:err:service:process_send_command service protocol error - failed to write pipe!
000f:fixme:service:scmdatabase_autostart_services Auto-start service L"MountMgr" failed to start: 1053
001b:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0021:fixme:advapi:RegisterEventSourceW ((null),L"QPCore"): stub
0021:fixme:advapi:ReportEventW (0xcafe4242,0x0004,0x0000,0x00000000,(nil),0x0001,0x00000000,0x73fc64,(nil)): stub
0021:fixme:advapi:DeregisterEventSource (0xcafe4242) stub
0024:err:module:import_dll Library ntoskrnl.exe (which is needed by L"C:\\windows\\system32\\winedevice.exe") not found
0024:err:module:attach_dlls Importing dlls for L"C:\\windows\\system32\\winedevice.exe" failed, status c0000135
000f:err:service:process_send_command service protocol error - failed to write pipe!
000f:fixme:service:scmdatabase_autostart_services Auto-start service L"QQFrmMgr" failed to start: 1053
0026:err:module:import_dll Library ntoskrnl.exe (which is needed by L"C:\\windows\\system32\\winedevice.exe") not found
0026:err:module:attach_dlls Importing dlls for L"C:\\windows\\system32\\winedevice.exe" failed, status c0000135
000f:err:service:process_send_command service protocol error - failed to write pipe!
000f:fixme:service:scmdatabase_autostart_services Auto-start service L"QQProtect" failed to start: 1053
0028:err:module:import_dll Library ntoskrnl.exe (which is needed by L"C:\\windows\\system32\\winedevice.exe") not found
0028:err:module:attach_dlls Importing dlls for L"C:\\windows\\system32\\winedevice.exe" failed, status c0000135
000f:err:service:process_send_command service protocol error - failed to write pipe!
000f:fixme:service:scmdatabase_autostart_services Auto-start service L"WineBus" failed to start: 1053
0022:err:module:load_builtin_dll failed to load .so lib for builtin L"l3codeca.acm": libmpg123.so.0: 无法打开共享对象文件: 没有那个文件或目录
reg:系统无法找到指定的注册表键或值
002d:err:module:attach_dlls "gdi32.dll" failed to initialize, aborting
002d:err:module:attach_dlls Initializing dlls for L"c:\\Program Files\\Tencent\\TIM\\Bin\\TIM.exe" failed, status c0000005
0022:fixme:ntdll:NtQueryInformationProcess (process=0xac) Unimplemented information class: ProcessSessionInformation
0032:err:module:import_dll Library ntoskrnl.exe (which is needed by L"C:\\windows\\system32\\winedevice.exe") not found
0032:err:module:attach_dlls Importing dlls for L"C:\\windows\\system32\\winedevice.exe" failed, status c0000135
0017:err:service:process_send_command service protocol error - failed to write pipe!
0034:err:module:import_dll Library ntoskrnl.exe (which is needed by L"C:\\windows\\system32\\winedevice.exe") not found
0034:err:module:attach_dlls Importing dlls for L"C:\\windows\\system32\\winedevice.exe" failed, status c0000135
0016:err:service:process_send_command service protocol error - failed to write pipe!
0022:fixme:process:WTSGetActiveConsoleSessionId stub
0022:fixme:wtsapi:WTSQueryUserToken 1 0x84f38c
0022:fixme:wtsapi:WTSQueryUserToken 1 0x84f38c
0035:fixme:iphlpapi:NotifyAddrChange (Handle 0x1d9fed8, overlapped 0x1d9feb8): stub
0035:fixme:iphlpapi:CancelIPChangeNotify (overlapped 0x1d9feb8): stub
0022:fixme:wtsapi:WTSQueryUserToken 1 0x84f468
0022:fixme:wtsapi:WTSQueryUserToken 1 0x84f470
0022:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevation, ...) semi-stub
0022:err:winediag:gnutls_initialize failed to load libgnutls, no support for encryption
0022:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x84f1e8 1 C) semi-stub
0022:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x84efc8 1 C) semi-stub
003d:err:module:import_dll Library ntoskrnl.exe (which is needed by L"C:\\windows\\system32\\winedevice.exe") not found
003d:err:module:attach_dlls Importing dlls for L"C:\\windows\\system32\\winedevice.exe" failed, status c0000135
0016:err:service:process_send_command service protocol error - failed to write pipe!
003f:err:module:import_dll Library ntoskrnl.exe (which is needed by L"C:\\windows\\system32\\winedevice.exe") not found
003f:err:module:attach_dlls Importing dlls for L"C:\\windows\\system32\\winedevice.exe" failed, status c0000135
0017:err:service:process_send_command service protocol error - failed to write pipe!
0022:fixme:crypt:CryptProtectMemory (0x191088 112 00000001): stub
0022:fixme:crypt:CryptUnprotectMemory (0x10e0540 112 00000001): stub
0022:fixme:wtsapi:WTSQueryUserToken 1 0x84c758
0022:fixme:wtsapi:WTSQueryUserToken 1 0x84e90c
0022:fixme:wtsapi:WTSQueryUserToken 1 0x84e934
0022:fixme:msvcrt:__clean_type_info_names_internal (0x2990454) stub
0022:fixme:msvcrt:__clean_type_info_names_internal (0x10116fb4) stub
0022:fixme:msvcrt:__clean_type_info_names_internal (0x3ce33c) stub
0021:fixme:advapi:RegisterEventSourceW ((null),L"QPCore"): stub
0021:fixme:advapi:ReportEventW (0xcafe4242,0x0004,0x0000,0x00000000,(nil),0x0001,0x00000000,0x73fc80,(nil)): stub
0021:fixme:advapi:DeregisterEventSource (0xcafe4242) stub
001b:fixme:msvcrt:__clean_type_info_names_internal (0x30283754) stub
001b:fixme:msvcrt:__clean_type_info_names_internal (0x3f34ec) stub
001b:fixme:msvcrt:__clean_type_info_names_internal (0x1101d33c) stub
001b:fixme:msvcrt:__clean_type_info_names_internal (0x11f1138c) stub
001b:fixme:msvcrt:__clean_type_info_names_internal (0x89fc34) stub
001b:fixme:msvcrt:__clean_type_info_names_internal (0x11114564) stub

@vufa
Copy link
Owner

vufa commented May 19, 2018

已经确认是wine 3.8的bug(winehq),我稍后给wine项目提交个bugreport,暂时先把wine降级到3.7:

sudo pacman -U /var/cache/pacman/pkg/wine-3.7-1-x86_64.pkg.tar.xz

add_hotkeys是deepin做的一个添加快捷键的操作,这个不用管它

@rmb122
Copy link

rmb122 commented May 19, 2018

我今天也碰到这个了, 搞了半天结果是 wine 的锅 2333

@vufa
Copy link
Owner

vufa commented May 19, 2018

@rmb122 😆 有问题提issue就行,手机绑定了邮箱,能很快收到并回复

@rmb122
Copy link

rmb122 commented May 19, 2018

我从还没同步的源上扒下来一个旧版, 降级后果然可以运行了, 有需要的同学可以自取
https://pan.baidu.com/s/1IAUgoAMlmmcQqDMeTE9P_w

@specter119
Copy link
Author

@countstarlight 非常感谢

@v0y4g3r
Copy link

v0y4g3r commented May 24, 2018

同样的问题,降级wine到3.7之后安装TIM无法打开,运行/opt/deepinwine/apps/Deepin-TIM/run.sh之后输出:

/home/xxx/.deepinwine/Deepin-TIM/drive_c/deepin/EnvInit.sh: line 27: /opt/deepinwine/tools/add_hotkeys: No such file or directory
reg: The system was unable to find the specified registry key or value
0157:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0157:fixme:winsock:WS_EnterSingleProtocolW unknown Protocol <0x00000000>
0157:fixme:winsock:WS_EnterSingleProtocolW unknown Protocol <0x00000000>
0157:fixme:ntdll:NtQueryInformationProcess (process=0x18c) Unimplemented information class: ProcessSessionInformation
0118:fixme:sync:GetNamedPipeHandleStateW 0xd8 0x1c8fed4 0x1c8fed8 (nil) (nil) (nil) 0: semi-stub
0157:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x32e968 1 C) semi-stub
0118:fixme:sync:GetNamedPipeHandleStateW 0xd8 0x1c8fed4 0x1c8fed8 (nil) (nil) (nil) 0: semi-stub
0167:fixme:sync:GetNamedPipeHandleStateW 0x1a8 0x497fed4 0x497fed8 (nil) (nil) (nil) 0: semi-stub
0118:fixme:sync:GetNamedPipeHandleStateW 0xd8 0x1c8fed4 0x1c8fed8 (nil) (nil) (nil) 0: semi-stub
0157:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x32f1c8 1 C) semi-stub
0157:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x32ef98 1 C) semi-stub
016d:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0157:fixme:msctf:TextStoreACPSink_OnLayoutChange STUB:(0x1eb0e8)
0157:fixme:msctf:TextStoreACPSink_OnTextChange STUB:(0x1eb0e8)
0157:fixme:msctf:TextStoreACPSink_OnLayoutChange STUB:(0x1eb0e8)
0157:fixme:msctf:TextStoreACPSink_OnTextChange STUB:(0x1eb0e8)
0157:fixme:msctf:TextStoreACPSink_OnSelectionChange STUB:(0x1eb0e8)
0157:fixme:msctf:TextStoreACPSink_OnLayoutChange STUB:(0x1eb0e8)
0157:fixme:msctf:TextStoreACPSink_OnSelectionChange STUB:(0x1eb0e8)
0157:fixme:msctf:TextStoreACPSink_OnSelectionChange STUB:(0x1eb0e8)
0157:fixme:msctf:TextStoreACPSink_OnLayoutChange STUB:(0x1eb0e8)
0157:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x32f1b8 1 C) semi-stub
0176:err:ole:create_server class {4f7c9975-eca1-4190-b0eb-e37bc5e40893} not registered
0176:err:ole:CoGetClassObject no class object {4f7c9975-eca1-4190-b0eb-e37bc5e40893} could be created for context 0x4
wine: cannot find L"c:\\Program Files\\Tencent\\TIM\\Bin\\TXPlatform.exe"
0176:err:ole:create_server class {4f7c9975-eca1-4190-b0eb-e37bc5e40893} not registered
0176:err:ole:CoGetClassObject no class object {4f7c9975-eca1-4190-b0eb-e37bc5e40893} could be created for context 0x4
0176:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0xc46f8e8 1 C) semi-stub
0176:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0xc46f6d8 1 C) semi-stub
0178:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0176:err:winediag:gnutls_initialize failed to load libgnutls, no support for encryption
0178:err:winediag:schan_imp_init Failed to load libgnutls, secure connections will not be available.
init server success 127.0.0.1 12291
0178:fixme:heap:RtlSetHeapInformation 0x110000 0 0x33f690 4 stub
0178:fixme:msvcrt:__clean_type_info_names_internal (0x546bc464) stub
0178:fixme:msvcrt:__clean_type_info_names_internal (0x51db277c) stub
0178:fixme:msvcrt:__clean_type_info_names_internal (0x537091a4) stub
0178:fixme:msvcrt:__clean_type_info_names_internal (0x5136c4ac) stub
0178:fixme:msvcrt:__clean_type_info_names_internal (0x5760a62c) stub
0178:fixme:msvcrt:__clean_type_info_names_internal (0x5142335c) stub
0178:fixme:msvcrt:__clean_type_info_names_internal (0x514824cc) stub
0178:fixme:msvcrt:__clean_type_info_names_internal (0x57a1356c) stub
0178:fixme:msvcrt:__clean_type_info_names_internal (0x5375d33c) stub
0178:fixme:msvcrt:__clean_type_info_names_internal (0x5800137c) stub
016d:fixme:winsock:WS_EnterSingleProtocolW unknown Protocol <0x00000000>
016d:fixme:winsock:WS_EnterSingleProtocolW unknown Protocol <0x00000000>
016d:fixme:ntdll:NtQueryInformationProcess (process=0x17c) Unimplemented information class: ProcessSessionInformation
0163:fixme:sync:GetNamedPipeHandleStateW 0x188 0x452fed4 0x452fed8 (nil) (nil) (nil) 0: semi-stub
016d:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x33e968 1 C) semi-stub
0163:fixme:sync:GetNamedPipeHandleStateW 0x188 0x452fed4 0x452fed8 (nil) (nil) (nil) 0: semi-stub
0189:fixme:sync:GetNamedPipeHandleStateW 0x1e0 0x4b9fed4 0x4b9fed8 (nil) (nil) (nil) 0: semi-stub
0163:fixme:sync:GetNamedPipeHandleStateW 0x188 0x452fed4 0x452fed8 (nil) (nil) (nil) 0: semi-stub
016d:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x33f188 1 C) semi-stub
016d:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x33ef58 1 C) semi-stub
016d:fixme:crypt:CryptProtectMemory (0x3594b08 112 00000001): stub
016d:fixme:process:GetProcessWorkingSetSizeEx (0xffffffff,0x33efb8,0x33efb4,(nil)): stub
016d:fixme:crypt:CryptUnprotectMemory (0x3591fb0 112 00000001): stub
016d:fixme:crypt:CryptProtectMemory (0x3593c18 144 00000001): stub
0193:err:winediag:gnutls_initialize failed to load libgnutls, no support for encryption
016d:fixme:crypt:CryptUnprotectMemory (0x3594d40 144 00000001): stub
016d:fixme:crypt:CryptProtectMemory (0x3594f30 928 00000001): stub
0193:err:winediag:gnutls_initialize failed to load libgnutls, no support for encryption
0115:fixme:wtsapi:WTSQueryUserToken 1 0x84f3d0

@vufa
Copy link
Owner

vufa commented May 24, 2018

@RayneHwang 卸载,删除deepinwine目录,再重装试试?

sudo pacman -Rns deepin-wine-tim
rm -r ~/.deepinwine
yaourt deepin-wine-tim

@AEmpire
Copy link

AEmpire commented May 28, 2018

wine3.9依然无法打开,降级到3.7有效

@vufa
Copy link
Owner

vufa commented May 28, 2018

@AEmpire 是的,winehq有许多人反映了这个问题(bug 45199),根据Fabian Maurer 做的复现测试(regression test),可能是Archlinux打包的wine有问题,直接从源码编译安装wine不会导致这个问题,这个问题也已经提交到Archlinux bug report

@specter119 specter119 changed the title /opt/deepinwine/tools/add_hotkeys: 没有那个文件或目录 [wine 3.8] gdi32.dll failed to initialize Jun 3, 2018
@chenjunyu19
Copy link

已确认是 gcc 8 的锅,而不是打包问题。详见 https://bugs.winehq.org/show_bug.cgi?id=45199#c16

@xiayyu
Copy link

xiayyu commented Jul 23, 2018

经测试,https://bugs.archlinux.org/task/58833提到的替换优化参数方法有效,gcc版本8.1.1。
具体操作办法参考https://wiki.archlinux.org/index.php/Arch_Build_System#Retrieve_PKGBUILD_source_using_Git

@vufa
Copy link
Owner

vufa commented Jul 24, 2018

@xiayyuhttps://bugs.archlinux.org/task/58833 里的第一个回复吗?看起来是修改了wine的编译参数,也就是在安装AUR包的时候重新编译安装wine?

@kmvan
Copy link
Contributor

kmvan commented Sep 1, 2018

感谢贡献。manjaro+xfce 反馈:
wine 3.14 版同遇到 gdi32.dll 错误

002b:err:winediag:gnutls_initialize failed to load libgnutls, no support for encryption
0009:err:module:LdrInitializeThunk "gdi32.dll" failed to initialize, aborting
0009:err:module:LdrInitializeThunk Initializing dlls for L"c:\\Program Files\\Tencent\\TIM\\Bin\\TIM.exe" failed, status c0000005

@v0y4g3r
Copy link

v0y4g3r commented Sep 12, 2018

Manjaro+KDE, wine 3.15 遇到同样的问题

@HallWoodZhang
Copy link

现在3.16都更新了,还有这个问题吗?

@kmvan
Copy link
Contributor

kmvan commented Sep 16, 2018

3.16 arch还没更新,估计就这几天,更新后我来汇报

@v0y4g3r
Copy link

v0y4g3r commented Sep 16, 2018

Arch更新了,Manjaro还没有

@ghost
Copy link

ghost commented Sep 17, 2018

Arch wine3.16-1依然打不开tim

@vufa
Copy link
Owner

vufa commented Sep 17, 2018

@RayneHwang @HallWoodZhang @kmvan @c0per 根据wineHQ的Bob Wya测试,如果编译wine时用gcc 8.2.0 和参数 -O0(不优化),就能使TIM工作,这也是Archlinux改用gcc8编译wine后导致大量应用不能运行的原因,暂时想不到如何解决这一问题。

@kmvan
Copy link
Contributor

kmvan commented Sep 17, 2018

@RayneHwang @HallWoodZhang @kmvan @c0per 根据wineHQ的Bob Wya测试,如果编译wine时用gcc 8.2.0 和参数 -O0(不优化),就能使TIM工作,这也是Archlinux改用gcc8编译wine后导致大量应用不能运行的原因,暂时想不到如何解决这一问题。

这样的话,只能自己编译并打包成一个容器了哦。

@vufa
Copy link
Owner

vufa commented Sep 29, 2018

wine 3.17 修复了这个问题: Wine 3.17 defines all of the functions mentioned in this bug report 45199,Archlinux 已经更新了wine 3.17-1,更新后我这里能够正常运行,你们测试一下,如果解决了,就关闭这个issue。

@BlindingDark
Copy link

BlindingDark commented Sep 30, 2018

自测 manjaro 手动下载更新 wine 3.17-1 后运行正常.
在我这边直接访问原地址下载速度几乎为0, 所以我分流了一个, 有爱自取
https://pan.baidu.com/s/1_2SjyxYC-DBwVpSmh4VLjw

安装方式 -U 参数后跟路径, 例:

sudo pacman -U ./tmp/wine-3.17-1-x86_64.pkg.tar.xz

@specter119
Copy link
Author

@countstarlight manjaro 现在还在 3.15 估计需要再等等,等 manjaro 更完没问题再关?

@vufa
Copy link
Owner

vufa commented Sep 30, 2018

@specter119 好的:-)

@kmvan
Copy link
Contributor

kmvan commented Sep 30, 2018

自测 manjaro 手动下载更新 wine 3.17-1 后运行正常.
在我这边直接访问原地址下载速度几乎为0, 所以我分流了一个, 有爱自取
https://pan.baidu.com/s/1_2SjyxYC-DBwVpSmh4VLjw

安装方式 -U 参数后跟路径, 例:

sudo pacman -U ./tmp/wine-3.17-1-x86_64.pkg.tar.xz

3.17版有没有试过直接安装tim.qq.com版本的会怎样?

@BlindingDark
Copy link

3.17版有没有试过直接安装tim.qq.com版本的会怎样?

在我这 tim.qq.com 一直有问题,使用 deepin.com.qq.office 则非常不错。

@HallWoodZhang
Copy link

已经确认wine3.17直接运行TIM2.0.0没有明显影响使用的bug

@kmvan
Copy link
Contributor

kmvan commented Oct 11, 2018

manjaro 目前还为有3.17之更新,等待中

@specter119
Copy link
Author

@countstarlight 之前已经手动装wine 3.17没有问题,今天发现manjaro源更新了,重新安装一遍,一切正常,谢谢。
这个issue可以关了。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants