This is a knowledge share. If you are not interested in how the recent client-start issue was fixed, you can stop reading!
Hello!
This post explains what happened, how the issue was caught, what was done, and the permanent fix.
It was an interesting problem to solve, so it warrants some knowledge sharing.
Problem Statement:
Players reported an inability to launch the game, affecting both NVIDIA and AMD GPU users. This impacted roughly 10% of our users. The game would open briefly and then close immediately for some, and for others, the game would simply not open. The issue varied by GPU manufacturer; reverting graphics card driver updates resolved the problem for NVIDIA users, but no immediate solution was found for AMD users. This requires a bit more digging.
Investigation:
Various logs were added to both our custom DLL and the widget DLL, since they both handle and manipulate memory to provide our core features, however none explicitly showed any errors. Instead, upon examining the client start handler's error stack trace, we identified critical errors related to mutex locks and the Microsoft Visual C++ (MSVCP) library, specifically involving MSVCP140.dll. This is great news! We found what is preventing the client from fully loading:
Root Cause:
Research led to discovering a compatibility issue as explained in a developer forum in a dusty old post. The problem stemmed from using new STL headers with an older version of msvcp140.dll, causing null dereferences in mutex locking machinery. This issue is documented under the "By Design" changes where mutex’s constructor was updated to be constexpr. This makes absolute sense in hindsight, since Windows Updates typically make changes like this that will impact how code functions.
Solution:
The fix turned out to be simple. We just needed to add some guards. Specifically defining a guard for _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR in both DLLs
Conclusion:
Players can now grab the fix by running the patcher. If you and the patcher have a bad relationship, a fresh copy of the game files with the fix has been uploaded to our download page. This should resolve the client start issue and should not require any other tweaking to any drivers as we previously tried.
Shoutout to Lily and Ninjatuna for stepping into the weeds with me, and to @MrsLaral , @pretty , and @Dave for helping test!!
Thank you and enjoy
Hello!
This post explains what happened, how the issue was caught, what was done, and the permanent fix.
It was an interesting problem to solve, so it warrants some knowledge sharing.
Problem Statement:
Players reported an inability to launch the game, affecting both NVIDIA and AMD GPU users. This impacted roughly 10% of our users. The game would open briefly and then close immediately for some, and for others, the game would simply not open. The issue varied by GPU manufacturer; reverting graphics card driver updates resolved the problem for NVIDIA users, but no immediate solution was found for AMD users. This requires a bit more digging.
Investigation:
Various logs were added to both our custom DLL and the widget DLL, since they both handle and manipulate memory to provide our core features, however none explicitly showed any errors. Instead, upon examining the client start handler's error stack trace, we identified critical errors related to mutex locks and the Microsoft Visual C++ (MSVCP) library, specifically involving MSVCP140.dll. This is great news! We found what is preventing the client from fully loading:
Code:
Address Frame
6FDB5903 0019E664 Thrd_yield()+123 [C:\Windows\SYSTEM32\MSVCP140.dll]
6FDB5BDD 0019E674 Mtx_lock()+D [C:\Windows\SYSTEM32\MSVCP140.dll]
Root Cause:
Research led to discovering a compatibility issue as explained in a developer forum in a dusty old post. The problem stemmed from using new STL headers with an older version of msvcp140.dll, causing null dereferences in mutex locking machinery. This issue is documented under the "By Design" changes where mutex’s constructor was updated to be constexpr. This makes absolute sense in hindsight, since Windows Updates typically make changes like this that will impact how code functions.
Solution:
The fix turned out to be simple. We just needed to add some guards. Specifically defining a guard for _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR in both DLLs
Conclusion:
Players can now grab the fix by running the patcher. If you and the patcher have a bad relationship, a fresh copy of the game files with the fix has been uploaded to our download page. This should resolve the client start issue and should not require any other tweaking to any drivers as we previously tried.
Shoutout to Lily and Ninjatuna for stepping into the weeds with me, and to @MrsLaral , @pretty , and @Dave for helping test!!
Thank you and enjoy
Last edited: