http://bugs.winehq.org/show_bug.cgi?id=59037
Bug ID: 59037 Summary: CLIP Studio Paint 4.10: Application performance issue when selecting a material-based tool from the tool panel Product: Wine Version: 10.19 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: trivial Priority: P2 Component: -unknown Assignee: wine-bugs@list.winehq.org Reporter: fun@fefes.co.uk Distribution: ---
Created attachment 79801 --> http://bugs.winehq.org/attachment.cgi?id=79801 Terminal log showing the err:sync
CSP hangs for about one minute when starting a new session and selecting a material-based tool, for example, a downloaded G-pen material, from the tool panel. Selecting another similar tool will also cause the hang, but as long as you do not switch tool groups, selecting the first material is instant.
There is also a lag when first attempting to use the tool on the canvas, and I believe it is likely related, but I am happy to raise a new bug for that behaviour.
CSP also hangs for longer when switching tool groups, if that tool group contains at least one tool that uses a material.
From what I can gather, this might be related to a thread being locked by another thread, but is then waiting 60 seconds to try again, as seen in lines such as:
0158:err:sync:RtlpWaitForCriticalSection section 0000713087FB7238 "?" wait timed out in thread 0158, blocked by 02b8, retrying (60 sec).
In the attached log is just the basic example of selecting a new material.
Download link: https://vd.clipstudio.net/clipcontent/paint/app/410/CSP_410w_setup.exe
OS & DE: Linux Mint Cinnamon 22.2 Zara Architecture: AMD x86_64
Workarounds utilised: All listed for Clip Studio Paint 4.10 at https://appdb.winehq.org/objectManager.php?sClass=version&iId=42586 except for using wine-stable 10.4 where performance was worse.
http://bugs.winehq.org/show_bug.cgi?id=59037
robyn fun@fefes.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |performance CC| |fun@fefes.co.uk
http://bugs.winehq.org/show_bug.cgi?id=59037
--- Comment #1 from robyn fun@fefes.co.uk --- Created attachment 79839 --> http://bugs.winehq.org/attachment.cgi?id=79839 Wine Debug Trace following the sync channel, snippet isolated to just before and after the moment CLIP STUDIO hangs
http://bugs.winehq.org/show_bug.cgi?id=59037
robyn fun@fefes.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |ntdll Severity|trivial |minor Version|10.19 |10.18
--- Comment #2 from robyn fun@fefes.co.uk --- I ended up running WINEDEBUG=+timestamp,+pid,+event,+sync and managed to isolate the log around the moment an unloaded material is selected.
In the trace, the hanging events had 'NtWaitforAlertByThreadId (nil) -5.00000' followed by 'RtlWaitOnAddress returning 0x102' and immediately 'RtlWaitOnAddress addr XXXXXXX size 0x4 timeout fffffffffd050f80'
I can also see the previously reported error, with one thread being blocked by another, and what the blocking thread was doing. I have upload a new log with this moment isolated. The hanging starts at 139.129
I've updated this bug as I suspect the issue is with nt.dll based on similar bugs affecting other programs reported here, and the earliest I know to be affected is 10.18