#1188·BepInEx

Game crashes after "Runtime invoke patched" on Unity 6000.1.17f1 (Dofus)

Author: michael-tech24Created Oct 7, 2025Updated Aug 20, 2026
Labelsbug

What happened?

The game (Dofus Unity) crashes silently after BepInEx successfully initializes and patches the runtime. BepInEx loads all assemblies and reaches "Runtime invoke patched" but then the game closes immediately without any error message.

BepInEx Distribution

Bleeding Edge from BepisBuilds - Tested with multiple versions:

  • BepInEx 6.0.0-be.738
  • BepInEx 6.0.0-be.697

Game Information

  • Game: Dofus (Unity version)
  • Unity Version: 6000.1.17f1
  • IL2CPP: Yes
  • Platform: Windows 10 64-bit
  • Game works normally: Yes (without BepInEx)

Steps Taken

  1. Installed BepInEx_UnityIL2CPP_x64 (multiple versions tested)
  2. Game launches, BepInEx initializes successfully
  3. Interop assemblies generate correctly
  4. All assemblies load without errors
  5. Chainloader initializes successfully
  6. Runtime invoke gets patched
  7. Game closes immediately after with no error

Attempted Fixes

  • ✅ Tried forcing Unity library versions: 6000.0.38, 6000.1.16
  • ✅ Disabled UnityLogListening = false
  • ✅ Enabled debug logging (LogLevels = Fatal, Error, Warning, Message, Info, Debug)
  • ✅ Set UpdateInteropAssemblies = false
  • ✅ Deleted and regenerated interop assemblies multiple times
  • ✅ Tried different BepInEx bleeding edge builds (be.697, be.738)
  • ✅ Set DumpDummyAssemblies = true
  • ✅ Set InstantFlushing = true
  • ✅ Launching game directly (not through launcher)
  • None of these fixed the crash

Log Output

BepInEx successfully initializes but game crashes after runtime patching:

[Info : Preloader] 0 assemblies discovered [Message:AssemblyPatcher] Executing 0 patch(es) [Message: BepInEx] Chainloader initialized [Debug : Preloader] Runtime invoke pointer: 0x7FFF978FC2D0 [Debug :DobbyDetour] Preparing detour from 0x7FFF978FC2D0 to 0x7FFF41BF38E4 [Debug :DobbyDetour] Prepared detour; Trampoline: 0x7FFF57900000 [Debug :DobbyDetour] Original: 7FFF978FC2D0, Trampoline: 7FFF57900000, diff: 3FFFC2D0 [Debug : Preloader] Runtime invoke patched

Game closes immediately after this with no additional errors.

Full initialization log shows:

  • Unity base libraries downloaded successfully (tested with 6000.0.38, 6000.1.16)
  • Cpp2IL generates dummy assemblies successfully
  • Il2CppInteropGen completes successfully ("Done!")
  • All 174 game assemblies load correctly
  • No plugin/patcher errors (none installed for testing)

Additional Context

  • Similar issue reported in #1079 for Unity 6000.0.38f1
  • The game has an active modding community (DBI - Dofus Batteries Included project)
  • Other users are likely experiencing the same issue with this game
  • No Windows Event Viewer errors beyond basic application termination

Expected Behavior

Game should continue running after BepInEx initialization, allowing plugins to load.

Actual Behavior

Game closes silently immediately after "Runtime invoke patched" message.

Question

Is Unity 6000.1.x fully supported yet? Are there any workarounds for this crash pattern? Any additional diagnostic steps I can take?

Steps to reproduce

Steps to reproduce

  1. Download and install BepInEx_UnityIL2CPP_x64_6.0.0-be.738 (or be.697)
  2. Extract to Dofus game directory (C:\Users\[user]\AppData\Local\Ankama\Dofus-dofus3\)
  3. Ensure winhttp.dll and doorstop_config.ini are in the game root folder
  4. Configure BepInEx/config/BepInEx.cfg:
    • Set UnityBaseLibrariesSource = https://unity.bepinex.dev/libraries/6000.1.16.zip (or let it auto-detect)
  5. Launch Dofus.exe directly (or through Ankama Launcher)
  6. Observe BepInEx log at BepInEx/LogOutput.log

Expected: Game launches normally with BepInEx running Actual: Game closes immediately after "Runtime invoke patched" log message

Note: The game launches perfectly without BepInEx installed.

BepInEx Distribution

Bleeding Edge from BepisBuilds

Log outputs

txt
[Message: Preloader] BepInEx 6.0.0-be.738 - Dofus (10/5/2025 3:36:35 PM)
[Message: Preloader] Built from commit af0cba71fb69324aa4dfd651422bfa020309ce15
[Info   :   BepInEx] System platform: Windows 10 64-bit
[Info   :   BepInEx] Process bitness: 64-bit (x64)
[Info   :   BepInEx] Running under Unity 6000.1.17f1
[Info   :   BepInEx] Runtime version: 6.0.7
[Info   :   BepInEx] Runtime information: .NET 6.0.7
[Debug  :   BepInEx] Game executable path: C:\Users\manof\AppData\Local\Ankama\Dofus-dofus3\Dofus.exe
[Debug  :   BepInEx] Interop assembly directory: C:\Users\manof\AppData\Local\Ankama\Dofus-dofus3\BepInEx\interop
[Debug  :   BepInEx] BepInEx root path: C:\Users\manof\AppData\Local\Ankama\Dofus-dofus3\BepInEx
[Info   : Preloader] 0 patcher plugins loaded
[Debug  :AssemblyPatcher] Assembly loaded: AleCore.dll
[Debug  :AssemblyPatcher] Assembly loaded: Ankama.AddressableUtility.Runtime.dll
[Debug  :AssemblyPatcher] Assembly loaded: Ankama.Animator2D.dll
[Debug  :AssemblyPatcher] Assembly loaded: Ankama.AudioManagement.dll
[Debug  :AssemblyPatcher] Assembly loaded: Ankama.Dofus.Core.Characters.dll
[Debug  :AssemblyPatcher] Assembly loaded: Ankama.Dofus.Core.DataCenter.dll
[Debug  :AssemblyPatcher] Assembly loaded: Ankama.Dofus.Core.World.dll
[Debug  :AssemblyPatcher] Assembly loaded: Ankama.Dofus.Protocol.Connection.dll
[Debug  :AssemblyPatcher] Assembly loaded: Ankama.Dofus.Protocol.Game.dll
[Debug  :AssemblyPatcher] Assembly loaded: Ankama.LauncherConnection.dll
[Debug  :AssemblyPatcher] Assembly loaded: Ankama.ScreenManager.dll
[Debug  :AssemblyPatcher] Assembly loaded: Ankama.SpinConnection.dll
[Debug  :AssemblyPatcher] Assembly loaded: Ankama.Utilities.dll
[Debug  :AssemblyPatcher] Assembly loaded: Ankama.Zendesk.dll
[Debug  :AssemblyPatcher] Assembly loaded: BouncyCastle.Crypto.dll
[Debug  :AssemblyPatcher] Assembly loaded: Com.Ankama.HaapiAnkama.dll
[Debug  :AssemblyPatcher] Assembly loaded: Com.Ankama.HaapiDofus.dll
[Debug  :AssemblyPatcher] Assembly loaded: Com.Ankama.Shopi.dll
[Debug  :AssemblyPatcher] Assembly loaded: Core.dll
[Debug  :AssemblyPatcher] Assembly loaded: Core.Localization.dll
[Debug  :AssemblyPatcher] Assembly loaded: DotNetty.Buffers.dll
[Debug  :AssemblyPatcher] Assembly loaded: DotNetty.Codecs.dll
[Debug  :AssemblyPatcher] Assembly loaded: DotNetty.Common.dll
[Debug  :AssemblyPatcher] Assembly loaded: DotNetty.Handlers.dll
[Debug  :AssemblyPatcher] Assembly loaded: DotNetty.Transport.dll
[Debug  :AssemblyPatcher] Assembly loaded: DOTween.dll
[Debug  :AssemblyPatcher] Assembly loaded: DOTween.Modules.dll
[Debug  :AssemblyPatcher] Assembly loaded: Google.Protobuf.dll
[Debug  :AssemblyPatcher] Assembly loaded: Il2CppMono.Security.dll
[Debug  :AssemblyPatcher] Assembly loaded: Il2Cppmscorlib.dll
[Debug  :AssemblyPatcher] Assembly loaded: Il2CppSystem.Configuration.dll
[Debug  :AssemblyPatcher] Assembly loaded: Il2CppSystem.Core.dll
[Debug  :AssemblyPatcher] Assembly loaded: Il2CppSystem.Data.dll
[Debug  :AssemblyPatcher] Assembly loaded: Il2CppSystem.dll
[Debug  :AssemblyPatcher] Assembly loaded: Il2CppSystem.Drawing.dll
[Debug  :AssemblyPatcher] Assembly loaded: Il2CppSystem.Net.Http.dll
[Debug  :AssemblyPatcher] Assembly loaded: Il2CppSystem.Numerics.dll
[Debug  :AssemblyPatcher] Assembly loaded: Il2CppSystem.Runtime.CompilerServices.Unsafe.dll
[Debug  :AssemblyPatcher] Assembly loaded: Il2CppSystem.Runtime.Serialization.dll
[Debug  :AssemblyPatcher] Assembly loaded: Il2CppSystem.Web.dll
[Debug  :AssemblyPatcher] Assembly loaded: Il2CppSystem.Xml.dll
[Debug  :AssemblyPatcher] Assembly loaded: Il2CppSystem.Xml.Linq.dll
[Debug  :AssemblyPatcher] Assembly loaded: io.sentry.unity.runtime.dll
[Debug  :AssemblyPatcher] Assembly loaded: K4os.Compression.LZ4.dll
[Debug  :AssemblyPatcher] Assembly loaded: Logger.dll
[Debug  :AssemblyPatcher] Assembly loaded: mcs.dll
[Debug  :AssemblyPatcher] Assembly loaded: Newtonsoft.Json.dll
[Debug  :AssemblyPatcher] Assembly loaded: OPS.Obfuscator.dll
[Debug  :AssemblyPatcher] Assembly loaded: Polly.dll
[Debug  :AssemblyPatcher] Assembly loaded: QFSW.QC.Demo.dll
[Debug  :AssemblyPatcher] Assembly loaded: QFSW.QC.dll
[Debug  :AssemblyPatcher] Assembly loaded: QFSW.QC.Extras.dll
[Debug  :AssemblyPatcher] Assembly loaded: QFSW.QC.Grammar.dll
[Debug  :AssemblyPatcher] Assembly loaded: QFSW.QC.Parsers.dll
[Debug  :AssemblyPatcher] Assembly loaded: QFSW.QC.ScanRules.dll
[Debug  :AssemblyPatcher] Assembly loaded: QFSW.QC.Serializers.dll
[Debug  :AssemblyPatcher] Assembly loaded: QFSW.QC.Suggestors.dll
[Debug  :AssemblyPatcher] Assembly loaded: RestSharp.dll
[Debug  :AssemblyPatcher] Assembly loaded: Sentry.dll
[Debug  :AssemblyPatcher] Assembly loaded: Sentry.Microsoft.Bcl.AsyncInterfaces.dll
[Debug  :AssemblyPatcher] Assembly loaded: Sentry.System.Buffers.dll
[Debug  :AssemblyPatcher] Assembly loaded: Sentry.System.Collections.Immutable.dll
[Debug  :AssemblyPatcher] Assembly loaded: Sentry.System.Memory.dll
[Debug  :AssemblyPatcher] Assembly loaded: Sentry.System.Numerics.Vectors.dll
[Debug  :AssemblyPatcher] Assembly loaded: Sentry.System.Reflection.Metadata.dll
[Debug  :AssemblyPatcher] Assembly loaded: Sentry.System.Runtime.CompilerServices.Unsafe.dll
[Debug  :AssemblyPatcher] Assembly loaded: Sentry.System.Text.Encodings.Web.dll
[Debug  :AssemblyPatcher] Assembly loaded: Sentry.System.Text.Json.dll
[Debug  :AssemblyPatcher] Assembly loaded: Sentry.System.Threading.Tasks.Extensions.dll
[Debug  :AssemblyPatcher] Assembly loaded: Sentry.Unity.dll
[Debug  :AssemblyPatcher] Assembly loaded: Sentry.Unity.Native.dll
[Debug  :AssemblyPatcher] Assembly loaded: ShapesRuntime.dll
[Debug  :AssemblyPatcher] Assembly loaded: UniTask.Addressables.dll
[Debug  :AssemblyPatcher] Assembly loaded: UniTask.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.Addressables.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.Burst.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.Burst.Unsafe.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.Collections.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.Collections.LowLevel.ILSupport.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.InputSystem.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.InputSystem.ForUI.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.Mathematics.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.MemoryProfiler.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.RenderPipeline.Universal.ShaderLibrary.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.RenderPipelines.Core.Runtime.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.RenderPipelines.Core.Runtime.Shared.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.RenderPipelines.GPUDriven.Runtime.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.RenderPipelines.Universal.Runtime.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.ResourceManager.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.TextMeshPro.dll
[Debug  :AssemblyPatcher] Assembly loaded: Unity.Timeline.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.AccessibilityModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.AIModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.AndroidJNIModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.AnimationModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.AssetBundleModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.AudioModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.ClothModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.ClusterInputModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.ClusterRendererModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.ContentLoadModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.CoreModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.CrashReportingModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.DirectorModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.DSPGraphModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.GameCenterModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.GIModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.GraphicsStateCollectionSerializerModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.GridModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.HierarchyCoreModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.HotReloadModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.ImageConversionModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.IMGUIModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.InputForUIModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.InputLegacyModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.InputModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.JSONSerializeModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.LocalizationModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.MarshallingModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.MultiplayerModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.ParticleSystemModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.PerformanceReportingModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.Physics2DModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.PhysicsModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.PropertiesModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.ScreenCaptureModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.ShaderVariantAnalyticsModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.SharedInternalsModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.SpriteMaskModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.SpriteShapeModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.StreamingModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.SubstanceModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.SubsystemsModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.TerrainModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.TerrainPhysicsModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.TextCoreFontEngineModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.TextCoreTextEngineModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.TextRenderingModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.TilemapModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.TLSModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UI.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UIElementsModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UIModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UmbraModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UnityAnalyticsCommonModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UnityAnalyticsModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UnityConnectModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UnityCurlModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UnityTestProtocolModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UnityWebRequestAssetBundleModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UnityWebRequestAudioModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UnityWebRequestModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UnityWebRequestTextureModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.UnityWebRequestWWWModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.VehiclesModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.VFXModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.VideoModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.VirtualTexturingModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.VRModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.WindModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: UnityEngine.XRModule.dll
[Debug  :AssemblyPatcher] Assembly loaded: XLuaAssembly.dll
[Debug  :AssemblyPatcher] Assembly loaded: ZaapClient.dll
[Debug  :AssemblyPatcher] Assembly loaded: __Generated.dll
[Info   : Preloader] 0 assemblies discovered
[Message:AssemblyPatcher] Executing 0 patch(es)
[Message:   BepInEx] Chainloader initialized
[Debug  : Preloader] Runtime invoke pointer: 0x7FFF95C0C2D0
[Debug  :DobbyDetour] Preparing detour from 0x7FFF95C0C2D0 to 0x7FFF35663264
[Debug  :DobbyDetour] Prepared detour; Trampoline: 0x7FFF55C10000
[Debug  :DobbyDetour] Original: 7FFF95C0C2D0, Trampoline: 7FFF55C10000, diff: 3FFFC2D0
[Debug  : Preloader] Runtime invoke patched

Environment

markdown
- **OS:** Windows 11 64-bit
- **BepInEx:** 6.0.0-be.738, 6.0.0-be.697, BepInEx-Unity.IL2CPP-win-x64-6.0.0-be.738+af0cba7 (both tested)
- **Game:** Dofus Unity (6000.1.17f1)
- **Game Path:** `C:\Users\[user]\AppData\Local\Ankama\Dofus-dofus3\`