Skip to content

System.AccessViolationException: Attempted to read or write protected memory #226

@Dragonissa

Description

@Dragonissa

Has been reported on the MelonLoader discord but told to make an issue here.

11:34:14.850] [Il2CppAssemblyGenerator] Using Unity Dependencies Version = 2021.3.22
[11:34:14.850] [Il2CppAssemblyGenerator] Using Deobfuscation Regex = null
[11:34:14.851] [Il2CppAssemblyGenerator] Cpp2IL is up to date.
[11:34:14.851] [Il2CppAssemblyGenerator] Cpp2IL.Plugin.StrippedCodeRegSupport is up to date.
[11:34:14.852] [Il2CppAssemblyGenerator] UnityDependencies is up to date.
[11:34:14.852] [Il2CppAssemblyGenerator] Checking GameAssembly...
[11:34:14.977] [Il2CppAssemblyGenerator] Assembly is up to date. No Generation Needed.

[11:34:14.978] Loading Mods...
[11:34:14.980] 0 Mods loaded.

[11:34:16.859] [Il2CppInterop] Class::Init signatures have been exhausted, using a substitute!
[11:34:17.043] [Il2CppInterop] Registered mono type Il2CppInterop.Runtime.DelegateSupport+Il2CppToMonoDelegateReference in il2cpp domain
[11:34:17.067] [Il2CppInterop] Registered mono type MelonLoader.Support.MonoEnumeratorWrapper in il2cpp domain
[11:34:17.071] [Il2CppInterop] Registered mono type MelonLoader.Support.SM_Component in il2cpp domain
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at Il2CppInterop.Runtime.Injection.Hooks.Class_GetFieldDefaultValue_Hook.Hook(Il2CppInterop.Runtime.Runtime.Il2CppFieldInfo*, Il2CppInterop.Runtime.Runtime.Il2CppTypeStruct* ByRef)
   at Il2CppInterop.Runtime.IL2CPP.il2cpp_runtime_invoke(IntPtr, IntPtr, Void**, IntPtr ByRef)
   at Il2CppInterop.Runtime.IL2CPP.il2cpp_runtime_invoke(IntPtr, IntPtr, Void**, IntPtr ByRef)
   at UnityEngine.GameObject.AddComponent(Il2CppSystem.Type)
   at MelonLoader.Support.SM_Component.Create()
   at MelonLoader.Support.Main.Initialize(MelonLoader.ISupportModule_From)
   at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Span`1<System.Object> ByRef, System.Signature, Boolean, Boolean)
   at System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
   at System.Reflection.MethodBase.Invoke(System.Object, System.Object[])
   at MelonLoader.SupportModule.LoadInterface(System.String)
   at MelonLoader.SupportModule.Setup()
   at MelonLoader.Core.Start()
   at MelonLoader.InternalUtils.BootstrapInterop.Start()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions