Skip to content

Conversation

rankynbass
Copy link
Contributor

If running patched valve-wine, the dalamud injector may occasionally spit out an error about not finding a video device before spitting out the expeced winePid JSON. This will prevent the process ID from being found. Added a loop to try checking a few more times before failing.

If info procmap fails (due to wine being unpatched), we will try to find the process by name. This prevents the xlcore process from hanging with unpatched wine. This is currently not a big issue since current unpatched wine simply crashes dalamud, but it may become relevant when the debug helper code gets fixed.

This is all ported over from the previous compatibility-rework-2.

rankynbass added 2 commits May 1, 2025 14:58
If info procmap fails, we will try to find process by name.
Prevents the xlcore process from hanging with unpatched wine
or patched valve wine.
@rankynbass rankynbass marked this pull request as ready for review May 4, 2025 21:39
@rankynbass rankynbass requested a review from a team as a code owner May 4, 2025 21:39
@Blooym
Copy link
Member

Blooym commented May 7, 2025

Do we officially offer any wine that can run into these problems? Not that it's a blocker for merging, just curious to if this is something that can impact anything official

@rankynbass
Copy link
Contributor Author

rankynbass commented May 7, 2025

The only wine I know to be affected is wine-ge-xiv, with amd graphics. May also only apply to mesa 23.x and earlier, but Ive noticed regressions happen fairly often in the amd drivers.

And of course unpatched wine will fail the pid check, whic this patch also addresses.

@reiichi001
Copy link
Contributor

This seems fine to include, given we have a rising number of users who are trying to use unofficial or unsupported wine builds (including system wine, like the Cachy users).

Do we still need it for newer wine builds though? Or does this only affect a certain version range? I'm still on board with including it to reduce any potential troubleshooting efforts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants