Need help debugging exception: mprotect returned EACCESS


hi, im using a macbook pro and i keep getting this bug whenever i enter the program, exception: mprotect returned EACESS

here’s a copy of the console thing

Exception: mprotect returned EACCES
MonoMod.RuntimeDetour.Platforms.DetourNativeMonoPosixPlatform.SetMemPerms (System.IntPtr start, System.UInt64 len, MonoMod.RuntimeDetour.Platforms.DetourNativeMonoPosixPlatform+MmapProts prot) (at <c41e743af69b4202a7feaa0f0bd481b8>:0)
MonoMod.RuntimeDetour.Platforms.DetourNativeMonoPosixPlatform.MakeWritable (System.IntPtr src, System.UInt32 size) (at <c41e743af69b4202a7feaa0f0bd481b8>:0)
MonoMod.RuntimeDetour.DetourHelper.MakeWritable (MonoMod.RuntimeDetour.IDetourNativePlatform plat, MonoMod.RuntimeDetour.NativeDetourData detour) (at <c41e743af69b4202a7feaa0f0bd481b8>:0)
MonoMod.RuntimeDetour.Platforms.DetourRuntimeILPlatform._HookSelftest (System.Reflection.MethodInfo from, System.Reflection.MethodInfo to) (at <c41e743af69b4202a7feaa0f0bd481b8>:0)
MonoMod.RuntimeDetour.Platforms.DetourRuntimeILPlatform..ctor () (at <c41e743af69b4202a7feaa0f0bd481b8>:0)
MonoMod.RuntimeDetour.Platforms.DetourRuntimeMonoPlatform..ctor () (at <c41e743af69b4202a7feaa0f0bd481b8>:0)
MonoMod.RuntimeDetour.DetourHelper.get_Runtime () (at <c41e743af69b4202a7feaa0f0bd481b8>:0)
HarmonyLib.HarmonySharedState.WithState[T] (System.Func`1[TResult] action) (at <c41e743af69b4202a7feaa0f0bd481b8>:0)
HarmonyLib.HarmonySharedState.GetPatchInfo (System.Reflection.MethodBase method) (at <c41e743af69b4202a7feaa0f0bd481b8>:0)
HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs`1+Job[T] job) (at <c41e743af69b4202a7feaa0f0bd481b8>:0)
Rethrow as HarmonyException: Patching exception in method System.Void HarmonyLib.Harmony::.ctor(System.String id)
HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) (at <c41e743af69b4202a7feaa0f0bd481b8>:0)
HarmonyLib.PatchClassProcessor.Patch () (at <c41e743af69b4202a7feaa0f0bd481b8>:0)
needle.EditorPatching.ManagedPatchAnnotated.OnEnablePatch () (at Assets/com.sokatoa.uvs.finder/editorPatching/Editor/Core/ManagedPatchAnnotated.cs:16)
needle.EditorPatching.ManagedPatchBase.HandleActivationRequestNow () (at Assets/com.sokatoa.uvs.finder/editorPatching/Editor/Core/ManagedPatchBase.cs:82)
needle.EditorPatching.ManagedPatchBase.EnablePatch (System.Boolean forceSync) (at Assets/com.sokatoa.uvs.finder/editorPatching/Editor/Core/ManagedPatchBase.cs:45)
needle.EditorPatching.PatchManager.EnablePatch (System.String patchID, System.Boolean enablePersistent) (at Assets/com.sokatoa.uvs.finder/editorPatching/Editor/Core/PatchManager.cs:395)
needle.EditorPatching.PatchManager.Init () (at Assets/com.sokatoa.uvs.finder/editorPatching/Editor/Core/PatchManager.cs:122)
needle.EditorPatching.PatchManager..cctor () (at Assets/com.sokatoa.uvs.finder/editorPatching/Editor/Core/PatchManager.cs:108)
Rethrow as TypeInitializationException: The type initializer for 'needle.EditorPatching.PatchManager' threw an exception.
needle.EditorPatching.PatchManager.IsRegistered (System.String id) (at Assets/com.sokatoa.uvs.finder/editorPatching/Editor/Core/PatchManager.cs:251)
needle.EditorPatching.PatchesCollector.CollectMethodsWithHarmonyAttribute () (at Assets/com.sokatoa.uvs.finder/editorPatching/Editor/Core/PatchCollector.cs:38)
needle.EditorPatching.PatchesCollector.CollectAll () (at Assets/com.sokatoa.uvs.finder/editorPatching/Editor/Core/PatchCollector.cs:29)

it keeps interfering wiht my code and i need help debugging it :((( please help XCCCC

Did you try with the latest LTS version?
Currently it’s 6000.3.21f1.

this is the required version for the course im taking unfortunately

if its purely because i’m using the wrong version then idt theres much of a solution for for that

thanks tho !

The error seems to stem from com.sokatoa.uvs.finder package which calls into HarmonyLib/MonoMod. I believe that’s an asset store package? It might be worth asking the author for support.

tbh the error likely stems from the prior failures