Cannot run app with BepInEx and ValheimPlus
-
Hi there, similar to this previous question, I am also facing an app crash when enabling mods and using Valheim Plus.
You can find the logs below:
... Feb 05 22:41:42 => Backups: 4 Feb 05 22:41:42 => BackupShort: 7200 Feb 05 22:41:42 => BackupLong: 43200 Feb 05 22:41:42 => Crossplay: 0 Feb 05 22:41:42 => ModSupport: 1 Feb 05 22:41:42 => EXTRAPARAM: Feb 05 22:41:42 => Starting Valheim Server with steam support - Have fun playing! Feb 05 22:41:42 Found UnityPlayer, hooking into it instead Feb 05 22:41:42 [UnityMemory] Configuration Parameters - Can be set up in boot.config Feb 05 22:41:42 "memorysetup-bucket-allocator-granularity=16" Feb 05 22:41:42 "memorysetup-bucket-allocator-bucket-count=8" Feb 05 22:41:42 "memorysetup-bucket-allocator-block-size=4194304" Feb 05 22:41:42 "memorysetup-bucket-allocator-block-count=1" Feb 05 22:41:42 "memorysetup-main-allocator-block-size=16777216" Feb 05 22:41:42 "memorysetup-thread-allocator-block-size=16777216" Feb 05 22:41:42 "memorysetup-gfx-main-allocator-block-size=16777216" Feb 05 22:41:42 "memorysetup-gfx-thread-allocator-block-size=16777216" Feb 05 22:41:42 "memorysetup-cache-allocator-block-size=4194304" Feb 05 22:41:42 "memorysetup-typetree-allocator-block-size=2097152" Feb 05 22:41:42 "memorysetup-profiler-bucket-allocator-granularity=16" Feb 05 22:41:42 "memorysetup-profiler-bucket-allocator-bucket-count=8" Feb 05 22:41:42 "memorysetup-profiler-bucket-allocator-block-size=4194304" Feb 05 22:41:42 "memorysetup-profiler-bucket-allocator-block-count=1" Feb 05 22:41:42 "memorysetup-profiler-allocator-block-size=16777216" Feb 05 22:41:42 "memorysetup-profiler-editor-allocator-block-size=1048576" Feb 05 22:41:42 "memorysetup-temp-allocator-size-main=4194304" Feb 05 22:41:42 "memorysetup-job-temp-allocator-block-size=2097152" Feb 05 22:41:42 "memorysetup-job-temp-allocator-block-size-background=1048576" Feb 05 22:41:42 "memorysetup-job-temp-allocator-reduction-small-platforms=262144" Feb 05 22:41:42 "memorysetup-allocator-temp-initial-block-size-main=262144" Feb 05 22:41:42 "memorysetup-allocator-temp-initial-block-size-worker=262144" Feb 05 22:41:42 "memorysetup-temp-allocator-size-background-worker=32768" Feb 05 22:41:42 "memorysetup-temp-allocator-size-job-worker=262144" Feb 05 22:41:42 "memorysetup-temp-allocator-size-preload-manager=262144" Feb 05 22:41:42 "memorysetup-temp-allocator-size-nav-mesh-worker=65536" Feb 05 22:41:42 "memorysetup-temp-allocator-size-audio-worker=65536" Feb 05 22:41:42 "memorysetup-temp-allocator-size-cloud-worker=32768" Feb 05 22:41:42 "memorysetup-temp-allocator-size-gfx=262144" Feb 05 22:41:42 Mono path[0] = '/run/vhserver-steam/valheim_server_Data/Managed' Feb 05 22:41:42 Mono config path = '/run/vhserver-steam/valheim_server_Data/MonoBleedingEdge/etc' Feb 05 22:41:42 Got override: ./unstripped_corlib Feb 05 22:41:42 Current root dir: /run/vhserver-steam/valheim_server_Data/Managed Feb 05 22:41:42 New root path: /run/vhserver-steam/unstripped_corlib Feb 05 22:41:42 Search path: /run/vhserver-steam/unstripped_corlib:/run/vhserver-steam/valheim_server_Data/Managed Feb 05 22:41:42 Setting config paths; basedir: /run/vhserver-steam; config: /run/vhserver-steam/valheim_server.x86_64.config Feb 05 22:41:42 Managed dir: /run/vhserver-steam/valheim_server_Data/Managed Feb 05 22:41:42 Fallback handler could not load library /run/vhserver-steam/valheim_server_Data/MonoBleedingEdge/x86_64/P���wU/mono/aot-cache/amd64/BepInEx.Preloader.dll.so Feb 05 22:41:42 Got image: 0x55779cc09ab0 Feb 05 22:41:42 cant resolve internal call to "System.Threading.Interlocked::CompareExchange(T&,T,T)" (tested without signature also) Feb 05 22:41:42 2025-02-06T03:41:42Z Feb 05 22:41:42 Your mono runtime and class libraries are out of sync. Feb 05 22:41:42 The out of sync library is: /run/vhserver-steam/unstripped_corlib/mscorlib.dll Feb 05 22:41:42 2025-02-06T03:41:42Z Feb 05 22:41:42 When you update one from git you need to update, compile and install Feb 05 22:41:42 the other too. Feb 05 22:41:42 Do not report this as a bug unless you're sure you have updated correctly: Feb 05 22:41:42 you probably have a broken mono install. Feb 05 22:41:42 If you see other errors or faults after this message they are probably related Feb 05 22:41:42 and you need to fix your mono install first. Feb 05 22:41:42 cant resolve internal call to "System.Threading.Thread::GetCurrentThread()" (tested without signature also) Feb 05 22:41:42 2025-02-06T03:41:42Z Feb 05 22:41:42 Your mono runtime and class libraries are out of sync. Feb 05 22:41:42 The out of sync library is: /run/vhserver-steam/unstripped_corlib/mscorlib.dll Feb 05 22:41:42 2025-02-06T03:41:42Z Feb 05 22:41:42 When you update one from git you need to update, compile and install Feb 05 22:41:42 the other too. Feb 05 22:41:42 Do not report this as a bug unless you're sure you have updated correctly: Feb 05 22:41:42 you probably have a broken mono install. Feb 05 22:41:42 If you see other errors or faults after this message they are probably related Feb 05 22:41:42 and you need to fix your mono install first. Feb 05 22:41:42 cant resolve internal call to "System.Threading.Interlocked::CompareExchange(T&,T,T)" (tested without signature also) Feb 05 22:41:42 2025-02-06T03:41:42Z Feb 05 22:41:42 Your mono runtime and class libraries are out of sync. Feb 05 22:41:42 The out of sync library is: /run/vhserver-steam/unstripped_corlib/mscorlib.dll Feb 05 22:41:42 2025-02-06T03:41:42Z Feb 05 22:41:42 When you update one from git you need to update, compile and install Feb 05 22:41:42 the other too. Feb 05 22:41:42 Do not report this as a bug unless you're sure you have updated correctly: Feb 05 22:41:42 you probably have a broken mono install. Feb 05 22:41:42 If you see other errors or faults after this message they are probably related Feb 05 22:41:42 and you need to fix your mono install first. Feb 05 22:41:42 cant resolve internal call to "Mono.SafeStringMarshal::StringToUtf8(string)" (tested without signature also) Feb 05 22:41:42 2025-02-06T03:41:42Z Feb 05 22:41:42 Your mono runtime and class libraries are out of sync. Feb 05 22:41:42 The out of sync library is: /run/vhserver-steam/unstripped_corlib/mscorlib.dll Feb 05 22:41:42 2025-02-06T03:41:42Z Feb 05 22:41:42 When you update one from git you need to update, compile and install Feb 05 22:41:42 the other too. Feb 05 22:41:42 Do not report this as a bug unless you're sure you have updated correctly: Feb 05 22:41:42 you probably have a broken mono install. Feb 05 22:41:42 If you see other errors or faults after this message they are probably related Feb 05 22:41:42 and you need to fix your mono install first. Feb 05 22:41:42 cant resolve internal call to "Mono.SafeStringMarshal::StringToUtf8(string)" (tested without signature also) Feb 05 22:41:42 2025-02-06T03:41:42Z Feb 05 22:41:42 Your mono runtime and class libraries are out of sync. Feb 05 22:41:42 The out of sync library is: /run/vhserver-steam/unstripped_corlib/mscorlib.dll Feb 05 22:41:42 2025-02-06T03:41:42Z Feb 05 22:41:42 When you update one from git you need to update, compile and install Feb 05 22:41:42 the other too. Feb 05 22:41:42 Do not report this as a bug unless you're sure you have updated correctly: Feb 05 22:41:42 you probably have a broken mono install. Feb 05 22:41:42 If you see other errors or faults after this message they are probably related Feb 05 22:41:42 and you need to fix your mono install first. Feb 05 22:41:42 cant resolve internal call to "System.MissingMemberException::FormatSignature" (tested without signature also) Feb 05 22:41:42 2025-02-06T03:41:42Z Feb 05 22:41:42 Your mono runtime and class libraries are out of sync. Feb 05 22:41:42 The out of sync library is: /run/vhserver-steam/unstripped_corlib/mscorlib.dll Feb 05 22:41:42 2025-02-06T03:41:42Z Feb 05 22:41:42 When you update one from git you need to update, compile and install Feb 05 22:41:42 the other too. Feb 05 22:41:42 Do not report this as a bug unless you're sure you have updated correctly: Feb 05 22:41:42 you probably have a broken mono install. Feb 05 22:41:42 If you see other errors or faults after this message they are probably related Feb 05 22:41:42 and you need to fix your mono install first. Feb 05 22:41:42 cant resolve internal call to "System.Reflection.MemberInfo::get_MetadataToken" (tested without signature also) Feb 05 22:41:42 2025-02-06T03:41:42Z Feb 05 22:41:42 Your mono runtime and class libraries are out of sync. Feb 05 22:41:42 The out of sync library is: /run/vhserver-steam/unstripped_corlib/mscorlib.dll Feb 05 22:41:42 2025-02-06T03:41:42Z Feb 05 22:41:42 When you update one from git you need to update, compile and install Feb 05 22:41:42 the other too. Feb 05 22:41:42 Do not report this as a bug unless you're sure you have updated correctly: Feb 05 22:41:42 you probably have a broken mono install. Feb 05 22:41:42 If you see other errors or faults after this message they are probably related Feb 05 22:41:42 and you need to fix your mono install first. Feb 05 22:41:42 Caught fatal signal - signo:11 code:1 errno:0 addr:0x20 Feb 05 22:41:42 Obtained 46 stack frames. Feb 05 22:41:42 #0 0x007f36f30aa520 in __sigaction Feb 05 22:41:42 #1 0x007f36f10c045d in mono_install_ftnptr_eh_callback Feb 05 22:41:42 #2 0x007f36f10c1644 in mono_install_ftnptr_eh_callback Feb 05 22:41:42 #3 0x000000408bc516 in (Unknown) Feb 05 22:41:42 #4 0x0000004099b887 in System.Diagnostics.StackTrace:GetFullNameForStackTrace (System.Text.StringBuilder,System.Reflection.MethodBase) Feb 05 22:41:42 #5 0x00000040999ec7 in System.Diagnostics.StackTrace:AddFrames (System.Text.StringBuilder) Feb 05 22:41:42 #6 0x00000040999c3b in System.Diagnostics.StackTrace:ToString () Feb 05 22:41:42 #7 0x00000040999b40 in System.Diagnostics.StackTrace:ToString (System.Diagnostics.StackTrace/TraceFormat) Feb 05 22:41:42 #8 0x000000409998b3 in System.Environment:GetStackTrace (System.Exception,bool) Feb 05 22:41:42 #9 0x000000409997eb in System.Exception:GetStackTrace (bool) Feb 05 22:41:42 #10 0x0000004099915f in System.Exception:ToString (bool,bool) Feb 05 22:41:42 #11 0x00000040998e97 in System.Exception:ToString () Feb 05 22:41:42 #12 0x00000040998f25 in (wrapper runtime-invoke) <Module>:runtime_invoke_object__this__ (object,intptr,intptr,intptr) Feb 05 22:41:42 #13 0x00000040998bdb in (wrapper managed-to-native) Mono.SafeStringMarshal:StringToUtf8 (string) Feb 05 22:41:42 #14 0x00000040998af3 in Mono.SafeStringMarshal:get_Value () Feb 05 22:41:42 #15 0x00000040998a33 in System.Environment:internalGetEnvironmentVariable (string) Feb 05 22:41:42 #16 0x000000409989af in System.Environment:GetEnvironmentVariable (string) Feb 05 22:41:42 #17 0x0000004098f2a3 in System.TimeZoneInfo:CreateLocal () Feb 05 22:41:42 #18 0x0000004098efe7 in System.TimeZoneInfo:get_Local () Feb 05 22:41:42 #19 0x0000004098ef77 in System.TimeZoneInfo:GetDateTimeNowUtcOffsetFromUtc (System.DateTime,bool&) Feb 05 22:41:42 #20 0x0000004098e69b in System.DateTime:get_Now () Feb 05 22:41:42 #21 0x0000004098e203 in BepInEx.Preloader.Entrypoint:Main () Feb 05 22:41:42 #22 0x0000004098e610 in (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr) Feb 05 22:41:42 #23 0x007f36f10464a8 in mono_get_runtime_build_info Feb 05 22:41:42 #24 0x007f36f11e5913 in mono_runtime_invoke Feb 05 22:41:42 #25 0x007f36f11e80a5 in mono_unhandled_exception Feb 05 22:41:42 #26 0x007f36f11e7f18 in mono_runtime_unhandled_exception_policy_set Feb 05 22:41:42 #27 0x007f36f11e7d08 in mono_runtime_unhandled_exception_policy_set Feb 05 22:41:42 #28 0x007f36f10bd695 in mono_debugger_run_finally Feb 05 22:41:42 #29 0x007f36f10bbf1f in mono_debugger_run_finally Feb 05 22:41:42 #30 0x007f36f1110471 in mono_breakpoint_clean_code Feb 05 22:41:42 #31 0x000000408bc830 in (Unknown) Feb 05 22:41:42 #32 0x007f36f10464a8 in mono_get_runtime_build_info Feb 05 22:41:42 #33 0x007f36f11e5913 in mono_runtime_invoke Feb 05 22:41:42 #34 0x007f36f11e5888 in mono_runtime_invoke Feb 05 22:41:42 #35 0x007f36f521600c in jit_init_hook Feb 05 22:41:42 #36 0x007f36f40c2840 in (Unknown) Feb 05 22:41:42 #37 0x007f36f40db87d in (Unknown) Feb 05 22:41:42 #38 0x007f36f414a045 in (Unknown) Feb 05 22:41:42 #39 0x007f36f414a8f3 in PlayerMain(int, char**) Feb 05 22:41:42 #40 0x007f36f3091d90 in __libc_init_first Feb 05 22:41:42 #41 0x007f36f3091e40 in __libc_start_main Feb 05 22:41:42 #42 0x00557760977029 in (Unknown) Feb 05 22:41:42 /app/code/vhserver.sh: line 47: 106 Segmentation fault (core dumped) ./valheim_server.x86_64 -name $SERVERNAME -port $GAME_PORT -world $WORLDNAME -password $PASSWORD -savedir '/app/data/' -saveinterval $SAVEINTERVAL -backups $BACKUPS -backupshort $BACKUPSHORT -backuplong $BACKUPLONG -public $PUBLIC ${EXTRAPARAM:-} Feb 05 22:41:42 2025-02-06 03:41:42,563 INFO exited: vhserver (exit status 139; not expected)
Here is the content of the mod folder:
.: BepInEx doorstop_config.ini doorstop_libs start_game_bepinex.sh start_server_bepinex.sh unstripped_corlib winhttp.dll ./BepInEx: config core plugins ./BepInEx/config: BepInEx.cfg ./BepInEx/core: 0Harmony.dll BepInEx.Harmony.dll BepInEx.Preloader.xml HarmonyXInterop.dll Mono.Cecil.Rocks.dll MonoMod.RuntimeDetour.xml 0Harmony.xml BepInEx.Harmony.xml BepInEx.dll Mono.Cecil.Mdb.dll Mono.Cecil.dll MonoMod.Utils.dll 0Harmony20.dll BepInEx.Preloader.dll BepInEx.xml Mono.Cecil.Pdb.dll MonoMod.RuntimeDetour.dll MonoMod.Utils.xml ./BepInEx/plugins: ValheimPlus.dll ./doorstop_libs: libdoorstop_x64.dylib libdoorstop_x64.so libdoorstop_x86.dylib libdoorstop_x86.so ./unstripped_corlib: Mono.Posix.dll UnityEngine.HotReloadModule.dll UnityEngine.TilemapModule.dll Mono.Security.dll UnityEngine.IMGUIModule.dll UnityEngine.UI.dll System.Configuration.dll UnityEngine.ImageConversionModule.dll UnityEngine.UIElementsModule.dll System.Core.dll UnityEngine.InputLegacyModule.dll UnityEngine.UIModule.dll System.Numerics.dll UnityEngine.InputModule.dll UnityEngine.UNETModule.dll System.Security.dll UnityEngine.JSONSerializeModule.dll UnityEngine.UmbraModule.dll System.Xml.dll UnityEngine.LocalizationModule.dll UnityEngine.UnityAnalyticsModule.dll System.dll UnityEngine.ParticleSystemModule.dll UnityEngine.UnityConnectModule.dll UnityEngine.AIModule.dll UnityEngine.PerformanceReportingModule.dll UnityEngine.UnityTestProtocolModule.dll UnityEngine.ARModule.dll UnityEngine.Physics2DModule.dll UnityEngine.UnityWebRequestAssetBundleModule.dll UnityEngine.AccessibilityModule.dll UnityEngine.PhysicsModule.dll UnityEngine.UnityWebRequestAudioModule.dll UnityEngine.AndroidJNIModule.dll UnityEngine.ProfilerModule.dll UnityEngine.UnityWebRequestModule.dll UnityEngine.AnimationModule.dll UnityEngine.ScreenCaptureModule.dll UnityEngine.UnityWebRequestTextureModule.dll UnityEngine.AssetBundleModule.dll UnityEngine.SharedInternalsModule.dll UnityEngine.UnityWebRequestWWWModule.dll UnityEngine.AudioModule.dll UnityEngine.SpriteMaskModule.dll UnityEngine.VFXModule.dll UnityEngine.ClothModule.dll UnityEngine.SpriteShapeModule.dll UnityEngine.VRModule.dll UnityEngine.ClusterInputModule.dll UnityEngine.StreamingModule.dll UnityEngine.VehiclesModule.dll UnityEngine.ClusterRendererModule.dll UnityEngine.SubstanceModule.dll UnityEngine.VideoModule.dll UnityEngine.CoreModule.dll UnityEngine.SubsystemsModule.dll UnityEngine.WindModule.dll UnityEngine.CrashReportingModule.dll UnityEngine.TLSModule.dll UnityEngine.XRModule.dll UnityEngine.DSPGraphModule.dll UnityEngine.TerrainModule.dll UnityEngine.dll UnityEngine.DirectorModule.dll UnityEngine.TerrainPhysicsModule.dll mscorlib.dll UnityEngine.GameCenterModule.dll UnityEngine.TextCoreModule.dll UnityEngine.GridModule.dll UnityEngine.TextRenderingModule.dll
Could you please let me know if there is any missing configuration on my side?
Thank you for your time.
-
Thank you for your answer.
Unfortunately, ValheimPlus is the only mod installed. I have tried this with a fresh installation too.