View Issue Details

IDProjectCategoryView StatusLast Update
0001424OpenMPTGeneralpublic2021-05-17 12:31
Reportermanx Assigned To 
Status confirmedResolutionopen 
Product VersionOpenMPT / libopenmpt 0.5.0 (upgrade first) 
Target VersionOpenMPT 1.30 / libopenmpt 0.6 (goals) 
Summary0001424: OpenMPT amd64 does not work in Wine on macOS

See <>.

TagsNo tags attached.
Has the bug occurred in previous versions?
Tested code revision (in case you know it)


Saga Musix

Saga Musix

2021-04-06 23:47

administrator   ~0004704

Related Wine bug report:

Saga Musix

Saga Musix

2021-04-06 23:52

administrator   ~0004705

Last edited: 2021-04-07 00:09

The only usages of _beginthreadex should be in PortAudio and RtAudio. PortAudio already can use CreateThread as an alternative for WinCE, so I'm not sure why they don't use it for plain Win32. Maybe we should enforce its usage on Win32 as well. RtAudio hardcodes its _beginthreadex usage. Maybe we can enforce that component to be disabled on macOS for now. The relevant code is not compiled into OpenMPT, so RtAudio should not be a problem.

I'll verify later that these solutions work on macOS.

Edit: It doesn't, the crash still occurs. Probably caused by one of our std::threads then.



2021-05-15 18:03

administrator   ~0004769

Do we know if building with VS2017 works for Wine on macOS?

Saga Musix

Saga Musix

2021-05-17 10:06

administrator   ~0004772

OpenMPT 1.28 works with Wine on macOS. Compiling the latest 1.30 code with VS2017 doesn't work. See attached log. It just freezes after that. (658 bytes)


2021-05-17 11:19

administrator   ~0004773

Do we know if this is due to a breaking change in later VS2017 updates, or due to our changes? i.e. does 1.28 with current VS2017 work?

Saga Musix

Saga Musix

2021-05-17 11:23

administrator   ~0004774

Recently-compiled 1.28 still works.



2021-05-17 11:32

administrator   ~0004775

So we could bisect trunk from 1.28 branch point on and find the change that broke Wine on macOS. And if it is fixable with reasonable effort, we could switch 1.30 (and maybe also 1.29) builds to VS2017 as a work-around.

Issue History

Date Modified Username Field Change
2021-02-28 14:07 manx New Issue
2021-02-28 14:08 manx Status new => confirmed
2021-02-28 14:10 manx Reproducibility have not tried => always
2021-04-06 23:47 Saga Musix Note Added: 0004704
2021-04-06 23:52 Saga Musix Note Added: 0004705
2021-04-06 23:54 Saga Musix Note Edited: 0004705
2021-04-06 23:54 Saga Musix Note Edited: 0004705
2021-04-07 00:09 Saga Musix Note Edited: 0004705
2021-05-15 18:03 manx Note Added: 0004769
2021-05-17 10:06 Saga Musix Note Added: 0004772
2021-05-17 10:06 Saga Musix File Added:
2021-05-17 11:19 manx Note Added: 0004773
2021-05-17 11:23 Saga Musix Note Added: 0004774
2021-05-17 11:32 manx Note Added: 0004775
2021-05-17 12:31 manx Product Version OpenMPT 1.30.00.* (current testing) => OpenMPT / libopenmpt 0.5.0 (upgrade first)