morerokk / IreNFist

A continuation/fix of the IreNFist mod for PAYDAY 2
MIT License
4 stars 2 forks source link

Crash on the Big Bank online #71

Closed ghost closed 3 years ago

ghost commented 3 years ago

I was the host. My friend was interacting with a Doctor bag and then the game crashed.

Current thread: Main Script stack: on_new_objective() lib/units/enemies/cop/logics/coplogicbase.lua:412
on_new_objective() lib/units/player_team/logics/teamailogicbase.lua:66
on_new_objective() lib/units/player_team/logics/teamailogicidle.lua:478
set_objective() lib/units/enemies/cop/copbrain.lua:265
origfunc() lib/managers/group_ai_states/groupaistatebase.lua:3324
objective_complete_clbk() @mods/The
Fixes/groupaistatebase.lua:7
clbk()
lib/units/enemies/cop/logics/coplogicidle.lua:971 _update_queued_tasks()
@mods/IRE
AND
FIST REBORN/lua/enemymanager.lua:62
update() lib/managers/enemymanager.lua:51
update() lib/setups/gamesetup.lua:723
update() lib/setups/networkgamesetup.lua:21
core/lib/setups/coresetup.lua:557

ghost commented 3 years ago

I've prevented the groupaistatebase.lua crash from The Fixes mod through The Fixes Preventer, but I'm not sure why IREnFist mod is listed on the crash log

morerokk commented 3 years ago

This has been happening sometimes, I'm not entirely sure why this is happening.

Do you have a more complete crash.txt? The top line seems to be cut off, which just happens to be the most important line. If this keeps happening I can try to provide a debug mod which could help give a slightly clearer crashlog.

ghost commented 3 years ago

Application has crashed: access violation


Callstack:

     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
                       ???  (???)     ???                                                 
                       ???  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
                       ???  (???)     ???                                                 
                       ???  (???)     ???                                                 
     payday2_win32_release  (???)     zip_get_name                                        

Current thread: Main Script stack: on_new_objective() lib/units/enemies/cop/logics/coplogicbase.lua:412
on_new_objective() lib/units/player_team/logics/teamailogicbase.lua:66
on_new_objective() lib/units/player_team/logics/teamailogicidle.lua:478
set_objective() lib/units/enemies/cop/copbrain.lua:265
origfunc() lib/managers/group_ai_states/groupaistatebase.lua:3324
objective_complete_clbk() @mods/The
Fixes/groupaistatebase.lua:7
clbk()
lib/units/enemies/cop/logics/coplogicidle.lua:971 _update_queued_tasks()
@mods/IRE
AND
FIST REBORN/lua/enemymanager.lua:62
update() lib/managers/enemymanager.lua:51
update() lib/setups/gamesetup.lua:723
update() lib/setups/networkgamesetup.lua:21
core/lib/setups/coresetup.lua:557


Here you go

Bwamo commented 3 years ago

Seems like the top part of the crash log is still missing

ghost commented 3 years ago

Apologies, I'm not sure what you mean by "the top part." That's practically the entirety of the crash.txt without my PC's specifications

Bwamo commented 3 years ago

nevermind then typically, crashes usually have the offending line followed by the scriptstack under it like in #20

morerokk commented 3 years ago

Application has crashed: access violation

That's the top part I was talking about. I know enough now, thanks for your report!

I'll be pushing an update with a "debug" option in the options. If this keeps happening, please enable it. Any logs after that should be more detailed.

@Bwamo true, but that's only if the crash happens inside Lua code. The lack of any such lines is actually information in itself, it means that the error happened inside a core C++ function/in-engine somewhere. That already narrows it down a lot.

Sadly, there is the possibility that this was actually a one-time occurrence, sometimes PAYDAY 2 just oofs for no reason.

ghost commented 3 years ago

No crashes while playing solo/offline. But if the game crashes again while I'm hosting, I'll enable the option and provide the log.

morerokk commented 3 years ago

I've made a lot of strides in preventing crashes on the clientside, they were all related to arrests. I'm going to assume this one was also fixed, as I haven't had a crash in ages.

There were so many crashes related to this feature that I said I'd never let that happen again. If I add another feature this size to the mod, it'll be locked behind the "beta" checkbox.