RE-UE4SS: [BUG - Release] KH3 crashes with UE4SS 3.0.1 Shipping build

Branch or Release The crash occurs on:

Game and Engine Version Kingdom Hearts 3, UE 4.17

Describe the bug With UE4SS 3.0.1 “Shipping” installed, KH3 will crash with a “Fatal error” either when loading a save or when loading a cutscene.

The release and experimental builds appear to be using the “Shipping” build. It is worth noting that this crash does not occur with “Dev”.

Mods directory Only default mods installed.

To Reproduce I was able to reliably reproduce by creating a save in the KH3 prologue next to the OC map chest (the second save point in the game). The game would crash either when loading the save, when the heartless fight begins at the bottom of the stairs, or at the beginning of the first trinity sled event. The latter always happens; the first two only sometimes.

Expected behavior KH3 should not crash with a “Shipping” build of UE4SS.

Screenshots, UE4SS Log, and .dmp file Untitled UE4CC-Windows-4BC1D1E44D0F8F6C80A5B3A262609D11_0000.zip

Desktop:

Edition	Windows 10 Home
Version	22H2
Installed on	‎1/‎4/‎2023
OS build	19045.5131
Experience	Windows Feature Experience Pack 1000.19060.1000.0

Additional context:

EXCEPTION_RECORD:  (.exr -1)
ExceptionAddress: 00007ff7df4a1c20 (KINGDOM_HEARTS_III!Scaleform::Render::Matrix4x4<float>::SetIdentity+0x0000000002b1ae90)
   ExceptionCode: c0000005 (Access violation)
  ExceptionFlags: 00000000
NumberParameters: 2
   Parameter[0]: 0000000000000000
   Parameter[1]: 000000070000005e
Attempt to read from address 000000070000005e

PROCESS_NAME:  KINGDOM HEARTS III.exe

READ_ADDRESS:  000000070000005e 

ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.

EXCEPTION_CODE_STR:  c0000005

EXCEPTION_PARAMETER1:  0000000000000000

EXCEPTION_PARAMETER2:  000000070000005e

STACK_TEXT:  
000000f5`6cece5e8 00007ff7`e0ab4ae4     : 3f800000`00000000 00000225`c71173c0 00000000`00005f98 00007ff7`dc9585b0 : KINGDOM_HEARTS_III!Scaleform::Render::Matrix4x4<float>::SetIdentity+0x2b1ae90
000000f5`6cece5f0 00007ff7`e0ab4b11     : 00000226`00bd70a0 000000f5`6cece760 00000000`00000003 000000f5`6cecd158 : KINGDOM_HEARTS_III!Scaleform::Render::Matrix4x4<float>::SetIdentity+0x412dd54
000000f5`6cece6f0 00007ff7`e0ab4523     : 00000000`00000009 00007ff7`df2534e0 00000225`de22f4c0 00000000`0000000a : KINGDOM_HEARTS_III!Scaleform::Render::Matrix4x4<float>::SetIdentity+0x412dd81
000000f5`6cece7f0 00007ff7`e0abdb9d     : 00000000`00000008 00000000`00000002 00000000`00000001 00007ff7`e6315b60 : KINGDOM_HEARTS_III!Scaleform::Render::Matrix4x4<float>::SetIdentity+0x412d793
000000f5`6cece8c0 00007ff7`e06eaa28     : 00000226`6fc68580 00000000`00000023 00000000`00000023 00000000`00000000 : KINGDOM_HEARTS_III!Scaleform::Render::Matrix4x4<float>::SetIdentity+0x4136e0d
000000f5`6cece8f0 00007ff7`e061dc28     : 00000225`d653b050 000000f5`6ceceb10 00000000`00000000 00000000`00000000 : KINGDOM_HEARTS_III!Scaleform::Render::Matrix4x4<float>::SetIdentity+0x3d63c98
000000f5`6cecec10 00007ff7`dda5caee     : 00000225`d653b050 00000000`00000000 00000000`00000000 00000000`eb33b100 : KINGDOM_HEARTS_III!Scaleform::Render::Matrix4x4<float>::SetIdentity+0x3c96e98
000000f5`6ceced10 00007ff7`dc9500e0     : 00000225`a684e680 00000225`aa0bec80 00000225`a684e680 00000000`00000009 : KINGDOM_HEARTS_III!Scaleform::Render::Matrix4x4<float>::SetIdentity+0x10d5d5e
000000f5`6ceced50 00007ff7`dc9568c0     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : KINGDOM_HEARTS_III!opus_repacketizer_out_range+0x3e1ba0
000000f5`6cecef00 00007ff7`dc95694a     : 00000000`00000030 00000000`00000000 00000000`00000001 00000225`eb33a80c : KINGDOM_HEARTS_III!opus_repacketizer_out_range+0x3e8380
000000f5`6cecf0a0 00007ff7`dc95d819     : 00000000`00000000 00000000`00000000 00000000`00000001 00000225`eb33a80c : KINGDOM_HEARTS_III!opus_repacketizer_out_range+0x3e840a
000000f5`6cecf0e0 00007ff7`e1da08aa     : 00000000`0000000a 00000000`00000000 00000000`00000000 000000f5`6c980000 : KINGDOM_HEARTS_III!opus_repacketizer_out_range+0x3ef2d9
000000f5`6cecf940 00007ffb`2a137374     : 00000000`00000000 00000000`00000000 00000000`00000000 00007ffb`04cf0000 : KINGDOM_HEARTS_III!agsSetDisplayMode+0x397b5a
000000f5`6cecf980 00007ffb`2a59cc91     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : kernel32!BaseThreadInitThunk+0x14
000000f5`6cecf9b0 00000000`00000000     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x21

About this issue

Most upvoted comments

thanks you for log