WOW64 mode does not seem to work on anything

Questions about Wine on Linux
Locked
theofficialgman
Newbie
Newbie
Posts: 4
Joined: Wed Apr 12, 2023 9:58 pm

WOW64 mode does not seem to work on anything

Post by theofficialgman »

I am running wine 8.5 from the binaries provided in the wine ubuntu repos and I get this error on all 32bit CLI and GUI programs

Code: Select all

0158:err:environ:init_peb starting L"Z:\\tmp\\hh2d.golden.exe" in experimental wow64 mode
0158:err:module:load_wow64_ntdll failed to load L"\\??\\C:\\windows\\syswow64\\ntdll.dll" error c0000135
I have installed the i386 wine support with the only addition of renaming the wine and wine-loader binaries to something different so that wine64 does not see them. If I don't rename the binaries, then wine launches with the old i386 mode requiring linux 32bit support. To use the new wow64 mode, I am following the instructions according to the release notes.
When the 32-bit Wine loader isn't found, 32-bit applications are started in
the new experimental "Windows-like" WoW64 mode (where 32-bit code runs inside
a 64-bit host process).
Developers and some forum members claim that WOW64 is working in some capacity however this does not seem to be the case. I have tested with multiple CLI and GUI based applications and all produce the above error in this mode.

Please if any developer could respond with a testcase in which they know the mode works it would be much appreciated.
invisible kid
Level 5
Level 5
Posts: 354
Joined: Tue Dec 24, 2019 3:23 pm

Re: WOW64 mode does not seem to work on anything

Post by invisible kid »

Just a fellow user here. This works. I wouldn't change any names. For kicks I searched for ntdll.dll and had these:

Code: Select all

~/.wine/drive_c/windows/syswow64/ntdll.dll
~/.wine/drive_c/windows/system32/ntdll.dll
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: WOW64 mode does not seem to work on anything

Post by jkfloris »

To use the new WOW64 mode, you have to build Wine yourself with the --enable-archs=i386,x86_64 option.
When I try the program in the new wow64 mode it seems to work:

Code: Select all

wine hh2d.golden.exe
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00cc:err:environ:init_peb starting L"C:\\hh2d.golden.exe" in experimental wow64 mode
Hello, World!
theofficialgman
Newbie
Newbie
Posts: 4
Joined: Wed Apr 12, 2023 9:58 pm

Re: WOW64 mode does not seem to work on anything

Post by theofficialgman »

jkfloris wrote: Sat Apr 29, 2023 4:58 pm To use the new WOW64 mode, you have to build Wine yourself with the --enable-archs=i386,x86_64 option.
When I try the program in the new wow64 mode it seems to work:

Code: Select all

wine hh2d.golden.exe
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00cc:err:environ:init_peb starting L"C:\\hh2d.golden.exe" in experimental wow64 mode
Hello, World!
Thanks @jkfloris that is exactly the information I needed. I have built myself and confirmed it is working in my simple apps I wanted to run as well.
Kristof
Level 1
Level 1
Posts: 8
Joined: Mon Nov 15, 2021 4:22 am

Re: WOW64 mode does not seem to work on anything

Post by Kristof »

Hello,
I have exactly the same output when installing "earmaster7setup.exe". I'm running wine 8.6 on fedora.
I just like to have it working. What are the most easy option to get this working please?
Downgrade Wine (if yes, how can i do please)?
Don't use wow64? (if you, how can i do please)?
Thx a lot!
Kristof

Code: Select all

[kristofallaert@ptr-fzsh5gtp3v68mxl59jj Downloads]$ wine EarMaster7setup.exe
002c:fixme:winediag:LdrInitializeThunk wine-staging 8.6 is a testing version containing experimental patches.
002c:fixme:winediag:LdrInitializeThunk Please mention your exact version when filing bug reports on winehq.org.
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
010c:err:environ:init_peb starting L"Z:\\home\\kristofallaert\\Downloads\\EarMaster7setup.exe" in experimental wow64 mode
010c:err:module:load_wow64_ntdll failed to load L"\\??\\C:\\windows\\syswow64\\ntdll.dll" error c0000135
Programma kan niet worden gestart, of er is geen programma verbonden met het opg
egeven bestand.
ShellExecuteEx is mislukt: Interne fout.
RedeemerOfSouls
Level 1
Level 1
Posts: 6
Joined: Sat Sep 24, 2022 2:50 pm

Re: WOW64 mode does not seem to work on anything

Post by RedeemerOfSouls »

Just chiming in with my grievance as well (Clear Linux 39630 (https://clearlinux.org/)):

Code: Select all

dad@DadsGram~/Downloads $ wine --version
wine: command not found
To install wine use: sudo swupd bundle-add wine
dad@DadsGram~/Downloads $ wine64 --version
wine-8.0.1
dad@DadsGram~/Downloads $ wine AURGAViewer_Installer_x64_v1.0.8.0.exe 
wine: command not found
To install wine use: sudo swupd bundle-add wine
dad@DadsGram~/Downloads $ wine64 AURGAViewer_Installer_x64_v1.0.8.0.exe 
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0108:err:environ:init_peb starting L"Z:\\home\\dad\\Downloads\\AURGAViewer_Installer_x64_v1.0.8.0.exe" in experimental wow64 mode
0108:err:module:load_wow64_ntdll failed to load L"\\??\\C:\\windows\\syswow64\\ntdll.dll" error c0000135
RedeemerOfSouls
Level 1
Level 1
Posts: 6
Joined: Sat Sep 24, 2022 2:50 pm

Re: WOW64 mode does not seem to work on anything

Post by RedeemerOfSouls »

I was hoping that this bug has been handled by 8.12, though I see that is not the case. Anyone working on this? Any status update?
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: WOW64 mode does not seem to work on anything

Post by jkfloris »

The file you want to run is 32-bit*. So you need the 32bit part of Wine for now,
or does Clear Linux already build the Wine packages with the "--enable-archs=i386,x86_64" option?

*)

Code: Select all

file AURGAViewer_Installer_x64_v1.0.8.0.exe 
AURGAViewer_Installer_x64_v1.0.8.0.exe: PE32 executable (GUI) Intel 80386, for MS Windows, Nullsoft Installer self-extracting archive, 5 sections
RedeemerOfSouls
Level 1
Level 1
Posts: 6
Joined: Sat Sep 24, 2022 2:50 pm

Re: WOW64 mode does not seem to work on anything

Post by RedeemerOfSouls »

jkfloris wrote: Wed Jul 19, 2023 11:08 am The file you want to run is 32-bit*. So you need the 32bit part of Wine for now,
or does Clear Linux already build the Wine packages with the "--enable-archs=i386,x86_64" option?
I am not sure how they compiled it, but as of CL 39630 I have been advised to run wine64. Before that I was running

Code: Select all

wine AURGAViewer_Installer_x64_v1.0.8.0.exe
fine (... more-or-less). At any rate, they are currently struggling with Wine, and they could use some help from someone who knows the inside story better than me: https://github.com/clearlinux/distribution/issues/2925

At this point, this is what happens with Wine 8.12:

Code: Select all

dad@DadsGram~/Downloads $ wine AURGAViewer_Installer_x64_v1.0.8.0.exe 
wine: could not load ntdll.so: /usr/bin/../lib32/wine/x86_64-unix/ntdll.so: cannot open shared object file: No such file or directory
dad@DadsGram~/Downloads $ wine64 --version
wine: could not load ntdll.so: /usr/bin/../lib32/wine/x86_64-unix/ntdll.so: cannot open shared object file: No such file or directory
dad@DadsGram~/Downloads $ wine --version
wine: could not load ntdll.so: /usr/bin/../lib32/wine/x86_64-unix/ntdll.so: cannot open shared object file: No such file or directory
dad@DadsGram~/Downloads $ wine64 AURGAViewer_Installer_x64_v1.0.8.0.exe 
wine: could not load ntdll.so: /usr/bin/../lib32/wine/x86_64-unix/ntdll.so: cannot open shared object file: No such file or directory
Please feel free to chime in at the URL I posted above.
RedeemerOfSouls
Level 1
Level 1
Posts: 6
Joined: Sat Sep 24, 2022 2:50 pm

Re: WOW64 mode does not seem to work on anything

Post by RedeemerOfSouls »

Interestingly, after installing Bottles (https://usebottles.com/), I can now install Windows applications (specifically the AURGA viewer (see below))! Go figure!

Here, again, is what happens w/o Bottles:

Code: Select all

dad@DadsGram~/Downloads $ wine --version
wine-8.12
dad@DadsGram~/Downloads $ wine64 --version
wine-8.12
dad@DadsGram~/Downloads $ wine64 AURGAViewer_Installer_x64_v1.0.8.0.exe 
Segmentation fault (core dumped)
dad@DadsGram~/Downloads $ wine AURGAViewer_Installer_x64_v1.0.8.0.exe 
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
ioctl (GFEATURE): Broken pipe
ioctl (GFEATURE): Broken pipe
ioctl (GFEATURE): Broken pipe
ioctl (GFEATURE): Invalid argument
ioctl (GFEATURE): Invalid argument
ioctl (GFEATURE): Invalid argument
ioctl (GFEATURE): Invalid argument
ioctl (GFEATURE): Invalid argument
ioctl (GFEATURE): Invalid argument
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
ioctl (GFEATURE): Invalid argument
ioctl (GFEATURE): Invalid argument
ioctl (GFEATURE): Invalid argument
ioctl (GFEATURE): Invalid argument
ioctl (GFEATURE): Invalid argument
ioctl (GFEATURE): Invalid argument
ioctl (GFEATURE): Broken pipe
ioctl (GFEATURE): Broken pipe
ioctl (GFEATURE): Broken pipe
0024:err:environ:init_peb starting L"Z:\\home\\dad\\Downloads\\AURGAViewer_Installer_x64_v1.0.8.0.exe" in experimental wow64 mode
0024:err:module:load_wow64_ntdll failed to load L"\\??\\C:\\windows\\syswow64\\ntdll.dll" error c0000135
Segmentation fault (core dumped)
Locked