https://bugs.winehq.org/show_bug.cgi?id=57645
Bug ID: 57645 Summary: DOTNET 4.8 doesn't list anymore serial ports Product: Wine Version: 10.0-rc4 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: serial Assignee: wine-bugs@winehq.org Reporter: devel@easynet.dev Distribution: ---
Created attachment 77771 --> https://bugs.winehq.org/attachment.cgi?id=77771 Debug using WINEDEBUG="+comm"
LokProgrammer 5.2.10 on WineHQ 10-rc3 or rc4 doesn't list anymore the serial ports. Using WineHQ 9.0 was able to list serial ports but it can't communicates with the hardware.
https://bugs.winehq.org/show_bug.cgi?id=57645
EasyNetDev devel@easynet.dev changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet, hardware, | |regression URL| |https://www.esu.eu/en/downl | |oads/software/lokprogrammer | |/
https://bugs.winehq.org/show_bug.cgi?id=57645
EasyNetDev devel@easynet.dev changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|DOTNET 4.8 doesn't list |LokProgrammer 5 with .NET |anymore serial ports |4.8 doesn't list anymore | |serial ports
https://bugs.winehq.org/show_bug.cgi?id=57645
EasyNetDev devel@easynet.dev changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Debian
https://bugs.winehq.org/show_bug.cgi?id=57645
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.winehq.org/sho | |w_bug.cgi?id=56291 Status|UNCONFIRMED |NEW Version|10.0-rc4 |9.2 Summary|LokProgrammer 5 with .NET |LokProgrammer 5 with .NET |4.8 doesn't list anymore |4.8 doesn't list serial |serial ports |ports anymore CC| |alexhenrie24@gmail.com, | |xerox.xerox2000x@gmail.com Regression SHA1| |2b01a64ff2562f7a4eed6bea03b | |5b9d68bc5bdf3 Ever confirmed|0 |1
--- Comment #1 from Alex Henrie alexhenrie24@gmail.com --- I can confirm: The "Serial Port" drop-down is empty. `git bisect` says:
2b01a64ff2562f7a4eed6bea03b5b9d68bc5bdf3 is the first bad commit commit 2b01a64ff2562f7a4eed6bea03b5b9d68bc5bdf3 (HEAD) Author: Louis Lenders xerox.xerox2000x@gmail.com AuthorDate: Sat Feb 3 14:05:03 2024 +0100 Commit: Alexandre Julliard julliard@winehq.org CommitDate: Mon Feb 5 13:25:36 2024 +0100
wbemprox: Add property 'Caption' to Win32_PnPEntity.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56291
dlls/wbemprox/builtin.c | 3 +++ 1 file changed, 3 insertions(+)
https://bugs.winehq.org/show_bug.cgi?id=57645
--- Comment #2 from Hans Leidekker hans@meelstraat.net --- Please attach a WINEDEBUG=+wbemprox log.
https://bugs.winehq.org/show_bug.cgi?id=57645
--- Comment #3 from Alex Henrie alexhenrie24@gmail.com --- Created attachment 77775 --> https://bugs.winehq.org/attachment.cgi?id=77775 WINEDEBUG=+wbemprox
Here you go. It looks like the program expects the captions of serial devices to include the word "COM":
0024:trace:wbemprox:wbem_services_ExecQuery 0851A1D0, L"WQL", L"SELECT Caption, Service FROM Win32_PnpEntity WHERE Caption LIKE '%(COM%'", 0x30, 00000000, 00D3ED84
https://bugs.winehq.org/show_bug.cgi?id=57645
--- Comment #4 from Hans Leidekker hans@meelstraat.net --- (In reply to Alex Henrie from comment #3)
Created attachment 77775 [details] WINEDEBUG=+wbemprox
Here you go. It looks like the program expects the captions of serial devices to include the word "COM":
0024:trace:wbemprox:wbem_services_ExecQuery 0851A1D0, L"WQL", L"SELECT Caption, Service FROM Win32_PnpEntity WHERE Caption LIKE '%(COM%'", 0x30, 00000000, 00D3ED84
This query couldn't have returned an entry before this patch but there may be a fallback path that's no longer taken after this patch.
https://bugs.winehq.org/show_bug.cgi?id=57645
--- Comment #5 from EasyNetDev devel@easynet.dev --- Created attachment 77777 --> https://bugs.winehq.org/attachment.cgi?id=77777 WINEDEBUG=+wbemprox on LokProgrammer 5
https://bugs.winehq.org/show_bug.cgi?id=57645
--- Comment #6 from Louis Lenders xerox.xerox2000x@gmail.com --- I tested this query "SELECT Caption, Service FROM Win32_PnpEntity WHERE Caption LIKE '%(COM%'" on windows and one entry showed up (something like 'Intel device .... (COM3)' The reported classguid was {4d36e978-e325-11ce-bfc1-08002be10318} (ports) but this doesn't even show up when I run this query in wine.
If you run the program like 'WINEDLLOVERRIDES=wbemprox=d wine LokProgrammer.exe' the list of serial ports is back (as like Hans said another codepath is chosen) Not sure what to do now.
https://bugs.winehq.org/show_bug.cgi?id=57645
--- Comment #7 from Hans Leidekker hans@meelstraat.net --- (In reply to Louis Lenders from comment #6)
I tested this query "SELECT Caption, Service FROM Win32_PnpEntity WHERE Caption LIKE '%(COM%'" on windows and one entry showed up (something like 'Intel device .... (COM3)' The reported classguid was {4d36e978-e325-11ce-bfc1-08002be10318} (ports) but this doesn't even show up when I run this query in wine.
If you run the program like 'WINEDLLOVERRIDES=wbemprox=d wine LokProgrammer.exe' the list of serial ports is back (as like Hans said another codepath is chosen) Not sure what to do now.
It probably expects at least one entry. I'm looking into adding support for this but it will not be code freeze material.