FormatMessage failed when trying to run exe

Questions about Wine on macOS.
Locked
PixelProof
Newbie
Newbie
Posts: 1
Joined: Wed Jun 21, 2023 5:14 pm

FormatMessage failed when trying to run exe

Post by PixelProof »

Hello, I am having an issue running Altium Designer 23 with Wine. It installed normally, and I have also installed dotnet40, dotnet48, and msxml6 Winetricks. However, when I try Altium's executable, I get the error:

ShellExecuteEx failed: 0024:err:start:fatal_error FormatMessage failed

I have searched this forum and seen that this probably means I am trying to run a 32-bit application. However, Altium Designer 23 is 64-bit, so I am quite confused why I get this error. I am running MacOS Sonoma Beta 2 on an M1 MacBook Pro. I would greatly appreciate it if you have any suggestions on how to fix this!

Here is my complete terminal output:
esync: up and running.
007c:err:module:open_builtin_so_file failed to load .so lib
007c:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000142
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"wineusb" failed to start: 1114
preloader: Warning: failed to reserve range 0000001400000000-0000001402ab3000
wine: failed to start L"C:\\Program Files\\Altium\\AD23\\X2.exe"
Application could not be started, or no application associated with the specified file.
ShellExecuteEx feilet: 0024:err:start:fatal_error FormatMessage failed
weoifj
Newbie
Newbie
Posts: 3
Joined: Mon Jul 03, 2023 8:38 pm

Re: FormatMessage failed when trying to run exe

Post by weoifj »

Hopefully this is relevant, or should I have started a new thread?

I'm getting the same error (ShellExecuteEx failed: 0024:err:start:fatal_error FormatMessage failed) when trying to run a completely different application. I'm running macOS Ventura, M1 MacBook Air & Intel Mac mini 2018, none of the official homebrew packages work (wine-stable, wine-devel, wine-staging from https://github.com/Gcenx/macOS_Wine_builds)

output (wine-devel 8.10):

preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
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
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
wine: failed to start L"c:\\Program Files (x86)\\TypingMaster\\tmaster4.exe"
Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: 0024:err:start:fatal_error FormatMessage failed

It's an old 32-bit application, but other 32-bit apps work fine.
Works well on the Linux version of Wine, and also used to work on Crossover on macOS 10.15 or newer (not sure if it was on an Intel or ARM machine, or which version of Crossover broke the app).

If someone wants to try to run this on their own computer, an archived trial version is available from https://archive.org/details/typmas46_zip, the only problem is that the installer is 16-bit.
I can upload/send tmaster4.exe (shows the same error without the data files) or the whole installed application (2 MB) if someone wants it and if that's ok?
weoifj
Newbie
Newbie
Posts: 3
Joined: Mon Jul 03, 2023 8:38 pm

Re: FormatMessage failed when trying to run exe

Post by weoifj »

weoifj wrote: Mon Jul 03, 2023 11:20 pm Works well on the Linux version of Wine, and also used to work on Crossover on macOS 10.15 or newer (not sure if it was on an Intel or ARM machine, or which version of Crossover broke the app).
OK, I tested: stopped working in CrossOver 22, used to work in CrossOver 21 (macOS Monterey VM (UTM.app) on an M1 MacBook Air).

Should I file a bug in WineHQ bugzilla?
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: FormatMessage failed when trying to run exe

Post by dimesio »

weoifj wrote: Thu Jul 06, 2023 9:28 am Should I file a bug in WineHQ bugzilla?
No; third party Wine versions are not supported here. Report problems with Crossover to Codeweavers.
weoifj
Newbie
Newbie
Posts: 3
Joined: Mon Jul 03, 2023 8:38 pm

Re: FormatMessage failed when trying to run exe

Post by weoifj »

Sure, but this *is* a vanilla macOS Wine bug. The only reason I also mentioned the Linux version and CrossOver was because I found it interesting that this currently works on Linux and used to work on a version of macOS Wine (CrossOver 21).
Locked