Errors during wine win32 or win64 prefix creation

Please help… I have been having trouble creating a win32 prefix after some system update. I cannot determine when the problem started but I know it was after some system update. I have a game installed as win32 and the date on the folder is 4 Sept 2022 so I know the problem started after that. The game still runs okay but now when a create a default or other win32 prefix I get the following problem in console and I do not see the drive_c/Program Files (x86) directory in the prefix directory. I re-searched a lot and have tried a lot of things but nothing has worked:

  • Re-installing and removing and installing wine-staging, wine-mono, winetricks and lutris.
  • I have no ~/.config/fontconfig folder.
  • Deleted default ~/.wine folder
  • Deleted ~/.cache folder.
  • I am also using an AMD video card so I know it is not a graphic driver issue.
  • Switched between X11 and Wayland compositor

Here is the console output:

❯ WINEARCH="win32" WINEPREFIX="$HOME/.wine-test" winecfg
wine: created the configuration directory '/home/.../.wine-test'
002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
002c:fixme:winediag:LdrInitializeThunk wine-staging 7.16 is a testing version containing experimental patches.
002c:fixme:winediag:LdrInitializeThunk Please mention your exact version when filing bug reports on winehq.org.
0048:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0050:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0050:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x80004002
0050:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x80004002
0050:err:ole:apartment_get_local_server_stream Failed: 0x80004002
0050:err:ole:start_rpcss Failed to open RpcSs service
0048:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x80004002
0048:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x80004002
0048:err:ole:apartment_get_local_server_stream Failed: 0x80004002
0048:fixme:imm:ImeSetActiveContext (00020026, 0): stub
0048:fixme:imm:ImmReleaseContext (00010020, 00020026): stub
002c:fixme:imm:ImeSetActiveContext (00010052, 1): stub
002c:fixme:imm:ImmReleaseContext (00010050, 00010052): stub
0078:err:winedevice:ServiceMain Failed to load L"C:\\windows\\system32\\win32k.sys"
0078:err:winedevice:ServiceMain Failed to load L"C:\\windows\\system32\\drivers\\dxgkrnl.sys"
0078:err:winedevice:ServiceMain Failed to load L"C:\\windows\\system32\\drivers\\dxgmms1.sys"
008c:err:setupapi:SetupDefaultQueueCallbackW copy error 1812 L"@C:\\windows\\system32\\drivers\\wineusb.sys,-1" -> L"C:\\windows\\inf\\wineusb.inf"
008c:fixme:file:NtLockFile I/O completion on lock not implemented yet
008c:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
008c:err:mscoree:LoadLibraryShim error reading registry key for installroot
008c:err:mscoree:LoadLibraryShim error reading registry key for installroot
008c:err:mscoree:LoadLibraryShim error reading registry key for installroot
008c:err:mscoree:LoadLibraryShim error reading registry key for installroot
008c:err:mscoree:LoadLibraryShim error reading registry key for installroot
008c:err:mscoree:LoadLibraryShim error reading registry key for installroot
008c:err:mscoree:LoadLibraryShim error reading registry key for installroot
008c:err:mscoree:LoadLibraryShim error reading registry key for installroot
009c:fixme:imm:ImeSetActiveContext (0001008C, 1): stub
009c:fixme:imm:ImmReleaseContext (00030082, 0001008C): stub
008c:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
008c:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
00ac:fixme:imm:ImeSetActiveContext (00030088, 1): stub
00ac:fixme:imm:ImmReleaseContext (00030092, 00030088): stub
0108:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0108:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0108:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0108:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0108:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0108:fixme:xinput:pdo_pnp IRP_MN_QUERY_ID type 5, not implemented!
wine: configuration in L"/home/.../.wine-test" has been updated.
0108:fixme:xinput:pdo_pnp IRP_MN_QUERY_ID type 5, not implemented!
0108:fixme:xinput:pdo_pnp IRP_MN_QUERY_ID type 5, not implemented!
0108:fixme:xinput:pdo_pnp IRP_MN_QUERY_ID type 5, not implemented!
0134:fixme:imm:ImeSetActiveContext (0003006E, 1): stub
0134:fixme:imm:ImmReleaseContext (00030074, 0003006E): stub

Try stable wine or try an older version of wine and wine-staging.

Tried older versions of staging (as far back as wine-staging-7.12-1-x86_64.pkg.tar.zst) and also tried normal wine. Same problem.

btw, I also removed all wine dependencies prior to reinstall and reverted to a prior kenel version.

sudo pacman -Rcsuv wine-staging wine-mono winetricks

Probably a strange issue with Xorg, since there is an error while displaying the interface.

Do you have more than one monitor? Try only enabling one monitor.

Isn’t it expected, on a wine32 prefix? This is the folder for the other (32 bits) Program Files in a 64 bit prefix.

Isn’t it expected, on a wine32 prefix? This is the folder for the other (32 bits) Program Files in a 64 bit prefix.

That is the problem, I specify WINEARCH=win32 but not 32 bit folders are being created.

Nope only one monitor

I just tried switching back to an older kernel and that did not work either.

I installed wine-staging.

$ wine --version
wine-7.18 (Staging)

win32

   ~   WINEARCH="win32" WINEPREFIX="$HOME/.wine-test" winecfg                                        ✔  43s  
wine: created the configuration directory '/home/user/.wine-test'
002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
002c:fixme:winediag:LdrInitializeThunk wine-staging 7.18 is a testing version containing experimental patches.
002c:fixme:winediag:LdrInitializeThunk Please mention your exact version when filing bug reports on winehq.org.
0048:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0050:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0048:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x80004002
0048:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x80004002
0048:err:ole:apartment_get_local_server_stream Failed: 0x80004002
0048:err:ole:start_rpcss Failed to open RpcSs service
0050:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x80004002
0050:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x80004002
0050:err:ole:apartment_get_local_server_stream Failed: 0x80004002
0050:fixme:imm:ImeSetActiveContext (00020026, 0): stub
0050:fixme:imm:ImmReleaseContext (00010020, 00020026): stub
002c:fixme:imm:ImeSetActiveContext (00010060, 1): stub
002c:fixme:imm:ImmReleaseContext (0001005E, 00010060): stub
0078:err:winedevice:ServiceMain Failed to load L"C:\\windows\\system32\\win32k.sys"
0078:err:winedevice:ServiceMain Failed to load L"C:\\windows\\system32\\drivers\\dxgkrnl.sys"
0078:err:winedevice:ServiceMain Failed to load L"C:\\windows\\system32\\drivers\\dxgmms1.sys"
008c:err:setupapi:SetupDefaultQueueCallbackW copy error 1812 L"@C:\\windows\\system32\\drivers\\wineusb.sys,-1" -> L"C:\\windows\\inf\\wineusb.inf"
0094:fixme:imm:ImeSetActiveContext (00010090, 1): stub
0094:fixme:imm:ImmReleaseContext (00010098, 00010090): stub
00f8:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
wine: configuration in L"/home/user/.wine-test" has been updated.
00f8:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00f8:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00f8:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
011c:fixme:imm:ImeSetActiveContext (00030052, 1): stub
011c:fixme:imm:ImmReleaseContext (00030058, 00030052): stub
   ~  ls .wine-test/drive_c/                                                                         ✔  35s  
 ProgramData  'Program Files'   users   windows

win64

   ~  WINEARCH="win64" WINEPREFIX="$HOME/.wine-test-64" winecfg                                              ✔ 
wine: created the configuration directory '/home/user/.wine-test-64'
002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
002c:fixme:winediag:LdrInitializeThunk wine-staging 7.18 is a testing version containing experimental patches.
002c:fixme:winediag:LdrInitializeThunk Please mention your exact version when filing bug reports on winehq.org.
0048:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0050:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0048:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x80004002
0048:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x80004002
0048:err:ole:apartment_get_local_server_stream Failed: 0x80004002
0048:err:ole:start_rpcss Failed to open RpcSs service
0050:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x80004002
0050:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x80004002
0050:err:ole:apartment_get_local_server_stream Failed: 0x80004002
0050:fixme:imm:ImeSetActiveContext (0000000000020026, 0): stub
0050:fixme:imm:ImmReleaseContext (0000000000010020, 0000000000020026): stub
002c:fixme:imm:ImeSetActiveContext (0000000000010060, 1): stub
002c:fixme:imm:ImmReleaseContext (000000000001005E, 0000000000010060): stub
0078:err:winedevice:ServiceMain Failed to load L"C:\\windows\\system32\\win32k.sys"
0078:err:winedevice:ServiceMain Failed to load L"C:\\windows\\system32\\drivers\\dxgkrnl.sys"
0078:err:winedevice:ServiceMain Failed to load L"C:\\windows\\system32\\drivers\\dxgmms1.sys"
0098:fixme:imm:ImeSetActiveContext (0000000000010090, 1): stub
0098:fixme:imm:ImmReleaseContext (0000000000010098, 0000000000010090): stub
00e4:fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
010c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
010c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
010c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
010c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
wine: configuration in L"/home/user/.wine-test-64" has been updated.
0150:fixme:imm:ImeSetActiveContext (000000000004004C, 1): stub
0150:fixme:imm:ImmReleaseContext (0000000000040090, 000000000004004C): stub
    ~  ls .wine-test-64/drive_c                                                                       ✔  16s  
 ProgramData  'Program Files'  'Program Files (x86)'   users   windows

However both times winecfg pops up and it seems to work.

I just tried win64 well and seems we have the same behavior (your output also shows
err:winedevice:ServiceMain Failed to load L"C:\windows\system32\win32k.sys failing to load so maybe there is no problem?

Yes the winecfg will pop up but I never saw those errors in console before this.

So you do not have a problem “creating a win32 prefix”, you just see messages not seen previously? You might want to adjust the thread title.

I adjusted it for now. I will try and install a game and see if that works…

:man_facepalming:

Well that are debug messages…

WINEDEBUG=-all WINEARCH="win32" WINEPREFIX="$HOME/.wine-test" winecfg 

And all noisy debug message are gone. :smiley:

The Program Files (x86) is for a 64 bits prefix, did you read before replying? So what you describe IS a 32 bits prefix. You don’t have the Program Files (x86) folder obviously, as in a 32 bits prefix, guess what, it is called Program Files.

There are no issues now. The errors in the console are there but the game installed and runs fine now. It might have been the re-installs of wine-staging, wine-mono, etc hard to tell but the previous problem was that the game failed to install either with win32 or win64. Just takes so long to test each fix attempt because installing the game takes time since each install was around 45G (game is Wolfenstein New Order from Epic Game Store). I did so many changes that I don’t really know what fixed it :expressionless:

Anyway thank you all for the help, really appreciate it!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.