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

[Bug]: Game crashes at startup #49

Open
OffApparition opened this issue Sep 17, 2024 · 12 comments
Open

[Bug]: Game crashes at startup #49

OffApparition opened this issue Sep 17, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@OffApparition
Copy link

Issue Summary:

The game crashes at startup showing the UE crash reporter when using the mod.
I can run the game normally when not using the mod by excluding the WINEDLLOVERRIDES="dsound=n,b" %command% launch option.

image

P3RFix & Game Version Numbers:

Tried v1.2.2 and v1.2.3 of P3RFix and using the latest game version.

Log Files:

P3RFix.log

I'm using a 7800X3D and an RX 7900XT on Linux.

Reproduction:

  1. Click on Launch button in Steam
  2. Game crashes and UE4 crash reporter opens
@OffApparition OffApparition added the bug Something isn't working label Sep 17, 2024
@Wildikdog
Copy link

Funnily enough I was gonna put one up for this because I had the same issue, I found it didn't crash on 1.2.1, so I must imagine some regression happened with 1.2.2.

@OffApparition
Copy link
Author

Funnily enough I was gonna put one up for this because I had the same issue, I found it didn't crash on 1.2.1, so I must imagine some regression happened with 1.2.2.

Yeah, you're right. I just tried 1.2.1 and the game doesn't crash anymore. But with that version it doesn't skip the network prompts automatically.

@slapjd
Copy link
Contributor

slapjd commented Sep 18, 2024

Same issue here. For me, this seems to be caused by the developer console enabler (added in 1.2.2). Turning it off lets the game launch, so maybe try that?

@bycEEE
Copy link

bycEEE commented Sep 20, 2024

v1.2.3 crashes for me on the Steam Deck. As suggested, disabling the developer console in the ini file does fix the crashing.

@Lyall
Copy link
Owner

Lyall commented Oct 19, 2024

Should be fixed in v1.2.4. The crash was likely coming from attempting to set a hotkey when the ConsoleKeys array was not initialised.

@slapjd
Copy link
Contributor

slapjd commented Oct 22, 2024

Just tried 1.2.4 and the issue still mostly persists for me (disabling the dev console also still fixes it). The game has successfully (randomly) launched 3 times with the option enabled and I have verified that the console works under that case but the vast majority of the time it just crashes the game on startup.
Also, for clarity, I'm also on Linux with a Ryzen 7 3700X and a GTX 1080.

@Lyall
Copy link
Owner

Lyall commented Oct 22, 2024

Just tried 1.2.4 and the issue still mostly persists for me (disabling the dev console also still fixes it). The game has successfully (randomly) launched 3 times with the option enabled and I have verified that the console works under that case but the vast majority of the time it just crashes the game on startup. Also, for clarity, I'm also on Linux with a Ryzen 7 3700X and a GTX 1080.

Can you try this test build? I've reworked the code for enabling the console to make it a bit simpler and hopefully safer.
P3RFix_v1.2.5_Xbox_test.zip
P3RFix_v1.2.5_Steam_test.zip

@slapjd
Copy link
Contributor

slapjd commented Oct 22, 2024

Can you try this test build? I've reworked the code for enabling the console to make it a bit simpler and hopefully safer. P3RFix_v1.2.5_Xbox_test.zip P3RFix_v1.2.5_Steam_test.zip

Just tried it now. As far as I can tell nothing has changed. It still crashes almost every time but when it does launch the console can be used. P3RFix log from the crashed game is attached in case it helps. I can upload the log produced by proton if that's helpful, but it is very large (~2MB of text).
P3RFix.log

@Lyall
Copy link
Owner

Lyall commented Oct 23, 2024

Can you try this test build? I've reworked the code for enabling the console to make it a bit simpler and hopefully safer. P3RFix_v1.2.5_Xbox_test.zip P3RFix_v1.2.5_Steam_test.zip

Just tried it now. As far as I can tell nothing has changed. It still crashes almost every time but when it does launch the console can be used. P3RFix log from the crashed game is attached in case it helps. I can upload the log produced by proton if that's helpful, but it is very large (~2MB of text). P3RFix.log

Hmm that's interesting. It's not crashing during/after console creation according to the logs, yet disabling the console option in P3RFix.ini consistently fixes this issue?

@slapjd
Copy link
Contributor

slapjd commented Oct 23, 2024

Yep, I haven't had it crash with the console off at all.
My only guess is that something else doesn't like the console being made too early? If nobody has had the issue on Windows it could be related to WINE doing something differently?
I did try a few different proton versions but they all have the same result fwiw

@Lyall
Copy link
Owner

Lyall commented Oct 25, 2024

Yep, I haven't had it crash with the console off at all. My only guess is that something else doesn't like the console being made too early? If nobody has had the issue on Windows it could be related to WINE doing something differently? I did try a few different proton versions but they all have the same result fwiw

That's very odd. I can't think of what would be causing crashing related to console creation. If it's not crashing during the creation process, then I frankly have no idea what could be happening.

The only thing that I can think of that may make a difference is a configurable delay before running most of the code/hooks. I've added an injection delay parameter to P3RFix.ini in this test build. By default it's set to 1000ms. You could try experimenting with increasing that value if the 1 second delay doesn't help.
P3RFix_v1.2.5_Steam_test2.zip

If this doesn't work then unfortunately I'm pretty much out of ideas, it may just have to be a known issue with enabling the console and running Proton.

@slapjd
Copy link
Contributor

slapjd commented Oct 27, 2024

Delaying the injection doesn't seem to help anything, so I guess it's safe to assume this is some weird proton interaction I guess unless someone starts having the problem on Windows 🤷.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants