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 - Release] Heap corruption crash in Stalker 2 #726

Open
amyspark opened this issue Dec 26, 2024 · 5 comments
Open

[BUG - Release] Heap corruption crash in Stalker 2 #726

amyspark opened this issue Dec 26, 2024 · 5 comments

Comments

@amyspark
Copy link

Branch or Release
3.0.1

Game and Engine Version
Stalker 2: Heart of Chornobyl, Unreal Engine 5.1

Describe the bug
The game instant crashes when loading a save file. To fix it the only alternative is to regenerate the save file in a session without UE4SS loaded.

Mods directory
A zip of your Mods folder if you've installed any mods that don't come with UE4SS by default

Mods.zip

To Reproduce
Steps to reproduce the behavior:

  1. Launch game
  2. Attach the Visual Studio debugger (to capture a full stack trace).
  3. Load the attached save file.
  4. See error in log

Expected behavior
Game should always successfully load.

Screenshots, UE4SS Log, and .dmp file
If applicable, add screenshots to help explain your problem, and upload the log and .dmp files located in the Win64 directory.

Stalker2-Win64-Shipping.dmp

3818E84A4BADCCDD5849D4AD1267C04A.zip

Desktop (please complete the following information):

  • OS: [e.g. Win10, Win11]

Windows 10 22H2

Additional context

Crash stacktrace
>	ntdll.dll!RtlReportCriticalFailure()	Unknown
 	ntdll.dll!RtlpHeapHandleError()	Unknown
 	ntdll.dll!RtlpHpHeapHandleError()	Unknown
 	ntdll.dll!RtlpLogHeapFailure()	Unknown
 	ntdll.dll!RtlpAnalyzeHeapFailure()	Unknown
 	ntdll.dll!RtlpFreeHeap()	Unknown
 	ntdll.dll!RtlpFreeHeapInternal()	Unknown
 	ntdll.dll!RtlFreeHeap()	Unknown
 	ucrtbase.dll!_free_base()	Unknown
 	[Inline Frame] UE4SS.dll!std::_Deallocate(void * _Ptr, unsigned __int64 _Bytes) Line 265	C++
 	[Inline Frame] UE4SS.dll!std::allocator<std::_List_unchecked_const_iterator<std::_List_val<std::_List_simple_types<RC::Unreal::UObject *>>,std::_Iterator_base0>>::deallocate(std::_List_unchecked_const_iterator<std::_List_val<std::_List_simple_types<RC::Unreal::UObject *>>,std::_Iterator_base0> * const) Line 969	C++
 	UE4SS.dll!std::_Hash_vec<std::allocator<std::_List_unchecked_const_iterator<std::_List_val<std::_List_simple_types<RC::Unreal::UObject *>>,std::_Iterator_base0>>>::_Assign_grow(const unsigned __int64 _Cells, const std::_List_unchecked_const_iterator<std::_List_val<std::_List_simple_types<RC::Unreal::UObject *>>,std::_Iterator_base0> _Val) Line 302	C++
 	UE4SS.dll!std::_Hash<std::_Uset_traits<RC::Unreal::UObject *,std::_Uhash_compare<RC::Unreal::UObject *,std::hash<RC::Unreal::UObject *>,std::equal_to<RC::Unreal::UObject *>>,std::allocator<RC::Unreal::UObject *>,0>>::_Forced_rehash(unsigned __int64 _Buckets) Line 1730	C++
 	[Inline Frame] UE4SS.dll!std::_Hash<std::_Uset_traits<RC::Unreal::UObject *,std::_Uhash_compare<RC::Unreal::UObject *,std::hash<RC::Unreal::UObject *>,std::equal_to<RC::Unreal::UObject *>>,std::allocator<RC::Unreal::UObject *>,0>>::_Rehash_for_1() Line 1661	C++
 	UE4SS.dll!std::_Hash<std::_Uset_traits<RC::Unreal::UObject *,std::_Uhash_compare<RC::Unreal::UObject *,std::hash<RC::Unreal::UObject *>,std::equal_to<RC::Unreal::UObject *>>,std::allocator<RC::Unreal::UObject *>,0>>::emplace<RC::Unreal::UObject * &>(RC::Unreal::UObject * & <_Vals_0>) Line 616	C++
 	UE4SS.dll!RC::GUI::attempt_to_add_search_result(RC::Unreal::UObject * object) Line 176	C++
 	Stalker2-Win64-Shipping.exe!00007ff71dafa074()	Unknown
 	Stalker2-Win64-Shipping.exe!00007ff71daf98c0()	Unknown
 	Stalker2-Win64-Shipping.exe!00007ff71daf8b2e()	Unknown
 	Stalker2-Win64-Shipping.exe!00007ff71db1f301()	Unknown
 	Stalker2-Win64-Shipping.exe!00007ff71db1f7b1()	Unknown
 	UE4SS.dll!RC::Unreal::HookedStaticConstructObject(const RC::Unreal::FStaticConstructObjectParameters & Params) Line 297	C++
 	Stalker2-Win64-Shipping.exe!00007ff71fc2a30f()	Unknown
 	Stalker2-Win64-Shipping.exe!00007ff71fc380f2()	Unknown
 	Stalker2-Win64-Shipping.exe!00007ff71fc34c0b()	Unknown
 	Stalker2-Win64-Shipping.exe!00007ff71d9fb9a9()	Unknown
 	Stalker2-Win64-Shipping.exe!00007ff71d9fd197()	Unknown
 	Stalker2-Win64-Shipping.exe!00007ff71da00346()	Unknown
 	Stalker2-Win64-Shipping.exe!00007ff71da00ecd()	Unknown
 	Stalker2-Win64-Shipping.exe!00007ff71da048fe()	Unknown
 	Stalker2-Win64-Shipping.exe!00007ff71d9fdee8()	Unknown
 	Stalker2-Win64-Shipping.exe!00007ff71da09f0a()	Unknown
 	Stalker2-Win64-Shipping.exe!00007ff71fc2eaa1()	Unknown
 	Stalker2-Win64-Shipping.exe!00007ff71fc2bb39()	Unknown
 	Stalker2-Win64-Shipping.exe!00007ff71f612b31()	Unknown
 	Stalker2-Win64-Shipping.exe!00007ff71b869574()	Unknown
 	Stalker2-Win64-Shipping.exe!00007ff71b872e1c()	Unknown
 	Stalker2-Win64-Shipping.exe!00007ff71b872eaa()	Unknown
 	Stalker2-Win64-Shipping.exe!00007ff71b873c1c()	Unknown
 	Stalker2-Win64-Shipping.exe!00007ff71b87ca44()	Unknown
 	Stalker2-Win64-Shipping.exe!00007ff7207d2292()	Unknown
 	kernel32.dll!BaseThreadInitThunk()	Unknown
 	ntdll.dll!RtlUserThreadStart()	Unknown
@igromanru
Copy link
Contributor

Are you sure that it's UE 5.1? However, you need the latest experimental version of UE4SS.

@amyspark
Copy link
Author

I can confirm it's 5.1. See game EXE metadata below.

imagen

@UE4SS
Copy link
Collaborator

UE4SS commented Jan 1, 2025

Try the latest experimental build: https://github.com/UE4SS-RE/RE-UE4SS/releases/tag/experimental-latest

@amyspark
Copy link
Author

amyspark commented Jan 1, 2025

@UE4SS I can confirm that fixes the issue (even with the GUI Console reenabled), but the following keybinds for UETools no longer work:

[/Game/UETools/Blueprints/BP_StalkerCheatManager.BP_StalkerCheatManager_C]
CheatFlyingMoveUpKey = ThumbMouseButton2
CheatFlyingMoveDownKey = ThumbMouseButton 

@UE4SS
Copy link
Collaborator

UE4SS commented Jan 2, 2025

@UE4SS I can confirm that fixes the issue (even with the GUI Console reenabled), but the following keybinds for UETools no longer work:

[/Game/UETools/Blueprints/BP_StalkerCheatManager.BP_StalkerCheatManager_C]
CheatFlyingMoveUpKey = ThumbMouseButton2
CheatFlyingMoveDownKey = ThumbMouseButton 

I don't know what UETools is, you should probably ask the person that created it about this.
Other than that, you can try disable all mods and re-enable them one by one to figure out which one is causing the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants