SpecialKO / SpecialK

Lovingly referred to as the Swiss Army Knife of PC gaming, Special K does a bit of everything.
https://www.special-k.info/
GNU General Public License v3.0
896 stars 52 forks source link

[Yakuza Kiwami] Crash/deadlock on startup #68

Open lextra2 opened 1 year ago

lextra2 commented 1 year ago

Also crashes with compatibility config. I'm using the GOG version, if that matters.

crash01.zip

Aemony commented 1 year ago

I have no idea what's causing it, but you can work around it by delaying SK's injection by 2.5 seconds:

[SpecialK.System]
GlobalInjectDelay=2.5

That said, the game itself seems awfully buggy or something. Like, half the time I close it down, even without SK injected, it doesn't shut down properly and instead just freezes until I terminate the process with Task Manager.

lextra2 commented 1 year ago

I have no idea what's causing it, but you can work around it by delaying SK's injection by 2.5 seconds:

[SpecialK.System]
GlobalInjectDelay=2.5

That said, the game itself seems awfully buggy or something. Like, half the time I close it down, even without SK injected, it doesn't shut down properly and instead just freezes until I terminate the process with Task Manager.

Well GlobalInjectDelay=2.5 didn't work, but GlobalInjectDelay=20.0 got me into the main menu. But as soon as I load a save file the game gets stuck loading (music continues but game freezes)

Edit: Closing the game works flawlessly for me, I just hold alt+tab and press on the X

Aemony commented 1 year ago

Seems like it's crashing in some game code, and through some new way not previously seen in the Steam copies... I have tried disabling SK's various Yakuza related fixes but they don't work around the crash either, so it seems related to something else SK does with the game during startup/initalization.

Sadly I can't get any further with this particular issue so it probably requires Kal's involvement to figure fully out.

image

Aemony commented 1 year ago

I actually stumbled over a partial answer just now...

RenderInBackground=true - This causes the crash on launch that SK's crash handler catches. AsyncInit=true - This causes a deadlock (window not responding) on launch.

Set both to false in SK's config file to be able to launch the game using SK and, from my short testing, load save files without crashes occurring.

That said, this is not a perfect solution as closing the game through the game's main menu will end up with the window being closed but the game process continue running in the background, still playing the main menu background music track.