Skip to content

Non Thread-Safe Memory Access #645

Description

@Suterusu1337

This affects much of the code base, seen a lot more when logging out/DC travel, usually in the GameObjectHandler.

Managed Call Stack
{
Application: ffxiv_dx11.exe
CoreCLR Version: 10.0.25.52411
.NET Version: 10.0.0
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Stack:
   at System.Runtime.ExceptionServices.InternalCalls.<RhpSfiInit>g____PInvoke|0_0(System.Runtime.StackFrameIterator*, Void*, Byte, Boolean*)
   at System.Runtime.ExceptionServices.InternalCalls.<RhpSfiInit>g____PInvoke|0_0(System.Runtime.StackFrameIterator*, Void*, Byte, Boolean*)
   at System.Runtime.EH.DispatchEx(System.Runtime.StackFrameIterator ByRef, ExInfo ByRef)
   at MareSynchronos.PlayerData.Factories.PlayerDataFactory+<>c__DisplayClass10_0.<CheckForNullDrawObject>b__0()
   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Boolean, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].InnerInvoke()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread)
   at System.Threading.Tasks.Task.ExecuteEntry()
   at Dalamud.Game.Framework.HandleFrameworkUpdate(FFXIVClientStructs.FFXIV.Client.System.Framework.Framework*)


}

Exception Info #0
Address: 12345679
Flags: 80
Address: 7FFC29D3FE0A


Call Stack
{
  [0]	KERNELBASE.dll+BFE0A	(RaiseException+0x8A)
  [1]	KERNELBASE.dll+BFE0A	(RaiseException+0x8A)
  [2]	Dalamud.Boot.dll+6716C	(GetDllChangedStorage+0x4651C)
  [3]	Dalamud.Boot.dll+6A120	(GetDllChangedStorage+0x494D0)
  [4]	1EDDE530AF3
  [5]	E3DDF1B1A8
  [6]	212FA4395A0
}

Registers
{
  RAX:	RPCRT4.dll+408EA	(RpcExceptionFilter+0x74BA)
  RBX:	0
  RCX:	0
  RDX:	ADVAPI32.dll+75690	(OpenThreadWaitChainSession+0xC6C0)
  R8:	0
  R9:	21200000000
  R10:	E3DDF19DB8 [2134310BF50]
  R11:	212396E1ED0 [21400000002]
  R12:	0
  R13:	0
  R14:	1EDDBB906E8 [1EDDBB90680]
  R15:	1
  RSI:	0
  RDI:	12345679
  RBP:	0
  RSP:	E3DDF1AA30 [2149E7655A0]
  RIP:	KERNELBASE.dll+BFE0A	(RaiseException+0x8A)
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions