[Bug 57645] New: DOTNET 4.8 doesn't list anymore serial ports
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(a)winehq.org Reporter: devel(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57645 EasyNetDev <devel(a)easynet.dev> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet, hardware, | |regression URL| |https://www.esu.eu/en/downl | |oads/software/lokprogrammer | |/ -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57645 EasyNetDev <devel(a)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 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57645 EasyNetDev <devel(a)easynet.dev> changed: What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Debian -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57645 Alex Henrie <alexhenrie24(a)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(a)gmail.com, | |xerox.xerox2000x(a)gmail.com Regression SHA1| |2b01a64ff2562f7a4eed6bea03b | |5b9d68bc5bdf3 Ever confirmed|0 |1 --- Comment #1 from Alex Henrie <alexhenrie24(a)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(a)gmail.com> AuthorDate: Sat Feb 3 14:05:03 2024 +0100 Commit: Alexandre Julliard <julliard(a)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(+) -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57645 --- Comment #2 from Hans Leidekker <hans(a)meelstraat.net> --- Please attach a WINEDEBUG=+wbemprox log. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57645 --- Comment #3 from Alex Henrie <alexhenrie24(a)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 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57645 --- Comment #4 from Hans Leidekker <hans(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57645 --- Comment #5 from EasyNetDev <devel(a)easynet.dev> --- Created attachment 77777 --> https://bugs.winehq.org/attachment.cgi?id=77777 WINEDEBUG=+wbemprox on LokProgrammer 5 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57645 --- Comment #6 from Louis Lenders <xerox.xerox2000x(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57645 --- Comment #7 from Hans Leidekker <hans(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57645 EasyNetDev <devel(a)easynet.dev> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |devel(a)easynet.dev --- Comment #8 from EasyNetDev <devel(a)easynet.dev> --- Created attachment 77791 --> https://bugs.winehq.org/attachment.cgi?id=77791 WINEDLLOVERRIDES=wbemprox=d wine LokProgrammer.exe With wbemprox=d is showing the list of the serial ports. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57645 --- Comment #9 from EasyNetDev <devel(a)easynet.dev> --- Created attachment 77792 --> https://bugs.winehq.org/attachment.cgi?id=77792 WINEDEBUG="+wbemprox +comm" WINEDLLOVERRIDES=wbemprox=d wine LokProgrammer.exe This is the debug on my PC where I have the hardware connected. I see all the ports, even the USB ones, but still is not able to communicate via serial port. Could be related to another issue? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57645 --- Comment #10 from EasyNetDev <devel(a)easynet.dev> --- Created attachment 77793 --> https://bugs.winehq.org/attachment.cgi?id=77793 LokProgrammer 5 with serial ports listed -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57645 Alex Henrie <alexhenrie24(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.winehq.org/sho | |w_bug.cgi?id=48678 --- Comment #11 from Alex Henrie <alexhenrie24(a)gmail.com> --- (In reply to EasyNetDev from comment #9)
I see all the ports, even the USB ones, but still is not able to communicate via serial port. Could be related to another issue?
Is that a new problem and not Bug 48678? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57645 --- Comment #12 from EasyNetDev <devel(a)easynet.dev> --- The that bug https://bugs.winehq.org/show_bug.cgi?id=48678 LokProgrammer was entering in an infinite loop and you had to kill the app. With newer versions of LokProgrammer and WineHQ is just not communicate at all even is sees the serial ports. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57645 Hans Leidekker <hans(a)meelstraat.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|serial |wmi&wbemprox -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57645 Sergey Isakov <isakov-sl(a)bk.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |isakov-sl(a)bk.ru --- Comment #13 from Sergey Isakov <isakov-sl(a)bk.ru> --- Is it the same bug as 57856? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57645 --- Comment #14 from Sergey Isakov <isakov-sl(a)bk.ru> --- Is it the same bug as 57856? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57645 Stefan Brüns <stefan.bruens(a)rwth-aachen.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |stefan.bruens(a)rwth-aachen.d | |e -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57645 --- Comment #15 from Stefan Brüns <stefan.bruens(a)rwth-aachen.de> --- (In reply to Sergey Isakov from comment #14)
Is it the same bug as 57856?
No, completely unrelated. And please don't post the same question twice ... -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57645 --- Comment #16 from Stefan Brüns <stefan.bruens(a)rwth-aachen.de> --- Another program affected is the "ImageTool" (flash programmer) from the Realtek AmebaD Toolchain. It is somewhat harder to tell what it is actually looking for, as the query is less specific. But it ends up with an empty dropdown list for the serial ports. 015c:trace:wbemprox:wbem_services_ExecQuery 0000000004AAD940, L"WQL", L"select * from Win32_PnPEntity", 0x10, 0000000000000000, 000000000011DB68 Unfortunately, enumerating serial ports on Windows is hit-and-miss, and there are quite a few methods to do it, see e.g. http://www.naughter.com/enumser.html Unfortunately, wine only implements a few of these (e.g. WMI works when you enumerate "WIN32_SerialPort", but not "WIN32_PnpEntity"). -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=57645 --- Comment #17 from Hans Leidekker <hans(a)meelstraat.net> --- wbemprox now has support for enumerating PNP entities from the registry. Next missing part is a driver that will populate the registry with entries for serial port devices. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla