https://bugs.winehq.org/show_bug.cgi?id=50514
Bug ID: 50514 Summary: Notation Software x64 apps freeze when resizing its windows Product: Wine Version: 6.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: reinhold.hoffmann@hotmail.com Distribution: ---
Created attachment 69178 --> https://bugs.winehq.org/attachment.cgi?id=69178 Log files of exception when freeze happens
All x64 apps of Notation Software (www.notation.com) freeze with Wine 6.0 when resizing its windows.
This happens on Ubuntu 20.04 LTS with Wine 6.0. The same behaviour exists on Mac with Gcenx's Wine 6.0 from https://github.com/Gcenx/macOS_Wine_builds/releases
I believe that this is a regression bug because all apps have worked fine with Wine 5.4 without any issues in many, many installations but now freeze with Wine 6.0.
An exception happens. Please see the results of WINEDEBUG=+seh,+timestamp in the zip file attached file 1: Exception_of_freeze_x64_Linux_Ubuntu.txt: log on Ubuntu file 2: Exception_of_freeze_x64_Mac.txt: log on Mac
The exception address is the same for all apps and it looks as if it is outside the app's address range. Any ideas how to further identify the problem and for a more helpful logging is highly appreciated. Thx
https://bugs.winehq.org/show_bug.cgi?id=50514
Reinhold reinhold.hoffmann@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |major
--- Comment #1 from Reinhold reinhold.hoffmann@hotmail.com --- We haved tested our software thoroughly from Wine-5.16 onwards. Consistently we see on Ubuntu and on Mac that the freeze does not happen with Wine versions up to Wine-5.20.
From Wine-5.21 onwards the freeze with all our software packages happen.
So, I conclude that with the changes done in Wine-5.21 the regression bug came in.
The current version Wine-6.0 is not usable. I therefore set the prio to major.
https://bugs.winehq.org/show_bug.cgi?id=50514
--- Comment #2 from Reinhold reinhold.hoffmann@hotmail.com --- One additinal comment and recommendation:
Sorry that this report comes late after Wine-6.0 is out. We mainly use Wine on Macs. But becuase the latest official Mac version is Wine-5.7 we have not been able to carefully test all packages as we have done that before. The side line of Mac versions from Gcenx (many thanks for doing that) we found very lately by chance in the forum.
I recommend either to officially make a Mac version available again, or use Gcenx version officially, or at least show a link that these great builds are available.
https://bugs.winehq.org/show_bug.cgi?id=50514
--- Comment #3 from Reinhold reinhold.hoffmann@hotmail.com --- Changed the title because the freeze or crash happens for 32 bit apps, too.
https://bugs.winehq.org/show_bug.cgi?id=50514
Reinhold reinhold.hoffmann@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Notation Software x64 apps |Regression: apps freeze or |freeze when resizing its |crash when resizing its |windows |windows
https://bugs.winehq.org/show_bug.cgi?id=50514
Reinhold reinhold.hoffmann@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|6.0 |6.2
--- Comment #4 from Reinhold reinhold.hoffmann@hotmail.com --- Checked it again with Wine 6.2. Still not working.
https://bugs.winehq.org/show_bug.cgi?id=50514
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #5 from joaopa jeremielapuree@yahoo.fr --- Please, perform a regression test https://wiki.winehq.org/Regression_Testing
https://bugs.winehq.org/show_bug.cgi?id=50514
--- Comment #6 from Reinhold reinhold.hoffmann@hotmail.com --- A thorough regression test was done. See comment of my post from
Reinhold 2021-01-18 06:00:43 CST.
The builds were taken from - on Ubuntu from the official Wine build pool of winehq.org - on macOS the builds from Gcenx (https://github.com/Gcenx/macOS_Wine_builds/releases) We have no infrastructure available to build Wine from scratch.
https://bugs.winehq.org/show_bug.cgi?id=50514
Reinhold reinhold.hoffmann@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |gdi32 Version|6.2 |6.6
https://bugs.winehq.org/show_bug.cgi?id=50514
--- Comment #7 from Reinhold reinhold.hoffmann@hotmail.com --- The bug still exists in Wine-6.6
I did some further analysis. The freeze happens with the error messages below
on Linux Ubuntu 20.04.2 LTS
0024:err:ntdll:RtlpWaitForCriticalSection section 000000006C87B280 "dlls/gdi32/font.c: font_cs" wait timed out in thread 0024, blocked by 01e4, retrying (60 sec)
on macOS Catalina 10.15.7 (Wine version from https://github.com/Gcenx/macOS_Wine_builds/releases/tag/6.6)
01c4:err:ntdll:RtlpWaitForCriticalSection section 000000026B57C280 "/Users/gcenx/Downloads/wine-6.6/dlls/gdi32/font.c: font_cs" wait timed out in thread 01c4, blocked by 0024, retrying (60 sec)
As mentioned in my post on 2021-01-18 06:00:43 CST, the issue came in with Wine-5.21. In previous Wine versions there was no freeze.
The comparison of module
dlls/gdi32/font.c
between Wine-5.20 and Wine-5.21 shows that in Wine-5.21 massive changes were included into font.c
Therefore, I conclude that the changes made in Wine-5.21 in module dlls/gdi32/font.c may cause the freeze. I therefore set the component to gdi32.
https://bugs.winehq.org/show_bug.cgi?id=50514
Jeff Zaroyko jeffz@jeffz.name changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Regression: apps freeze or |Notation Software apps |crash when resizing its |freeze or crash when |windows |resizing its windows Status|UNCONFIRMED |NEEDINFO Ever confirmed|0 |1 Version|6.6 |6.0
--- Comment #8 from Jeff Zaroyko jeffz@jeffz.name --- Please don't change the original reported version: https://wiki.winehq.org/Bugs
Is there a specific download to reproduce the issue? if so please link and provide specific steps to reproduce, that way someone can volunteer to do the requested regression test: https://wiki.winehq.org/RegressionTesting
Since you said it affects all notation.com software, I went to the notation website and downloaded Composer_4: https://www.notation.com/DownloadTrialProduct.php?Trial_Product=Composer_Eng...
$ sha1sum Inst_NS_Composer_4_English_Trial.msi 99491c89e7c8f0b0a21d3401ab97a746bc58e038 Inst_NS_Composer_4_English_Trial.msi
With wine-6.6 on Ubuntu 20.04.02, in a clean prefix, it installs and runs fine for me. Resizing the window immediately after starting does not produce any crash. Tried creating a new piano sheet and resized the window, still no crash.
https://bugs.winehq.org/show_bug.cgi?id=50514
--- Comment #9 from Reinhold reinhold.hoffmann@hotmail.com --- Jeff, thanks for the immediate response.
The software which you used is perfect and correct.
However, it is not trivial to create the failure case. In particular on Ubuntu it is tricky. On macOS Catalina (our main focus) it is very easy to run into the freeze.
I have created gifs to demonstrate the faulty behaviour. Due to their size I have not added them as attachments but made them available on our website to download or view.
On macOS Catalina 10.15.7 www.notation.com/download/Wine/WineBug_50514/Bug_50514_reproduction_macOS_Catalina_10_15_7.gif
On Ubuntu 20.04.02 LTS www.notation.com/download/Wine/WineBug_50514/Bug_50514_reproduction_Ubuntu_20_04_02.gif
The song that I used can be downloaded here. But the freeze happens for any other song. www.notation.com/download/Wine/WineBug_50514/strangers_in_the_night_final_390_measures.mxl
https://bugs.winehq.org/show_bug.cgi?id=50514
--- Comment #10 from Reinhold reinhold.hoffmann@hotmail.com --- The links to the gifs with https
On macOS Catalina 10.15.7 https://www.notation.com/download/Wine/WineBug_50514/Bug_50514_reproduction_...
On Ubuntu 20.04.02 LTS https://www.notation.com/download/Wine/WineBug_50514/Bug_50514_reproduction_...
The song that I used can be downloaded here. But the freeze happens for any other song. https://www.notation.com/download/Wine/WineBug_50514/strangers_in_the_night_...
https://bugs.winehq.org/show_bug.cgi?id=50514
--- Comment #11 from Reinhold reinhold.hoffmann@hotmail.com --- I checked the list of enhancements which were incorporated when the regression failure happened the first time in Wine-5.21 at https://www.winehq.org/announce/5.21.
From this list I conclude that the package
- GDI32 library converted to PE
causes the problem.
https://bugs.winehq.org/show_bug.cgi?id=50514
--- Comment #12 from Reinhold reinhold.hoffmann@hotmail.com --- Is the provided info sufficient to demonstrate the bug?
https://bugs.winehq.org/show_bug.cgi?id=50514
--- Comment #13 from Reinhold reinhold.hoffmann@hotmail.com --- Again I did some thorough testing with Wine-6.16 on Ubuntu 20.04.3 LTS an macOS Catalina. Interestingly, the freeze happens with Wine Devel-6.16, but very, very rarely (or almost never) with Wine Staging-6.16. It looks as if Wine Staging is faster than Wine Devel where I conclude the issue might be a timing issue because the error reports says "wait timed out"
On Linux
0024:fixme:dc:DC_DeleteObject not deleting busy DC 00000000604101A4 refcount 3 0024:fixme:dc:DC_DeleteObject not deleting busy DC 000000001D410181 refcount 2 0180:err:ntdll:RtlpWaitForCriticalSection section 000000006C8802C0 "dlls/gdi32/font.c: font_cs" wait timed out in thread 0180, blocked by 0024, retrying (60 sec)
on macOS
01dc:fixme:dc:DC_DeleteObject not deleting busy DC 00000000184101AB refcount 2 02c0:err:ntdll:RtlpWaitForCriticalSection section 000000026B5802C0 "/Users/gcenx/Downloads/wine-6.16/dlls/gdi32/font.c: font_cs" wait timed out in thread 02c0, blocked by 01dc, retrying (60 sec)
https://bugs.winehq.org/show_bug.cgi?id=50514
--- Comment #14 from Reinhold reinhold.hoffmann@hotmail.com --- I performed tests again with Wine-6.19 but now very interestingly, the failure which came in with Wine-5.21 does not happen any longer.
Stepping back to Wine-6.18 the failure still exists. So, my conclusion is that the changes which were done for Wine-6.19 make the problem disappear.
I checked what came in in Wine-6.19 and my candidate (with my limited Wine knowledge) is that the changes of
"Kernel parts of GDI moved to Win32u"
fixed the problem. I see that in particular in font.c where the exception has happened there are lots of changes between Wine-6.18 and Wine-6.19.
Before I say that the problem is finally solved and before I close this bug, can anybody of the experts comment on my findings?
And, is there any additional information about the motivation for "Kernel parts of GDI moved to Win32u"?
Thanks.
https://bugs.winehq.org/show_bug.cgi?id=50514
--- Comment #15 from Reinhold reinhold.hoffmann@hotmail.com --- I still speculate why the bug disappeared in Wine-6.19.
The failure message before says
"dlls/gdi32/font.c" wait timed out in thread 024, blocked by 018c, retrying (60 sec)
This sounds as if an event was lost somehow where the thread was waiting for. Retrying did not help because the failure message is repeated on and on.
Having "Kernel parts of GDI moved to Win32u" somehow sounds as if there is a different timing behavior in Wine-6.19 where the major GDI stuff runs at a different thread at a higher priority now. But this is just my speculation due to my limited knowledge.
https://bugs.winehq.org/show_bug.cgi?id=50514
Reinhold reinhold.hoffmann@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |CLOSED Resolution|--- |FIXED
--- Comment #16 from Reinhold reinhold.hoffmann@hotmail.com --- Looks like there has been a redesign done in the gdi32 code area which came in with Wine-6.19. The enhancements made the problem disappear. Final testing was completed with Wine-6.22. It is OK now.
Thanks.
https://bugs.winehq.org/show_bug.cgi?id=50514
Huw Davies huw.davies@physics.ox.ac.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |39fea6cd1eb175cddf3cbccc1fd | |09fec48da881e CC| |huw.davies@physics.ox.ac.uk