Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MethodAccessException from MonoMod method #817

Open
Soammer opened this issue Apr 2, 2024 · 0 comments
Open

MethodAccessException from MonoMod method #817

Soammer opened this issue Apr 2, 2024 · 0 comments
Labels
error Error message or log that may need investigation needs-replication Issue needs to be replicated by BepInEx dev

Comments

@Soammer
Copy link

Soammer commented Apr 2, 2024

What happened?

I devloped mods for a game, then I send them to my friends to test. One of my friend ran with nothing happened to game with correct installation,then found a crash report "preloader_****.log" in folder. Only one of my friend running crash so it may not be the fault of game.

BepInEx Distribution

Stable from GitHub

Log outputs

System.MethodAccessException: Method `MonoMod.Utils.PlatformHelper.set_Current(MonoMod.Utils.Platform)' is inaccessible from method `BepInEx.Preloader.PlatformUtils.SetPlatform()'
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_throw_method_access(intptr,intptr)
  at BepInEx.Preloader.PlatformUtils.SetPlatform () [0x001ff] in <a7e3be82e3634ca29e921a65272c4875>:0 
  at BepInEx.Preloader.PreloaderRunner.PreloaderPreMain () [0x00000] in <a7e3be82e3634ca29e921a65272c4875>:0 
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00044] in <a1e9f114a6e64f4eacb529fc802ec93d>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <a1e9f114a6e64f4eacb529fc802ec93d>:0 
  at BepInEx.Preloader.Entrypoint.Main () [0x0008b] in <a7e3be82e3634ca29e921a65272c4875>:0

Environment

- OS: Windows 11 64-Bit
- BepInEx: 5.4.22
- Game: Yog-Sothoth's Yard
@Soammer Soammer added error Error message or log that may need investigation needs-replication Issue needs to be replicated by BepInEx dev labels Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error Error message or log that may need investigation needs-replication Issue needs to be replicated by BepInEx dev
Projects
None yet
Development

No branches or pull requests

1 participant