Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wine can't load comctl32.dll
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
NTICompass
Apprentice
Apprentice


Joined: 11 Jun 2008
Posts: 170
Location: /home/nticompass/

PostPosted: Sun Sep 03, 2017 4:30 pm    Post subject: Wine can't load comctl32.dll Reply with quote

I am using wine-2.3 (Staging), compiled with gcc 6.3.0. I have both the 32- and 64-bit versions installed. (More info, like USE flags and such: https://pastebin.com/ZeYTSWL9)

I am having an issue opening pretty much any wine exe (like `wine notepad`), including winecfg. This is what I am seeing:

Code:
nticompass@hypercube ~ % winecfg
fixme:winediag:start_process Wine Staging 2.3 is a testing version containing experimental patches.
fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
err:module:attach_process_dlls "comctl32.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\winecfg.exe" failed, status c0000005


How can I go about debugging this to try to figure out what is wrong? I tried copying comctl32.dll (and even comdlg32.dll) from a Windows 7 install and using `WINEDLLOVERRIDES`, but that didn't help. I also tried a clean wine prefix, which gives me:

Code:
nticompass@hypercube ~ % WINEARCH=win64 WINEPREFIX=~/.wine64 winecfg
wine: created the configuration directory '/home/nticompass/.wine64'
fixme:winediag:start_process Wine Staging 2.3 is a testing version containing experimental patches.
fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
err:ole:get_local_server_stream Failed: 80004002
err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
err:ole:get_local_server_stream Failed: 80004002
fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
fixme:dwmapi:DwmIsCompositionEnabled 0x6dbd1518
fixme:iphlpapi:NotifyIpInterfaceChange (family 0, callback 0x69ebd3de, context 0x9c6740, init_notify 0, handle 0x12ae1c0): stub
wine: Unhandled page fault on execute access to 0x00000000 at address (nil) (thread 003b), starting debugger...
err:seh:start_debugger Couldn't start debugger ("winedbg --auto 58 44") (2)
Read the Wine Developers Guide on how to set up winedbg or another debugger
wine: configuration in '/home/nticompass/.wine64' has been updated.
err:module:attach_process_dlls "comctl32.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\winecfg.exe" failed, status c0000005


Using `winedbg` wasn't much help either:

Code:
nticompass@hypercube ~ % WINEARCH=win64 WINEPREFIX=~/.wine64 winedbg winecfg
wine: created the configuration directory '/home/nticompass/.wine64'
fixme:winediag:start_process Wine Staging 2.3 is a testing version containing experimental patches.
fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
err:ole:get_local_server_stream Failed: 80004002
err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
err:ole:get_local_server_stream Failed: 80004002
fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
fixme:dwmapi:DwmIsCompositionEnabled 0x6dbd1518
fixme:iphlpapi:NotifyIpInterfaceChange (family 0, callback 0x69ebd3de, context 0x9c6740, init_notify 0, handle 0x12ae1c0): stub
wine: Unhandled page fault on execute access to 0x00000000 at address (nil) (thread 003b), starting debugger...
err:seh:start_debugger Couldn't start debugger ("winedbg --auto 58 44") (2)
Read the Wine Developers Guide on how to set up winedbg or another debugger
wine: configuration in '/home/nticompass/.wine64' has been updated.
Couldn't start process 'winecfg '


What could be wrong here? How can I trace this issue to try to figure it out? I've had other issues in the past where all I needed to do was to recompile a library with gcc instead of clang (the default on my system).
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 11184

PostPosted: Sun Sep 03, 2017 5:50 pm    Post subject: Reply with quote

I seem to recall seeing that if the files were not executable. Are they stored on a filesystem that was mounted with noexec? (Remember that some special options imply noexec if not overridden.) Please show the output of cat /proc/self/mountinfo and indicate on which filesystem your Wine files are stored.
Back to top
View user's profile Send private message
NTICompass
Apprentice
Apprentice


Joined: 11 Jun 2008
Posts: 170
Location: /home/nticompass/

PostPosted: Sun Sep 03, 2017 9:17 pm    Post subject: Reply with quote

Currently, my `/home` partition is ext4. It used to be btrfs, but there was a weird issue with that file system. I had to create a new `/home` partition and copy over what I could (there were a lot of errors on the btrfs file system).

This issue started after that new ext4 `/home` partition was created. I don't think I missed any files in the migration, but then again I tried with a clean WINEPREFIX and still had the same issue.

Anyway, here's the file you asked for:

Code:
17 0 8:4 / / rw,relatime - ext4 /dev/sda4 rw,data=ordered
18 17 0:6 / /dev rw,nosuid,relatime - devtmpfs devtmpfs rw,size=10240k,nr_inodes=1021178,mode=755
19 17 0:4 / /proc rw,nosuid,nodev,noexec,relatime - proc proc rw
20 17 0:17 / /run rw,nodev,relatime - tmpfs tmpfs rw,size=817256k,mode=755
21 18 0:15 / /dev/mqueue rw,nosuid,nodev,noexec,relatime - mqueue mqueue rw
22 18 0:18 / /dev/pts rw,nosuid,noexec,relatime - devpts devpts rw,gid=5,mode=620,ptmxmode=000
23 18 0:19 / /dev/shm rw,nosuid,nodev,noexec,relatime - tmpfs shm rw
24 17 0:20 / /sys rw,nosuid,nodev,noexec,relatime - sysfs sysfs rw
25 24 0:8 / /sys/kernel/debug rw,nosuid,nodev,noexec,relatime - debugfs debugfs rw
26 24 0:21 / /sys/fs/fuse/connections rw,nosuid,nodev,noexec,relatime - fusectl fusectl rw
27 24 0:22 / /sys/fs/cgroup rw,nosuid,nodev,noexec,relatime - tmpfs cgroup_root rw,size=10240k,mode=755
28 27 0:23 / /sys/fs/cgroup/openrc rw,nosuid,nodev,noexec,relatime - cgroup openrc rw,release_agent=/lib64/rc/sh/cgroup-release-agent.sh,name=openrc
29 27 0:24 / /sys/fs/cgroup/cpuset rw,nosuid,nodev,noexec,relatime - cgroup cpuset rw,cpuset
30 27 0:25 / /sys/fs/cgroup/cpu rw,nosuid,nodev,noexec,relatime - cgroup cpu rw,cpu
31 27 0:26 / /sys/fs/cgroup/cpuacct rw,nosuid,nodev,noexec,relatime - cgroup cpuacct rw,cpuacct
32 27 0:27 / /sys/fs/cgroup/memory rw,nosuid,nodev,noexec,relatime - cgroup memory rw,memory
33 27 0:28 / /sys/fs/cgroup/freezer rw,nosuid,nodev,noexec,relatime - cgroup freezer rw,freezer
34 17 8:2 / /boot rw,noatime - ext2 /dev/sda2 rw,block_validity,barrier,user_xattr,acl,stripe=4
35 17 254:3 / /home rw,relatime - ext4 /dev/mapper/hypercube-home rw,data=ordered
36 17 254:1 / /usr rw,relatime - ext4 /dev/mapper/hypercube-usr rw,data=ordered
37 17 254:0 / /opt rw,relatime - ext4 /dev/mapper/hypercube-opt rw,data=ordered
38 17 254:2 / /media/steam/linux rw,nosuid,nodev,relatime - ext4 /dev/mapper/hypercube-steam rw,data=ordered
39 19 0:29 / /proc/sys/fs/binfmt_misc rw,nosuid,nodev,noexec,relatime - binfmt_misc binfmt_misc rw
40 17 0:30 / /var/lib/nfs/rpc_pipefs rw,relatime - rpc_pipefs rpc_pipefs rw
41 20 0:31 / /run/user/1000 rw,relatime - tmpfs none rw,mode=700,uid=1000
Back to top
View user's profile Send private message
NTICompass
Apprentice
Apprentice


Joined: 11 Jun 2008
Posts: 170
Location: /home/nticompass/

PostPosted: Thu Sep 07, 2017 5:22 am    Post subject: Reply with quote

I posted this same issue over on Wine's forums and figured out a solution!

I have both clang and gcc installed. Most things use clang, but some things still need gcc. Oddly, sometimes clang makes 32-bit programs that segfault. Dunno why.

But anyway, I had to recompile media-libs/fontconfig and media-libs/freetype using gcc (instead of clang). Now `winecfg` (and everything else under wine) seems to work :-D

Wine forums: https://forum.winehq.org/viewtopic.php?f=8&t=29427
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum