Game crashes when holding down keys during a loading screen
See original GitHub issuePlease note: ScriptHookVDotNet is NOT ScriptHookV!
Issue only occurs when ScriptHookVDotNet.dll is installed
Version Both latest release 3.6.0 and latest main commit f75c4a5
Description This has been known for years in the speedrunning community but I haven’t had the time to investigate it. Originally it was believed that holding down any character switch key during a loading screen causes ScriptHookVDotNet to crash the game (this is used in a glitch called savewarping).
I decided to investigate because I’m planning on using ScriptHookVDotNet for a project. It seems that the game will crash if you hold down any button. This is related to the console and I’ve pasted an Event Viewer error below (couldn’t debug it in VS because the anticheat/DRM crashes the game if you have a debugger attached during a loading screen regardless).
Application: GTA5.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AppDomainUnloadedException
at SHVDN.Console.DoKeyEvent(System.Windows.Forms.Keys, Boolean)
at <Module>.?A0xddd40208.ScriptHookVDotnet_ManagedKeyboardMessage(UInt32, Boolean, Boolean, Boolean, Boolean)
It doesn’t crash 100% of the time, I loaded successfully once with F6 and twice with U. I tried adding try/catches for the exception but it didn’t seem to solve the issue. I’ll leave this to someone more experienced to investigate I think.
Issue Analytics
- State:
- Created 6 months ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
I just Identified what commit made SHVDN being imcompatible with Project 1.27. It’s ee58753. You can track the issue in #1202.
Just noting that the issue seems to be fixed with #1192 but out of nowhere I’ve started to experience the Project 1.27 crash on one of my two devices. Really weird because I’m almost confident it worked before when I tested f75c4a5. On my other device both 3.6.0, f75c4a5 and 5c368c38e9236d33c6e01ed9f1286b02784bf993 work fine. I’ll probably open another issue about it