thcrap_loader.exe hangs after quitting game under wine
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 766
- Forks
- 51
- Avg merge
- 16d 14h
- Merged PRs (30d)
- 1
Description
Hi !
Annoying Linux user here. Wine version is 6.16 (Staging).
Sorry if I should have reported this to the wine devs instead.
Since an update a few months ago (I think ?) the thcrap_loader.exe process always stays even after the game is closed.
There is no visible window, only the process seems to hang in the background.
So far I don't think this is game related, it happens with EoSD, DDC, LoLK, even with ULiL (to try a non-TSA game).
I have found this in the output from wine:
wine: Call from 7B010F76 to unimplemented function msvcp140.dll.?_Throw_C_error@std@@YAXH@Z, aborting
So I tried installing vcrun2019, and it turns out the process does exit when using microsoft's DLLs (but this is not an ideal solution).
Here are the log files when running touhou 6, waiting for the menu, and choosing quit.
(I see no difference apart from offsets but well here they are anyway)
- when running with wine's implementation of msvcp140 (and hanging): thcrap_log.hang.txt
- when running with vcrun2019 installed, no hanging: thcrap_log.with_vcrun2019.txt
Thanks for your time, please tell me if you need more info.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the hang under Wine 6.16 with the Wine msvcp140 implementation and compare it with the vcrun2019 run. Start with thcrap_log.hang.txt and thcrap_log.with_vcrun2019.txt, then trace the thcrap_loader.exe shutdown path around the reported msvcp140.dll call; done means the process exits after quitting without requiring Microsoft's DLLs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100