[Bug 59745] New: Wine crashes when a custom window is created to show information
http://bugs.winehq.org/show_bug.cgi?id=59745 Bug ID: 59745 Summary: Wine crashes when a custom window is created to show information Product: Wine Version: 11.8 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@list.winehq.org Reporter: matthias0178+wine@gmail.com Distribution: --- Created attachment 80922 --> http://bugs.winehq.org/attachment.cgi?id=80922 Source code of the test program I created a program using C and the Windows API. This program was designed to create and display a specific window containing help text rendered via GDI. As soon as the user pressed any key on the keyboard or clicked with the mouse, the special window was supposed to be destroyed and the application terminated. Since this program functioned flawlessly on Windows but crashed under Wine immediately after displaying and destroying the special window, I developed a small test program that demonstrates the bug. This test program logs to the command line what occurs when the same task is executed in a simplified manner. I have attached the source code for this tiny test program. You may copy, modify and distribute it without restrictions to the extent permitted by law. On the Debian 13 console, the console output is not the same as in the console of Windows 11. -- 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=59745 --- Comment #1 from Matthias Zorn <matthias0178+wine@gmail.com> --- Created attachment 80923 --> http://bugs.winehq.org/attachment.cgi?id=80923 Screenshot of Windows 11 console -- 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=59745 --- Comment #2 from Matthias Zorn <matthias0178+wine@gmail.com> --- Created attachment 80924 --> http://bugs.winehq.org/attachment.cgi?id=80924 Screenshot of Debian 13 console -- 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=59745 Matthias Zorn <matthias0178+wine@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |user32 Distribution|--- |Debian Keywords| |source -- 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=59745 --- Comment #3 from Matthias Zorn <matthias0178+wine@gmail.com> --- If I alter the source code and substitute all DestroyWindow(hwnd); with the text SendMessageW(hwnd, WM_DESTROY, 0, 0); and compile it, the compiled program will work fine both in Windows and in Wine. -- 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=59745 Matthias Zorn <matthias0178+wine@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |testcase -- 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=59745 Maotong Zhang <zmtong1988@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zmtong1988@gmail.com --- Comment #4 from Maotong Zhang <zmtong1988@gmail.com> --- Created attachment 81241 --> http://bugs.winehq.org/attachment.cgi?id=81241 skip no-op activation in activate_other_window. Hello, could you please test this patch to see if it can solve this problem and also check for any other potential impacts? -- 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=59745 --- Comment #5 from Matthias Zorn <matthias0178+wine@gmail.com> --- I’ve tested your bug fix with Wine 11.12. The program no longer crashes on Linux. However, there is a slight difference in the console output, which can be seen when comparing the screenshots. -- 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=59745 Matthias Zorn <matthias0178+wine@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #80923|0 |1 is obsolete| | --- Comment #6 from Matthias Zorn <matthias0178+wine@gmail.com> --- Created attachment 81291 --> http://bugs.winehq.org/attachment.cgi?id=81291 Screenshot of the Windows 11 console Screenshot of the Windows 11 console after using the first patch for Wine -- 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=59745 Matthias Zorn <matthias0178+wine@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #80924|0 |1 is obsolete| | --- Comment #7 from Matthias Zorn <matthias0178+wine@gmail.com> --- Created attachment 81292 --> http://bugs.winehq.org/attachment.cgi?id=81292 Screenshot of Debian 13 console Screenshot of the Debian 13 console after using the first patch for Wine -- 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=59745 --- Comment #8 from Maotong Zhang <zmtong1988@gmail.com> --- (In reply to Matthias Zorn from comment #5)
I’ve tested your bug fix with Wine 11.12. The program no longer crashes on Linux. However, there is a slight difference in the console output, which can be seen when comparing the screenshots.
Would missing a WM_ACTIVATE message affect your “special window program”? -- 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=59745 --- Comment #9 from Matthias Zorn <matthias0178+wine@gmail.com> --- (In reply to Maotong Zhang from comment #8)
(In reply to Matthias Zorn from comment #5)
I’ve tested your bug fix with Wine 11.12. The program no longer crashes on Linux. However, there is a slight difference in the console output, which can be seen when comparing the screenshots.
Would missing a WM_ACTIVATE message affect your “special window program”?
The window can be closed in Debian just as it is in Windows 11. Exception: If you click on the Debian taskbar (LXPanel 0.11.1), the Wine program will only detect this if another window is brought to the foreground. -- 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=59745 --- Comment #10 from Maotong Zhang <zmtong1988@gmail.com> --- (In reply to Matthias Zorn from comment #9)
(In reply to Maotong Zhang from comment #8)
(In reply to Matthias Zorn from comment #5)
I’ve tested your bug fix with Wine 11.12. The program no longer crashes on Linux. However, there is a slight difference in the console output, which can be seen when comparing the screenshots.
Would missing a WM_ACTIVATE message affect your “special window program”?
The window can be closed in Debian just as it is in Windows 11. Exception: If you click on the Debian taskbar (LXPanel 0.11.1), the Wine program will only detect this if another window is brought to the foreground.
Without applying the patch, can the window be detected? -- 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=59745 --- Comment #11 from Matthias Zorn <matthias0178+wine@gmail.com> --- (In reply to Maotong Zhang from comment #10)
(In reply to Matthias Zorn from comment #9)
(In reply to Maotong Zhang from comment #8)
(In reply to Matthias Zorn from comment #5)
I’ve tested your bug fix with Wine 11.12. The program no longer crashes on Linux. However, there is a slight difference in the console output, which can be seen when comparing the screenshots.
Would missing a WM_ACTIVATE message affect your “special window program”?
The window can be closed in Debian just as it is in Windows 11. Exception: If you click on the Debian taskbar (LXPanel 0.11.1), the Wine program will only detect this if another window is brought to the foreground.
Without applying the patch, can the window be detected?
Without the patch, the Wine program cannot recognize these mouse actions on the Debian taskbar either. -- 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