http://bugs.winehq.org/show_bug.cgi?id=59041
Bug ID: 59041 Summary: Incorrect Casting for NET 10 Runtime Apps Product: Wine Version: 10.19 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: -unknown Assignee: wine-bugs@list.winehq.org Reporter: dreamsyntax@gmail.com Distribution: ---
Created attachment 79808 --> http://bugs.winehq.org/attachment.cgi?id=79808 Backtrace and terminal output
Upon upgrading some of my NET 9 Desktop Runtime WPF applications to NET 10, Wine now has different behavior with Ookii Dialogs.
A very simple application was built to easily reproduce this bug https://github.com/dreamsyntax/net10-bug-ookii-wine-repro
I have also attached an identical program but built with NET 9 to demonstrate the proper behavior.
Tested on Wine 10.19 (staging, dev and stable all tested on Debian Trixie as of 2025-11-24). I also tested on Arch linux on Wine 10.19 stable, which is where my attachments are ran on.
Reproduce steps 1. Make a brand new wine prefix 2. Install required .NET Desktop Runtime x64 (10.0.0 for bug repro) If testing NET 10 version (one with bug) - install: https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop...
If testing NET 9 version - install: https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop...
3. Run the test application (NET10WineBugReproduceWPF.exe) 4. Click the single button available in the UI 5. Wine will crash on NET 10 version; without ever having shown the file picker. Will not crash on NET 9 version.
6. On Windows and NET 9 versions, the FilePicker will appear, and upon choosing an EXE it will pop a messagebox with the filepath chosen.
NET10-BUILD--net10-bug-ookii-wine-repro.zip sha256:474949597616a1dc14cb3f03d91570fdc7ff9d425d872f50f3a40fd3a0a5f3c3
NET9-BUILD--net10-bug-ookii-wine-repro.zip sha256:c4c1c7ce33856c64df1157ad38f29da6e4222b4f33a6ed2a20bc4de4a556c2f2
http://bugs.winehq.org/show_bug.cgi?id=59041
dreamsyntax dreamsyntax@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|major |normal
http://bugs.winehq.org/show_bug.cgi?id=59041
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- Please try this one, maybe it's enough https://gitlab.winehq.org/wine/wine/-/merge_requests/9591
http://bugs.winehq.org/show_bug.cgi?id=59041
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Keywords| |download CC| |xerox.xerox2000x@gmail.com Ever confirmed|0 |1 Component|-unknown |comdlg32
--- Comment #2 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to Nikolay Sivov from comment #1)
Please try this one, maybe it's enough https://gitlab.winehq.org/wine/wine/-/merge_requests/9591
Hi, I gave this patch a try and the patch seems to fix this bug. The app behaves now as described by OP.
Note: I had to disable icu.dll and icuuc.dll otherwise I get crash below. Hopefully this will be fixed before code freeze:
I wine: Call from 00006FFFFFBED887 to unimplemented function icu.dll.ulocdata_getCLDRVersion, aborting wine: Call from 00006FFFFFBED887 to unimplemented function icu.dll.uloc_canonicalize, aborting