Craftimizer icon indicating copy to clipboard operation
Craftimizer copied to clipboard

Crash to desktop with AccessViolationException

Open PhilippNaused opened this issue 8 months ago • 4 comments

The game occasionally crashes when opening a recipe from the craft list via Allagan Tools.

Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at Craftimizer.Windows.RecipeNote.CalculateShouldOpen()
   at Craftimizer.Windows.RecipeNote.Update()
   at Dalamud.Interface.Windowing.Window.DrawInternal(WindowDrawFlags, Dalamud.Interface.Windowing.Persistence.WindowSystemPersistence)
   at Dalamud.Interface.Windowing.WindowSystem.Draw()
   at Dalamud.Utility.EventHandlerExtensions.HandleInvoke(System.Action)
   at Dalamud.Utility.EventHandlerExtensions.InvokeSafely(System.Action)
   at Dalamud.Interface.UiBuilder.OnDraw()
   at Dalamud.Interface.Internal.InterfaceManager.Display()
   at ImGuiScene.RawDX11Scene.Render()
   at Dalamud.Interface.Internal.InterfaceManager.DxgiSwapChainPresentDetour(TerraFX.Interop.DirectX.IDXGISwapChain*, UInt32, UInt32)
   at Dalamud.Game.Framework.HandleFrameworkUpdate(FFXIVClientStructs.FFXIV.Client.System.Framework.Framework*)

I can't find any other log message from the time of the crash.

This issue is sporadic and I don't know how to reproduce it consistently.

I don't have any addon named RecipeNote or WKSRecipeNotebook installed (since that is what CalculateShouldOpen checks). I also don't have the options to auto-suggest a macro or use community macros enabled.

PhilippNaused avatar Jun 17 '25 18:06 PhilippNaused

Have been experiencing this issue frequently when using Artisan to craft lists of items. Having to chase down the error messages in event viewer as there is no crash report given by the application.


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*, Int32, Boolean*) at System.Runtime.ExceptionServices.InternalCalls.<RhpSfiInit>g____PInvoke|0_0(System.Runtime.StackFrameIterator*, Void*, Int32, Boolean*) at System.Runtime.EH.DispatchEx(System.Runtime.StackFrameIterator ByRef, ExInfo ByRef) at System.Runtime.EH.RhThrowHwEx(UInt32, ExInfo ByRef) at Craftimizer.Windows.RecipeNote.CalculateShouldOpen() at Craftimizer.Windows.RecipeNote.Update() at Dalamud.Interface.Windowing.Window.DrawInternal(WindowDrawFlags, Dalamud.Interface.Windowing.Persistence.WindowSystemPersistence) at Dalamud.Interface.Windowing.WindowSystem.Draw() at Dalamud.Utility.EventHandlerExtensions.InvokeSafely(System.Action) at Dalamud.Interface.UiBuilder.OnDraw() at Dalamud.Interface.Internal.InterfaceManager.Display() at Dalamud.Interface.Internal.InterfaceManager.DxgiSwapChainPresentDetour(TerraFX.Interop.DirectX.IDXGISwapChain*, UInt32, UInt32) at Dalamud.Game.Framework.HandleFrameworkUpdate(FFXIVClientStructs.FFXIV.Client.System.Framework.Framework*)


I have had this error occur when constructing crafting lists, either self made or produced by automation when visiting my Company Workshop.

I have noticed less crashes but ones of similar errors when simply using Craftimizer to craft a stack of items that aren't on lists.

I do not use the retainer addon, merely Craftimizer/Artisan

NekoleRhen avatar Aug 21 '25 11:08 NekoleRhen

Do you use SimpleTweaks? If so, which crafting related tweaks do you have enabled?

WorkingRobot avatar Aug 21 '25 14:08 WorkingRobot

Hi, so sorry for late reply - Gmails slow to notify me of stuff.

I do use SimpleTweaks, the only setting I found that I have ticked when searching 'craft' was 'Improved Crafting Action Tooltips'

I hope this helps

NekoleRhen avatar Aug 26 '25 14:08 NekoleRhen

I was also using SimpleTweaks. With 'Improved Crafting Action Tooltips' and 'Improved Crafting Log' enabled.

PhilippNaused avatar Aug 27 '25 07:08 PhilippNaused