Kamikaze94 / WolfHUD

Payday 2 HUD
482 stars 236 forks source link

Crashes inside Meltdown and Aftershock, maybe more #921

Open jbrennan-0422 opened 3 years ago

jbrennan-0422 commented 3 years ago

I will probably suspend using WolfHUD until I know how to fix this on my end or a patch is released to fix this on your end. Thanks for the help though! :)

Expected Behavior

I am expecting the game to run properly.

Current Behavior

The game crashes inside at least these two heists generally around 20 minutes in.

Failure Information (for bugs)

Checked crash logs,

bad argument #1 to 'gsub' was the error.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Load up Meltdown
  2. Buy both Ammo and Doc Bags
  3. Play for around 20 minutes
  4. Do an interaction

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

BLT log

Please include the contents of your BLT log around the time the bug appeared.
You can find the BLT log inside your games "/mods/logs/" folder.

BLT Log 08:24:57 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\src\debug\blt_debug.cpp:124) Command line: "G:\Steam Games\steamapps\common\PAYDAY 2\payday2_win32_release.exe" 08:24:57 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\platforms\w32\signatures\signatures.cpp:255) Scanning for signatures in payday2_win32_release.exe 08:24:57 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\platforms\w32\signatures\signatures.cpp:301) Scanned for 56 signatures in 0 milliseconds with 0 cache misses 08:24:57 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\src\InitiateState.cpp:943) Initiating Hook 08:25:01 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\src\InitiateState.cpp:943) Initiating Hook 08:25:01 PM Lua: [BLT] Setup... 08:25:01 PM Lua: [BLT] Loading module: BLTLogs 08:25:01 PM Lua: [BLT] Loading module: BLTModManager 08:25:01 PM Lua: [BLT] Loading module: BLTKeybindsManager 08:25:01 PM Lua: [BLT] Loading module: BLTPersistScripts 08:25:01 PM Lua: [BLT] Loading module: BLTLocalization 08:25:01 PM Lua: [BLT] Cleaning logs folder, lifetime 1 day(s) 08:25:01 PM Lua: [BLT] Loading mods for state: table: 0x001c89a0 08:25:01 PM Lua: [BLT] Loading mod: base 08:25:01 PM Lua: [BLT] Loading mod: WolfHUD-master 08:25:01 PM Lua: [BLT] Setting up mod: base 08:25:01 PM Lua: [BLT] Setting up mod: WolfHUD-master 08:25:01 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\src\InitiateState.cpp:943) Initiating Hook 08:25:01 PM Lua: [BLT] Setup... 08:25:01 PM Lua: [BLT] Loading module: BLTLogs 08:25:01 PM Lua: [BLT] Loading module: BLTModManager 08:25:01 PM Lua: [BLT] Loading module: BLTKeybindsManager 08:25:01 PM Lua: [BLT] Loading module: BLTPersistScripts 08:25:01 PM Lua: [BLT] Loading module: BLTLocalization 08:25:01 PM Lua: [BLT] Cleaning logs folder, lifetime 1 day(s) 08:25:01 PM Lua: [BLT] Loading mods for state: table: 0x001c8980 08:25:01 PM Lua: [BLT] Loading mod: base 08:25:01 PM Lua: [BLT] Loading mod: WolfHUD-master 08:25:01 PM Lua: [BLT] Setting up mod: base 08:25:01 PM Lua: [BLT] Setting up mod: WolfHUD-master 08:25:01 PM Lua: Loading mod settings : nil 08:25:02 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\src\InitiateState.cpp:943) Initiating Hook 08:25:02 PM Lua: [BLT] Setup... 08:25:02 PM Lua: [BLT] Loading module: BLTLogs 08:25:02 PM Lua: [BLT] Loading module: BLTModManager 08:25:02 PM Lua: [BLT] Loading module: BLTKeybindsManager 08:25:02 PM Lua: [BLT] Loading module: BLTPersistScripts 08:25:02 PM Lua: [BLT] Loading module: BLTLocalization 08:25:02 PM Lua: [BLT] Cleaning logs folder, lifetime 1 day(s) 08:25:02 PM Lua: [BLT] Loading mods for state: table: 0x2739b960 08:25:02 PM Lua: [BLT] Loading mod: base 08:25:02 PM Lua: [BLT] Loading mod: WolfHUD-master 08:25:02 PM Lua: [BLT] Setting up mod: base 08:25:02 PM Lua: [BLT] Setting up mod: WolfHUD-master 08:25:09 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\src\http\http.cpp:51) CURL_INITD 08:25:14 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\src\InitiateState.cpp:447) Incoming HTTP Request/Request 08:25:14 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\src\InitiateState.cpp:461) https://znix.xyz/paydaymods/updates/meta.php?id=payday2blt - 2798 08:25:14 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\src\http\http.cpp:168) Launching Async HTTP Thread 08:25:14 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\src\InitiateState.cpp:447) Incoming HTTP Request/Request 08:25:14 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\src\InitiateState.cpp:461) https://znix.xyz/paydaymods/updates/meta.php?id=payday2bltwsockdll - 2795 08:25:14 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\src\http\http.cpp:168) Launching Async HTTP Thread 08:25:14 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\src\InitiateState.cpp:447) Incoming HTTP Request/Request 08:25:14 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\src\InitiateState.cpp:461) https://github.com/Kamikaze94/WolfHUD/raw/autoupdate/meta.json - 2809 08:25:14 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\src\http\http.cpp:168) Launching Async HTTP Thread 08:25:14 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\src\InitiateState.cpp:447) Incoming HTTP Request/Request 08:25:14 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\src\InitiateState.cpp:461) https://github.com/Kamikaze94/WolfHUD/raw/autoupdate/meta.json - 2816 08:25:14 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\src\http\http.cpp:168) Launching Async HTTP Thread 08:25:15 PM Lua: [Updates] Received update data for 'wolfhud' 08:25:15 PM Lua: [Updates] Received update data for 'fed_inv' 08:25:15 PM Lua: [Updates] Received update data for 'payday2bltwsockdll' 08:25:15 PM Lua: [Updates] Received update data for 'payday2blt' 08:25:15 PM Lua: [Updates] Received update data for 'wolfhud' 08:25:15 PM Lua: [Updates] Comparing hash data for payday2bltwsockdll: Server: 2bde11b432e7684d2aa2bcd06fc4a629dbbde11984f2593c4e692f7d1e5517ee Local: 2bde11b432e7684d2aa2bcd06fc4a629dbbde11984f2593c4e692f7d1e5517ee 08:25:15 PM Lua: [Updates] Comparing hash data for payday2blt: Server: 8b23e38208d3e31dd13f82c9e9f8e6d2fa2dc4970276177a2dd06033cfb1f44e Local: 8b23e38208d3e31dd13f82c9e9f8e6d2fa2dc4970276177a2dd06033cfb1f44e 08:25:15 PM Lua: [Updates] Comparing hash data for wolfhud: Server: 63d1aa419b042026f8722e4783572bda23592de24dceabb8211720e6134c67d1 Local: 63d1aa419b042026f8722e4783572bda23592de24dceabb8211720e6134c67d1 08:25:19 PM Lua: [Updates] Comparing hash data for fed_inv: Server: 8add0cb6b55083e288fccea48d6478428880b4eb929a4dbf276dfd02c58baf79 Local: 8add0cb6b55083e288fccea48d6478428880b4eb929a4dbf276dfd02c58baf79 08:25:51 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\src\InitiateState.cpp:943) Initiating Hook 08:25:51 PM Lua: [BLT] Setup... 08:25:51 PM Lua: [BLT] Loading module: BLTLogs 08:25:51 PM Lua: [BLT] Loading module: BLTModManager 08:25:51 PM Lua: [BLT] Loading module: BLTKeybindsManager 08:25:51 PM Lua: [BLT] Loading module: BLTPersistScripts 08:25:51 PM Lua: [BLT] Loading module: BLTLocalization 08:25:51 PM Lua: [BLT] Cleaning logs folder, lifetime 1 day(s) 08:25:51 PM Lua: [BLT] Loading mods for state: table: 0x26113bc0 08:25:51 PM Lua: [BLT] Loading mod: base 08:25:51 PM Lua: [BLT] Loading mod: WolfHUD-master 08:25:51 PM Lua: [BLT] Setting up mod: base 08:25:51 PM Lua: [BLT] Setting up mod: WolfHUD-master 08:25:51 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\src\InitiateState.cpp:943) Initiating Hook 08:25:51 PM Lua: [BLT] Setup... 08:25:51 PM Lua: [BLT] Loading module: BLTLogs 08:25:51 PM Lua: [BLT] Loading module: BLTModManager 08:25:51 PM Lua: [BLT] Loading module: BLTKeybindsManager 08:25:51 PM Lua: [BLT] Loading module: BLTPersistScripts 08:25:51 PM Lua: [BLT] Loading module: BLTLocalization 08:25:51 PM Lua: [BLT] Cleaning logs folder, lifetime 1 day(s) 08:25:51 PM Lua: [BLT] Loading mods for state: table: 0x28980260 08:25:51 PM Lua: [BLT] Loading mod: base 08:25:51 PM Lua: [BLT] Loading mod: WolfHUD-master 08:25:51 PM Lua: [BLT] Setting up mod: base 08:25:51 PM Lua: [BLT] Setting up mod: WolfHUD-master 08:25:51 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\src\InitiateState.cpp:943) Initiating Hook 08:25:51 PM Lua: [BLT] Setup... 08:25:51 PM Lua: [BLT] Loading module: BLTLogs 08:25:51 PM Lua: [BLT] Loading module: BLTModManager 08:25:51 PM Lua: [BLT] Loading module: BLTKeybindsManager 08:25:51 PM Lua: [BLT] Loading module: BLTPersistScripts 08:25:51 PM Lua: [BLT] Loading module: BLTLocalization 08:25:51 PM Lua: [BLT] Cleaning logs folder, lifetime 1 day(s) 08:25:51 PM Lua: [BLT] Loading mods for state: table: 0x39d61520 08:25:51 PM Lua: [BLT] Loading mod: base 08:25:51 PM Lua: [BLT] Loading mod: WolfHUD-master 08:25:51 PM Lua: [BLT] Setting up mod: base 08:25:51 PM Lua: [BLT] Setting up mod: WolfHUD-master 08:25:52 PM Lua: Loading mod settings : nil 08:26:08 PM Lua: [1] SYSTEM: remgie unlocked asset: Ammo Bag. 08:26:09 PM Lua: [1] SYSTEM: remgie unlocked asset: Doctor Bag. 08:44:39 PM Log: (C:\Users\ZNix\source\repos\SuperBLT\src\http\http.cpp:57) CURL CLOSED

Crash log(s)

If the bug is causing a crash, please provide the contents of your crashlog.
You can find your crashlog in "%localappdata%/Payday 2/crash.txt"

Crash.txt Thu Apr 22 20:44:35 2021 Application has crashed: C++ exception mods/WolfHUD-master/lua/CustomHUD.lua:4277: bad argument #1 to 'gsub' (string expected, got nil) SCRIPT STACK set_ai_stopped() @mods/WolfHUD-master/lua/CustomHUD.lua:4277 set_should_stay() lib/units/player_team/teamaimovement.lua:348 on_long_dis_interacted() lib/units/player_team/logics/teamailogicidle.lua:468 _get_unit_intimidation_action() lib/units/beings/player/states/playerstandard.lua:3443 _start_action_intimidate() lib/units/beings/player/states/playerstandard.lua:3743 _check_action_interact() lib/units/beings/player/states/playerstandard.lua:2304 _update_check_actions() lib/units/beings/player/states/playerstandard.lua:977 update_original() lib/units/beings/player/states/playerstandard.lua:435 update() @mods/WolfHUD-master/lua/BurstFire.lua:228 original() lib/units/beings/player/playermovement.lua:271 @mods/base/req/core/Hooks.lua:265 ------------------------------- Callstack: payday2_win32_release (???) ??? payday2_win32_release (???) ??? payday2_win32_release (???) ??? payday2_win32_release (???) zip_get_name ntdll (???) RtlDosSearchPath_Ustr ntdll (???) RtlFreeHeap ntdll (???) RtlSetLastWin32Error KERNELBASE (???) CreateFileW KERNELBASE (???) CreateFileW ntdll (???) ZwQueryVirtualMemory KERNELBASE (???) VirtualQueryEx KERNELBASE (???) SetUnhandledExceptionFilter KERNELBASE (???) SetUnhandledExceptionFilter payday2_win32_release (???) ??? payday2_win32_release (???) zip_get_name ------------------------------- Current thread: Main ------------------------------- System information: Application version : 1.103.7 CPU : Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz (2 cores); SSE; SSE2; SSE3; SSSE3; SSE4.1; SSE4.2 DirectX : 12.0 GPU : Radeon RX 560 Series / aticfx32.dll[25.20.15011.1004] Language : english Memory : 8124MB 268KB OS : 6.2.9200 () 0x100-0x1 (64 bits) Physics : threaded Renderer : DX9 threaded Sound : Realtek Semiconductor Corp. (Speakers (Realtek High Definition Audio))
Dushess commented 3 years ago

Joining in...

Kienlabadao commented 3 years ago

I know this is 2 months late but I'm having the same problem too. Have you found a solution to it?

sb7766 commented 3 years ago

Also experiencing this crash.

Attempting to fix it by modifying line 4277 in CustomHUD.lua to be if string.gsub(label.character_name or "", "%W", "") == name then instead. Hopefully the mod author continues working on this project.

bunnibunni commented 3 years ago

Consistently happening, 100% of the time we do meltdown, to my partner and I 10-20 minutes in, most commonly when we get in the car. All of them are the "bad argument #1 to 'gsub'" bug. 5 times in a row so far.

ScarySkellie commented 3 years ago

Also experiencing this crash.

Attempting to fix it by modifying line 4277 in CustomHUD.lua to be if string.gsub(label.character_name or "", "%W", "") == name then instead. Hopefully the mod author continues working on this project.

Opened CustomHUD.lua in Notepad++, changed line 4277 to this, and have been playing with the change for a few days now. No more crashes! I was even able to get "They Don't Pay Us Enough - In the Meltdown job, secure all additional loot" solo, which took well over the amount of time it takes to experience this crash.