View Issue Details

IDProjectCategoryView StatusLast Update
0001424OpenMPTGeneralpublic2021-04-07 00:09
Reportermanx Assigned To 
PriorityhighSeverityblockReproducibilityalways
Status confirmedResolutionopen 
Product VersionOpenMPT 1.30.00.* (current testing) 
Target VersionOpenMPT 1.30 / libopenmpt 0.6 (goals) 
Summary0001424: OpenMPT amd64 does not work in Wine on macOS
Description

See <https://developercommunity.visualstudio.com/t/64-bit-exes-built-with-vs2019-crash-under-wine-on/1248753>.

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

Activities

Saga Musix

Saga Musix

2021-04-06 23:47

administrator   ~0004704

Related Wine bug report: https://bugs.winehq.org/show_bug.cgi?id=49802

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.

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