handzlikchris/FastScriptReload

System.Exception: mprotect returned EACCES

Closed this issue · 1 comments

System.TypeInitializationException: The type initializer for 'HarmonyLib.HarmonySharedState' threw an exception. ---> System.Exception: mprotect returned EACCES
at MonoMod.RuntimeDetour.Platforms.DetourNativeMonoPosixPlatform.SetMemPerms (System.IntPtr start, System.UInt64 len, MonoMod.RuntimeDetour.Platforms.DetourNativeMonoPosixPlatform+MmapProts prot) [0x00043] in <0020ee40255b4dc7a0eb8b2a76225b38>:0
at MonoMod.RuntimeDetour.Platforms.DetourNativeMonoPosixPlatform.MakeWritable (System.IntPtr src, System.UInt32 size) [0x00000] in <0020ee40255b4dc7a0eb8b2a76225b38>:0
at MonoMod.RuntimeDetour.DetourHelper.MakeWritable (MonoMod.RuntimeDetour.IDetourNativePlatform plat, MonoMod.RuntimeDetour.NativeDetourData detour) [0x00000] in <0020ee40255b4dc7a0eb8b2a76225b38>:0
at MonoMod.RuntimeDetour.Platforms.DetourRuntimeILPlatform._HookSelftest (System.Reflection.MethodInfo from, System.Reflection.MethodInfo to) [0x00035] in <0020ee40255b4dc7a0eb8b2a76225b38>:0
at MonoMod.RuntimeDetour.Platforms.DetourRuntimeILPlatform..ctor () [0x0004a] in <0020ee40255b4dc7a0eb8b2a76225b38>:0
at MonoMod.RuntimeDetour.Platforms.DetourRuntimeMonoPlatform..ctor () [0x00000] in <0020ee40255b4dc7a0eb8b2a76225b38>:0
at MonoMod.RuntimeDetour.DetourHelper.get_Runtime () [0x00044] in <0020ee40255b4dc7a0eb8b2a76225b38>:0
at HarmonyLib.HarmonySharedState..cctor () [0x000e7] in <0020ee40255b4dc7a0eb8b2a76225b38>:0
--- End of inner exception stack trace ---
at HarmonyLib.PatchProcessor.Patch () [0x00067] in <0020ee40255b4dc7a0eb8b2a76225b38>:0
at HarmonyLib.Harmony.Patch (System.Reflection.MethodBase original, HarmonyLib.HarmonyMethod prefix, HarmonyLib.HarmonyMethod postfix, HarmonyLib.HarmonyMethod transpiler, HarmonyLib.HarmonyMethod finalizer) [0x00028] in <0020ee40255b4dc7a0eb8b2a76225b38>:0
at FastScriptReload.Editor.NewFields.NewFieldsRendererDefaultEditorPatch..cctor () [0x00049] in /Users/adammccombs/My project (1)/Assets/FastScriptReload/Scripts/Editor/NewFields/NewFieldsRendererDefaultEditorPatch.cs:26
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes (System.Type[]) (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorAssemblies.cs:127)

It's difficult to understand the error without any type of context.

I'll get this issue closed feel free to reopen with more details that'll help to troubleshoot / replicate the issue