Mods do not work; "Your mono runtime and class libraries are out of sync"
Author: themelodianCreated Jan 23, 2026Updated Sep 9, 2026
Labelsbug
What happened?
When running BepInEx for the GOG Linux native version of Silksong, my mods do not work despite the log file claiming they were loaded. The console output includes repeated messages that Your mono runtime and class libraries are out of sync. I have updated my system, reinstalled mono, and tried the fixes described in #537, #1154, and #1180, and still have this issue.
Steps to reproduce
No response
BepInEx Distribution
Stable from GitHub
Log outputs
[UnityMemory] Configuration Parameters - Can be set up in boot.config
"memorysetup-bucket-allocator-granularity=16"
"memorysetup-bucket-allocator-bucket-count=8"
"memorysetup-bucket-allocator-block-size=4194304"
"memorysetup-bucket-allocator-block-count=1"
"memorysetup-main-allocator-block-size=16777216"
"memorysetup-thread-allocator-block-size=16777216"
"memorysetup-gfx-main-allocator-block-size=16777216"
"memorysetup-gfx-thread-allocator-block-size=16777216"
"memorysetup-cache-allocator-block-size=4194304"
"memorysetup-typetree-allocator-block-size=2097152"
"memorysetup-profiler-bucket-allocator-granularity=16"
"memorysetup-profiler-bucket-allocator-bucket-count=8"
"memorysetup-profiler-bucket-allocator-block-size=4194304"
"memorysetup-profiler-bucket-allocator-block-count=1"
"memorysetup-profiler-allocator-block-size=16777216"
"memorysetup-profiler-editor-allocator-block-size=1048576"
"memorysetup-temp-allocator-size-main=4194304"
"memorysetup-job-temp-allocator-block-size=2097152"
"memorysetup-job-temp-allocator-block-size-background=1048576"
"memorysetup-job-temp-allocator-reduction-small-platforms=262144"
"memorysetup-allocator-temp-initial-block-size-main=262144"
"memorysetup-allocator-temp-initial-block-size-worker=262144"
"memorysetup-temp-allocator-size-background-worker=32768"
"memorysetup-temp-allocator-size-job-worker=262144"
"memorysetup-temp-allocator-size-preload-manager=262144"
"memorysetup-temp-allocator-size-nav-mesh-worker=65536"
"memorysetup-temp-allocator-size-audio-worker=65536"
"memorysetup-temp-allocator-size-cloud-worker=32768"
"memorysetup-temp-allocator-size-gfx=262144"
Loading in SingleInstance mode
cant resolve internal call to "UnityEngine.UnityLogWriter::WriteStringToUnityLogImpl" (tested without signature also)
Your mono runtime and class libraries are out of sync.
The out of sync library is: /home/melody/.local/share/GOG Games/Hollow Knight Silksong/game/BepInEx/core/BepInEx.dll
When you update one from git you need to update, compile and install
the other too.
Do not report this as a bug unless you're sure you have updated correctly:
you probably have a broken mono install.
If you see other errors or faults after this message they are probably related
and you need to fix your mono install first.
cant resolve internal call to "UnityEngine.UnityLogWriter::WriteStringToUnityLogImpl" (tested without signature also)
Your mono runtime and class libraries are out of sync.
The out of sync library is: /home/melody/.local/share/GOG Games/Hollow Knight Silksong/game/BepInEx/core/BepInEx.dll
When you update one from git you need to update, compile and install
the other too.
Do not report this as a bug unless you're sure you have updated correctly:
you probably have a broken mono install.
If you see other errors or faults after this message they are probably related
and you need to fix your mono install first.
cant resolve internal call to "UnityEngine.UnityLogWriter::WriteStringToUnityLog" (tested without signature also)
Your mono runtime and class libraries are out of sync.
The out of sync library is: /home/melody/.local/share/GOG Games/Hollow Knight Silksong/game/BepInEx/core/BepInEx.dll
When you update one from git you need to update, compile and install
the other too.
Do not report this as a bug unless you're sure you have updated correctly:
you probably have a broken mono install.
If you see other errors or faults after this message they are probably related
and you need to fix your mono install first.
cant resolve internal call to "UnityEngine.UnityLogWriter::WriteStringToUnityLog" (tested without signature also)
Your mono runtime and class libraries are out of sync.
The out of sync library is: /home/melody/.local/share/GOG Games/Hollow Knight Silksong/game/BepInEx/core/BepInEx.dll
When you update one from git you need to update, compile and install
the other too.
Do not report this as a bug unless you're sure you have updated correctly:
you probably have a broken mono install.
If you see other errors or faults after this message they are probably related
and you need to fix your mono install first.Environment
- OS: EndeavourOS
- BepInEx: 5.4.23.4
- Game: Hollow Knight SilksongSource: BepInEx/BepInEx