Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with pfx'es created by proton7/8/9 #67

Open
gotzl opened this issue Jan 27, 2024 · 10 comments · May be fixed by #86
Open

Issue with pfx'es created by proton7/8/9 #67

gotzl opened this issue Jan 27, 2024 · 10 comments · May be fixed by #86

Comments

@gotzl
Copy link
Owner

gotzl commented Jan 27, 2024

A number of games crash when proton prefix was created by proton7/8 and a wheel is connected.
The following games I've found to suffer from this problem

AMS2 - crash on startup
DR2 - crash on loading stage
EA WRC - crash on startup
F1 22/23 - crash on startup
Rennsport - crash on startup (tested with wine-9, though)

As mentioned in the README, the workaround is to start the game once with proton6 to create the pfx, then switch to proton7/8.

I'm currently investigating the issue, but no conclusion yet. I'll update the ticket with my findings...

Note: Some games seem to work fine for me with prefix created by proton7/8. So far, these are ACC, rF2, R3E, PC2.

Related issues: #46 #66

@gotzl gotzl pinned this issue Jan 27, 2024
@liszca
Copy link

liszca commented Apr 1, 2024

AMS2 - crash on startup

Could it be they have the same Issue I have?
The game does not start when the wheel is powered on. How can I check for those prefixes? Having the problem after installing Linux Mint 21.3

@Helge102
Copy link

Helge102 commented Apr 1, 2024 via email

@liszca
Copy link

liszca commented Apr 1, 2024

I just installed ASM2 with GE-Proton-9.2 a few days ago. This has nothing to do with Proton 7/8, but for me it works perfectly with the CSL Elite.

How can I figure out which proton versions are installed? On Steam some Proton Versions don't show me their numbers

@Helge102
Copy link

Helge102 commented Apr 1, 2024 via email

@melroy89
Copy link
Contributor

I needed to downgrade back to GE-Proton8-25 to get the wheel detected in Assetto Corsa (AC). Instead of using the latest proton 8.

Any idea what is the root cause?

@gotzl
Copy link
Owner Author

gotzl commented May 28, 2024

For me, AC with proton 8 works fine (I use ContentManager, but shouldn't make a difference). But I also did not do any further testing with AC (like starting with a clean proton pfx) because it is one of my main games and I don't want to break it ;)

Any idea what is the root cause?

First, the issue is really not caused by hid-fanatec. The crash also happens without having hid-fanatec loaded, it is enough to have the wheel connected and powered-on.
It seems that the issue is with HID enumeration and how games access HID enumerated devices. However, I'm not yet able to pinpoint where it goes wrong as debugging crashes leaves me in game-code where I cannot see what's going on.
I'm currently collecting ammunition for creating a ticket in the wine/proton bug-tracker, maybe s.o. else has a good idea. (There was also a kind of similar issue with Unity games ValveSoftware/Proton#7284)

@gotzl
Copy link
Owner Author

gotzl commented Jun 21, 2024

I think I've finally found the root cause of these games crashing. It seems to be an issue of the FanatacSDK (or how it is integrated into these games). The FanatecSDK code-path is only entered when a Fanatec VID/PID combination is found and inside this code-path, it expects to find certain HID devices with very specific naming.
However, this specific naming of HID devices (multi TLC) is not yet implemented in wine, and thus the code runs into an exception...

So, I think I'm going to look at implementing multi TLC in wine. This would also potentially allow the FanatecSDK to do it's thing (like driving LEDs/displays/etc).

@melroy89
Copy link
Contributor

This is awesome news! And glad you finally found the root cause of all this.

@gotzl gotzl linked a pull request Jul 7, 2024 that will close this issue
@gotzl gotzl linked a pull request Jul 7, 2024 that will close this issue
@gotzl gotzl changed the title Issue with pfx'es created by proton7/8 Issue with pfx'es created by proton7/8/9 Jul 13, 2024
@nrbk999
Copy link

nrbk999 commented Sep 15, 2024

I had this problem just yesterday. Tried with proton version no option/experimental/9
Raceroom 64bits/Vulan/VR crashed
Raceroom 32bits didn't

After much hours wasted launching "wine control" in the game prefix seems to have fixed the error
Manjaro+KDE

@melroy89
Copy link
Contributor

Is this still an issue or is there any update?

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 a pull request may close this issue.

5 participants