View Issue Details

IDProjectCategoryView StatusLast Update
0001904OpenMPTGeneralpublic2025-07-03 11:58
ReporterStarWolf3000 Assigned Tomanx  
PrioritylowSeveritycrashReproducibilityalways
Status feedbackResolutionopen 
Platformx86 / x64OSWineOS VersionWine 10.11
Product VersionOpenMPT 1.32.02.00 / libopenmpt 0.8.1 (current stable) 
Target VersionOpenMPT 1.32.03.00 / libopenmpt 0.8.2 (upcoming stable)Fixed in VersionOpenMPT 1.32.03.00 / libopenmpt 0.8.2 (upcoming stable) 
Summary0001904: Integration broken in Wine 10.11
Description

I've run the latest version of OpenMPT before on wine-staging 10.9 on Arch, but todays (yesterdays, since it released on 30 Jun) update put wine-staging to 10.11, and OpenMPT refuses to boot.

If I run it through my .desktop file, it uses 100% CPU on one core. If I run the same command in terminal, I get this output (but not 100% CPU usage):

002c:fixme:winediag:loader_init wine-staging 10.11 is a testing version containing experimental patches.
002c:fixme:winediag:loader_init Please mention your exact version when filing bug reports on winehq.org.
0024:fixme:winediag:loader_init wine-staging 10.11 is a testing version containing experimental patches.
0024:fixme:winediag:loader_init Please mention your exact version when filing bug reports on winehq.org.
0024:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 000000000011FA04, 000000000011FA20 000000000011FA00
0024:fixme:nls:get_dummy_preferred_ui_language (0x38 0x407 000000000011FA04 000000000011FA20 000000000011FA00) returning a dummy value (current locale)
0024:fixme:process:RegisterApplicationRestart (L" /RestartByRestartManager:52FDD9D5-1A45-4bba-B02F-A18617C07791",0)
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0024:fixme:shell:InitNetworkAddressControl stub
0120:fixme:kernelbase:AppPolicyGetThreadInitializationType FFFFFFFFFFFFFFFA, 000000000106FF50
0024:fixme:htmlhelp:HtmlHelpW HH case HH_INITIALIZE not handled.
0024:fixme:gdiplus:resample_bitmap_pixel_premult Unimplemented interpolation 7
0024:err:virtual:virtual_setup_exception stack overflow 2688 bytes addr 0x6ffffff76f62 stack 0x20580 (0x20000-0x21000-0x120000)

When I disable Wine integration via the ini, I can run OpenMPT just fine. So something is messed up with the Wine integration when Wine switched to 10.11.
I have two other programs inside this same prefix (one even being a 32-bit program running in WoW64), and they work without issue, however they also do not have any Wine integration.

Desktop is KDE Plasma, running on Wayland, KWin window manager and Wayland compositor (Xwayland is available).

Steps To Reproduce
  1. Have wine-staging 10.11 installed (very recent)
  2. Have OpenMPT 1.32.02.00 (64-bit) installed inside a prefix.
  3. Run OpenMPT.
  4. Enable Wine integration in OpenMPT.
  5. Restart to trigger compilation of integration.
  6. OpenMPT will be stuck at the logo and not doing anything.

Expected:
Opens another console which does compilation, and then restarts with integration enabled.

Additional Information

I was able to reproduce this also in a clean prefix with a fresh OpenMPT unpacked and Wine integration enabled.

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

Activities

StarWolf3000

StarWolf3000

2025-07-01 09:46

reporter   ~0006408

Apparently related post in the forum: https://forum.openmpt.org/index.php?topic=5792.msg50899#msg50899

manx

manx

2025-07-02 10:13

administrator   ~0006410

Do you happen to know if the hang also affected Wine 9.0?

StarWolf3000

StarWolf3000

2025-07-02 12:16

reporter   ~0006411

While I did use Wine 9 on my Raspi 4 (with box64), I never used the integration on that platform.

And on desktop it only has been since March running my Arch setup, which only provided Wine 10.x in the last months. So no, I cannot give reliable feedback on this.

funute

funute

2025-07-03 06:42

reporter   ~0006412

Last edited: 2025-07-03 06:43

+1, starting to run into this with the wine-10.11-1 package. Similar setup as reporter - Arch Linux, KDE Plasma, Wayland. I can confirm that this started happening starting from 10.11 (updated on 2025-06-30) - OpenMPT with Wine integration enabled works after downgrading to wine-10.9-1 but does not work after reinstalling wine-10.11-1.

For those running into this, workaround is to find mptrack.ini file in AppData, search for [WineSupport], and change Enabled=0.

manx

manx

2025-07-03 07:02

administrator   ~0006413

So, if the issues did not start with Wine 9.0, it is almost certainly not the Wine ELF->PE transition that is causing problems. Makes the bug even more mysterious.

The workaround that @funute mentions is the recommended one for now (for installer-based installations of OpenMPT). With a portable installation of OpenMPT, mptrack.ini will be in the same directory as OpenMPT.exe.

manx

manx

2025-07-03 07:25

administrator   ~0006414

reproduced on Debian Stable with WineHQ Wine packages 10.11

StarWolf3000

StarWolf3000

2025-07-03 07:36

reporter   ~0006415

Also to just rule out any issues with just the modern release of OpenMPT, I also tested the legacy build, with the same result.

manx

manx

2025-07-03 07:43

administrator   ~0006416

@StarWolf3000 thanks

It appears to happen between detecting Wine itself (which works fine), and even only trying to build/load the Wine Integration libraries. Very strange.

StarWolf3000

StarWolf3000

2025-07-03 07:57

reporter   ~0006417

The changes for 10.9->10.10 and 10.10->10.11 are quite a lot (10.10 was skipped in Arch AFAIR):

Wine 10.10

Wine 10.11

manx

manx

2025-07-03 07:59

administrator   ~0006418

Wine 10.10 appears to not be affected (again, WineHQ packages on Debian stable)

StarWolf3000

StarWolf3000

2025-07-03 08:16

reporter   ~0006419

Output from winedbg (10.11):

002c:fixme:winediag:loader_init wine-staging 10.11 is a testing version containing experimental patches.
002c:fixme:winediag:loader_init Please mention your exact version when filing bug reports on winehq.org.
0024:fixme:winediag:loader_init wine-staging 10.11 is a testing version containing experimental patches.
0024:fixme:winediag:loader_init Please mention your exact version when filing bug reports on winehq.org.
WineDbg starting on pid 0130
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
0x006ffffff3fdf9 ntdll+0xfdf9: retq
Wine-dbg>next
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
0134:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 000000000011FA04, 000000000011FA20 000000000011FA00
0134:fixme:nls:get_dummy_preferred_ui_language (0x38 0x407 000000000011FA04 000000000011FA20 000000000011FA00) returning a dummy value (current locale)
0134:fixme:process:RegisterApplicationRestart (L" /RestartByRestartManager:2BD2B180-B32C-4017-AB26-876CE80DBE86",0)
0134:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0134:fixme:shell:InitNetworkAddressControl stub
013c:fixme:kernelbase:AppPolicyGetThreadInitializationType FFFFFFFFFFFFFFFA, 000000000106FF50
0134:fixme:htmlhelp:HtmlHelpW HH case HH_INITIALIZE not handled.
0134:fixme:gdiplus:resample_bitmap_pixel_premult Unimplemented interpolation 7
Unhandled exception: page fault on read access to 0x00000000007a0000 in 64-bit code (0x006ffffff889a0).
012c:fixme:dbghelp:elf_search_auxv can't find symbol in module
Register dump:
 rip:00006ffffff889a0 rsp:000000000011e978 rbp:000000007ffc0000 eflags:00010206 (  R- --  I   - -P- )
 rax:000000000077ef70 rbx:0000000000000002 rcx:0000000000000000 rdx:000000000077ef78
 rsi:000000000077ef40 rdi:000000000077ef70  r8:00000001fffffffc  r9:0000000000021088 r10:0000000000140000
 r11:000000000077ed10 r12:000000000011e9f0 r13:000000000000000a r14:000000000011e9d0 r15:000000000011e9e0
Stack dump:
0x0000000011e978:  00006fffffee0aa4 000000000011e9d0
0x0000000011e988:  000000000073dca0 000000000011eb88
0x0000000011e998:  00006fff00000002 0000000000000003
0x0000000011e9a8:  0000000200000020 000000000073dd40
0x0000000011e9b8:  0000000000000014 0000000000000000
0x0000000011e9c8:  0000000000000104 0000000000140012
0x0000000011e9d8:  000000000077ef40 0000000000000000
0x0000000011e9e8:  0000000000000001 0000000000000030
0x0000000011e9f8:  0000000000000000 000000000011e9d0
0x0000000011ea08:  00006fff00000000 0000000000000000
0x0000000011ea18:  0000000000000000 0000000000000000
0x0000000011ea28:  0000000000000000 0000000000140000
Backtrace:
=>0 0x006ffffff889a0 in ntdll (+0x589a0) (0x0000007ffc0000)
  1 0x006fffffee0aa4 in kernel32 (+0x30aa4) (0x0000007ffc0000)
  2 0x00000140034bb5 in openmpt (+0x34bb5) (0x0000000011eaf9)
  3 0x000001400ee0a1 in openmpt (+0xee0a1) (0x0000000011ebd0)
  4 0x000001400eeb14 in openmpt (+0xeeb14) (0x0000000011fb50)
  5 0x00000140161152 in openmpt (+0x161152) (0x0000000011fb50)
  6 0x0000014016266d in openmpt (+0x16266d) (0x00000140000000)
  7 0x00000140604103 in openmpt (+0x604103) (0x00000140000000)
  8 0x000001405c754e in openmpt (+0x5c754e) (0000000000000000)
  9 0x006fffffec49a9 in kernel32 (+0x149a9) (0000000000000000)
  10 0x006ffffff3fdc3 in ntdll (+0xfdc3) (0000000000000000)
0x006ffffff889a0 ntdll+0x589a0: movzbl (%rdx, %r9), %ecx
Wine-dbg>
manx

manx

2025-07-03 08:45

administrator   ~0006420

Wine itself crashes in kernel32.dll:wine_get_dos_file_name("/"). That's a Wine bug.

manx

manx

2025-07-03 09:00

administrator   ~0006421

Probably caused by https://gitlab.winehq.org/wine/wine/-/commit/96cd811903e3d3f227c39e12235725baf793f4b9 (which is in 10.11) and maybe fixed by https://gitlab.winehq.org/wine/wine/-/commit/aae0f624d48d1e4f79e6947798e61b4d1006bf76 (which is not in 10.11).

I'll blacklist Wine 10.11, as there is really nothing else we can do if this is indeed the root cause.

manx

manx

2025-07-03 11:16

administrator   ~0006422

Crash is reproducible with winepath -w /.

Upstream bug: https://bugs.winehq.org/show_bug.cgi?id=58435.

manx

manx

2025-07-03 11:30

administrator   ~0006423

Wine 10.11 is blacklisted in:

There is really nothing we can do. This is clearly a Wine bug, and likely already fixed for 10.12.

You might want to report this issue to Arch and FreeBSD, and ask them if they could include a fix backport from upstream. Linking this issue is probably helpful.

I did not however verify that the linked upstream commit actually fixes our issue. That would require building Wine myself, which I consider not worth the effort at the moment.

I will leave this issue open until someone verifies that either current Wine git master or Wine 10.12 (once released) works.

Issue History

Date Modified Username Field Change
2025-07-01 07:17 StarWolf3000 New Issue
2025-07-01 09:46 StarWolf3000 Note Added: 0006408
2025-07-02 05:26 manx Assigned To => manx
2025-07-02 05:26 manx Status new => acknowledged
2025-07-02 05:26 manx Priority normal => low
2025-07-02 10:13 manx Note Added: 0006410
2025-07-02 12:16 StarWolf3000 Note Added: 0006411
2025-07-03 06:42 funute Note Added: 0006412
2025-07-03 06:43 funute Note Edited: 0006412
2025-07-03 07:02 manx Note Added: 0006413
2025-07-03 07:25 manx Status acknowledged => confirmed
2025-07-03 07:25 manx Note Added: 0006414
2025-07-03 07:36 StarWolf3000 Note Added: 0006415
2025-07-03 07:43 manx Note Added: 0006416
2025-07-03 07:57 StarWolf3000 Note Added: 0006417
2025-07-03 07:59 manx Note Added: 0006418
2025-07-03 08:01 manx OS Arch Linux => Wine
2025-07-03 08:01 manx OS Version 6.15.4-arch2-1 => Wine 10.11
2025-07-03 08:16 StarWolf3000 Note Added: 0006419
2025-07-03 08:45 manx Note Added: 0006420
2025-07-03 09:00 manx Note Added: 0006421
2025-07-03 09:21 manx Fixed in Version => OpenMPT 1.32.03.00 / libopenmpt 0.8.2 (upcoming stable)
2025-07-03 09:21 manx Target Version => OpenMPT 1.32.03.00 / libopenmpt 0.8.2 (upcoming stable)
2025-07-03 11:16 manx Note Added: 0006422
2025-07-03 11:30 manx Note Added: 0006423
2025-07-03 11:30 manx Status confirmed => feedback
2025-07-03 11:58 StarWolf3000 Summary Not working after upgrading wine-staging to 10.11 => Integration broken in Wine 10.11