-
Notifications
You must be signed in to change notification settings - Fork 275
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
Container with Valheim Plus Enabled now throwing errors like : NullReferenceException: Object reference not set to an instance of an object #499
Comments
After more research, this might not be anything you can do anything about. https://www.nexusmods.com/valheim/mods/4?tab=bugs Its the top post here and appears to be a valheim plus problem. |
I was able to downgrade my Valheim dedicated server to the previous version by adding the following to my valheim.env docker environment file and then stopping, then removing the existing running docker container, then starting it back up. You also need to downgrade your Valheim client in Steam by joining the Beta "default_old" STEAMCMD_ARGS=-beta default_old |
That fix worked for me from when this became an issue until last night, but no longer works. The same error is present again |
This works as a temporary fix for breaking under the new patch for me |
I can confirm it works, running 0.211.8 (last version pulled from this image while I am writing) on the server, 0.9.9.9 V+ alpha version, and beta "default_old" on Steam to stick on the 0.211.8 (0.211.9 out this morning). Actual problem is that this image download automatically last V+ release, but in this case we have to overwrite the release V+ dll with the alpha version, hence the fact that we need to kill the process and not restart the container, or it will try again to pull the last official release and overwrite again. If we had an env var that could stick with this behaviour (default is to download last version), but turning it to false would prevent pulling last version. What is your opinion on it @lloesche ? Other (minor) problem is the pull limit from the Github API, if I reboot my server times multiple times, I can quickly reach the threshold, and if I got it well, the process exits. But maybe I'm doing something wrong here. |
Very basic container setup here following the defaults. When enabling valheim plus the docker logs fill up with repeated:
Sep 27 16:59:03 /supervisord: valheim-server [Warning: HarmonyX] AccessTools.DeclaredMethod: Could not find method for type Chat and name OnNewChatMessage and parameters (UnityEngine.GameObject, long, UnityEngine.Vector3, Talker+Type, string, string)
Sep 27 16:59:03 /supervisord: valheim-server ArgumentException: Undefined target method for patch method static bool ValheimPlus.GameClasses.Chat_AddInworldText_Patch::Prefix(Chat& __instance, UnityEngine.GameObject go, long senderID, UnityEngine.Vector3 pos, Talker+Type type, string user, string text)
Sep 27 16:59:03 /supervisord: valheim-server at HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal) [0x00047] in <474744d65d8e460fa08cd5fd82b5d65f>:0
Sep 27 16:59:03 /supervisord: valheim-server at HarmonyLib.PatchClassProcessor.Patch () [0x0006a] in <474744d65d8e460fa08cd5fd82b5d65f>:0
Sep 27 16:59:03 /supervisord: valheim-server Rethrow as HarmonyException: Patching exception in method null
Sep 27 16:59:03 /supervisord: valheim-server at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0006c] in <474744d65d8e460fa08cd5fd82b5d65f>:0
Sep 27 16:59:03 /supervisord: valheim-server at HarmonyLib.PatchClassProcessor.Patch () [0x00095] in <474744d65d8e460fa08cd5fd82b5d65f>:0
Sep 27 16:59:03 /supervisord: valheim-server at HarmonyLib.Harmony.b__11_0 (System.Type type) [0x00007] in <474744d65d8e460fa08cd5fd82b5d65f>:0
Sep 27 16:59:03 /supervisord: valheim-server at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable
1[T] sequence, System.Action
1[T] action) [0x00014] in <474744d65d8e460fa08cd5fd82b5d65f>:0Sep 27 16:59:03 /supervisord: valheim-server at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <474744d65d8e460fa08cd5fd82b5d65f>:0
Sep 27 16:59:03 /supervisord: valheim-server at HarmonyLib.Harmony.PatchAll () [0x0001b] in <474744d65d8e460fa08cd5fd82b5d65f>:0
Sep 27 16:59:03 /supervisord: valheim-server at ValheimPlus.ValheimPlusPlugin.Awake () [0x00048] in <8d21b3cade284489bb9f6cebda2f9f8b>:0
Sep 27 16:59:03 /supervisord: valheim-server UnityEngine.GameObject:Internal_AddComponentWithType(Type)
Sep 27 16:59:03 /supervisord: valheim-server UnityEngine.GameObject:AddComponent(Type)
Sep 27 16:59:03 /supervisord: valheim-server BepInEx.Bootstrap.Chainloader:Start()
Sep 27 16:59:03 /supervisord: valheim-server UnityEngine.Application:.cctor()
Sep 27 16:59:03 /supervisord: valheim-server [Message: BepInEx] Chainloader startup complete
Sep 27 16:59:03 /supervisord: valheim-server 09/27/2022 16:59:03: Starting to load scene:start
Sep 27 16:59:03 /supervisord: valheim-server ERROR: Shader UI/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
Sep 27 16:59:03 /supervisord: valheim-server Couldn't create a Convex Mesh from source mesh "default" within the maximum polygons limit (256). The partial hull will be used. Consider simplifying your mesh.
Sep 27 16:59:03 /supervisord: valheim-server Couldn't create a Convex Mesh from source mesh "default" within the maximum polygons limit (256). The partial hull will be used. Consider simplifying your mesh.
Sep 27 16:59:05 /supervisord: valheim-server DEBUG - [156] - Waiting for server to listen on UDP port 2456
Sep 27 16:59:07 /supervisord: valheim-server ERROR: Shader Legacy Shaders/VertexLit shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
Sep 27 16:59:07 /supervisord: valheim-server WARNING: Shader Unsupported: 'Standard (Specular setup)' - All subshaders removed
Sep 27 16:59:07 /supervisord: valheim-server WARNING: Shader Did you use #pragma only_renderers and omit this platform?
Sep 27 16:59:07 /supervisord: valheim-server WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
Sep 27 16:59:07 /supervisord: valheim-server ERROR: Shader Standard (Specular setup) shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
Sep 27 16:59:07 /supervisord: valheim-server WARNING: Shader Unsupported: 'Standard (Specular setup)' - All subshaders removed
Sep 27 16:59:07 /supervisord: valheim-server WARNING: Shader Did you use #pragma only_renderers and omit this platform?
Sep 27 16:59:07 /supervisord: valheim-server WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
Sep 27 16:59:07 /supervisord: valheim-server WARNING: Shader Unsupported: 'Standard' - All subshaders removed
Sep 27 16:59:07 /supervisord: valheim-server WARNING: Shader Did you use #pragma only_renderers and omit this platform?
Sep 27 16:59:07 /supervisord: valheim-server WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
Sep 27 16:59:07 /supervisord: valheim-server ERROR: Shader Standard shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
Sep 27 16:59:07 /supervisord: valheim-server WARNING: Shader Unsupported: 'Standard' - All subshaders removed
Sep 27 16:59:07 /supervisord: valheim-server WARNING: Shader Did you use #pragma only_renderers and omit this platform?
Sep 27 16:59:07 /supervisord: valheim-server WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
Sep 27 16:59:07 /supervisord: valheim-server WARNING: Shader Unsupported: 'Autodesk Interactive' - All subshaders removed
Sep 27 16:59:07 /supervisord: valheim-server WARNING: Shader Did you use #pragma only_renderers and omit this platform?
Sep 27 16:59:07 /supervisord: valheim-server WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
Sep 27 16:59:07 /supervisord: valheim-server ERROR: Shader Autodesk Interactive shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
Sep 27 16:59:07 /supervisord: valheim-server WARNING: Shader Unsupported: 'Autodesk Interactive' - All subshaders removed
Sep 27 16:59:07 /supervisord: valheim-server WARNING: Shader Did you use #pragma only_renderers and omit this platform?
Sep 27 16:59:07 /supervisord: valheim-server WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
Sep 27 16:59:07 /supervisord: valheim-server ERROR: Shader Legacy Shaders/Particles/Additive shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
Sep 27 16:59:07 /supervisord: valheim-server ERROR: Shader Legacy Shaders/Particles/Alpha Blended shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
Sep 27 16:59:07 /supervisord: valheim-server ERROR: Shader Legacy Shaders/Particles/Alpha Blended Premultiply shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
Sep 27 16:59:07 /supervisord: valheim-server ERROR: Shader Unlit/Color shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
Sep 27 16:59:07 /supervisord: valheim-server ERROR: Shader Lux Lit Particles/ Bumped shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
Sep 27 16:59:07 /supervisord: valheim-server HDR Render Texture not supported, disabling HDR on reflection probe.
Sep 27 16:59:07 /supervisord: valheim-server HDR Render Texture not supported, disabling HDR on reflection probe.
Sep 27 16:59:07 /supervisord: valheim-server Unloading 6 Unused Serialized files (Serialized files now loaded: 0)
Sep 27 16:59:07 /supervisord: valheim-server UnloadTime: 4.659300 ms
Sep 27 16:59:07 /supervisord: valheim-server Only custom filters can be played. Please add a custom filter or an audioclip to the audiosource (Amb_MainMenu).
Sep 27 16:59:07 /supervisord: valheim-server HDR Render Texture not supported, disabling HDR on reflection probe.
Sep 27 16:59:07 /supervisord: valheim-server 09/27/2022 16:59:07: Get create world "Fun Times"
Sep 27 16:59:07 /supervisord: valheim-server 09/27/2022 16:59:07: Using environment steamid 892970
Sep 27 16:59:07 /supervisord: valheim-server 09/27/2022 16:59:07: Using steam APPID:892970
Sep 27 16:59:07 /supervisord: valheim-server [S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
Sep 27 16:59:07 /supervisord: valheim-server CAppInfoCacheReadFromDiskThread took 3 milliseconds to initialize
Sep 27 16:59:07 /supervisord: valheim-server Setting breakpad minidump AppID = 892970
Sep 27 16:59:07 /supervisord: valheim-server [S_API FAIL] Tried to access Steam interface SteamNetworkingUtils003 before SteamAPI_Init succeeded.
Sep 27 16:59:07 /supervisord: valheim-server 09/27/2022 16:59:07: Server ID 90071992547409920
Sep 27 16:59:07 /supervisord: valheim-server 09/27/2022 16:59:07: Authentication:k_ESteamNetworkingAvailability_Waiting
Sep 27 16:59:07 /supervisord: valheim-server 09/27/2022 16:59:07: Steam game server initialized
Sep 27 16:59:07 /supervisord: valheim-server 09/27/2022 16:59:07: Using default prefs
Sep 27 16:59:07 /supervisord: valheim-server 09/27/2022 16:59:07: Valheim version:0.211.7
Sep 27 16:59:07 /supervisord: valheim-server 09/27/2022 16:59:07: Render threading mode:SingleThreaded
Sep 27 16:59:07 /supervisord: valheim-server MissingFieldException: Field 'FejdStartup.m_serverPlayerLimit' not found.
Sep 27 16:59:07 /supervisord: valheim-server at (wrapper dynamic-method) FejdStartup.DMDFejdStartup::Awake(FejdStartup)
Sep 27 16:59:07 /supervisord: valheim-server 09/27/2022 16:59:07: Missing audio clip in music respawn
Sep 27 16:59:07 /supervisord: valheim-server 09/27/2022 16:59:07: Builder started
Sep 27 16:59:08 /supervisord: valheim-server DllNotFoundException: party
Sep 27 16:59:08 /supervisord: valheim-server at (wrapper managed-to-native) PartyCSharpSDK.Interop.PFPInterop.PartyInitialize(byte[],PartyCSharpSDK.Interop.PARTY_HANDLE&)
Sep 27 16:59:08 /supervisord: valheim-server at PartyCSharpSDK.SDK.PartyInitialize (System.String titleId, PartyCSharpSDK.PARTY_HANDLE& handle) [0x00006] in <4d5b8d2a94a347d09410b73b7f7ad47f>:0
Sep 27 16:59:08 /supervisord: valheim-server at PlayFab.Party.PlayFabMultiplayerManager.InitializeImpl () [0x000be] in <4d5b8d2a94a347d09410b73b7f7ad47f>:0
Sep 27 16:59:08 /supervisord: valheim-server at PlayFab.Party.PlayFabMultiplayerManager._Initialize () [0x0000a] in <4d5b8d2a94a347d09410b73b7f7ad47f>:0
Sep 27 16:59:08 /supervisord: valheim-server at PlayFab.Party.PlayFabMultiplayerManager.Start () [0x00000] in <4d5b8d2a94a347d09410b73b7f7ad47f>:0
Sep 27 16:59:08 /supervisord: valheim-server The shader Hidden/Dof/DepthOfFieldHdr (UnityEngine.Shader) on effect Main Camera (UnityStandardAssets.ImageEffects.DepthOfField) is not supported on this platform!
Sep 27 16:59:08 /supervisord: valheim-server The image effect Main Camera (UnityStandardAssets.ImageEffects.DepthOfField) has been disabled as it's not supported on the current platform.
Sep 27 16:59:08 /supervisord: valheim-server The shader Hidden/SunShaftsComposite (UnityEngine.Shader) on effect Main Camera (UnityStandardAssets.ImageEffects.SunShafts) is not supported on this platform!
Sep 27 16:59:08 /supervisord: valheim-server The shader Hidden/SimpleClear (UnityEngine.Shader) on effect Main Camera (UnityStandardAssets.ImageEffects.SunShafts) is not supported on this platform!
Sep 27 16:59:08 /supervisord: valheim-server The image effect Main Camera (UnityStandardAssets.ImageEffects.SunShafts) has been disabled as it's not supported on the current platform.
Sep 27 16:59:08 /supervisord: valheim-server 09/27/2022 16:59:08: Game server connected
Sep 27 16:59:08 /supervisord: valheim-server NullReferenceException: Object reference not set to an instance of an object
Sep 27 16:59:08 /supervisord: valheim-server at ZInput.IsGamepadActive () [0x00000] in <6011e53a94c64257871f5143178823ac>:0
Sep 27 16:59:08 /supervisord: valheim-server at UIGroupHandler.Update () [0x0009a] in <408fb2feebfa4a519b8eeaef491b5d76>:0
Sep 27 16:59:08 /supervisord: valheim-server Unloading 14 unused Assets to reduce memory usage. Loaded Objects now: 105718.
Sep 27 16:59:08 /supervisord: valheim-server Total: 76.911900 ms (FindLiveObjects: 5.563100 ms CreateObjectMapping: 4.527500 ms MarkObjects: 66.584500 ms DeleteObjects: 0.236000 ms)
Sep 27 16:59:10 /supervisord: valheim-server 09/27/2022 16:59:10: UI Group status changed Menu = True
Sep 27 16:59:10 /supervisord: valheim-server NullReferenceException: Object reference not set to an instance of an object
Sep 27 16:59:10 /supervisord: valheim-server at ZInput.IsGamepadActive () [0x00000] in <6011e53a94c64257871f5143178823ac>:0
Sep 27 16:59:10 /supervisord: valheim-server at UIGroupHandler.Update () [0x0009a] in <408fb2feebfa4a519b8eeaef491b5d76>:0
Simple docker-compose below
version: "3"
services:
valheim:
image: ghcr.io/lloesche/valheim-server
cap_add:
- sys_nice
volumes:
- $HOME/valheim-server/config:/config
- $HOME/valheim-server/data:/opt/valheim
ports:
- "2456-2457:2456-2457/udp"
environment:
- SERVER_NAME="Marshall Server"
- WORLD_NAME="Fun Times"
- SERVER_PASS=notthepassword
- VALHEIM_PLUS=true
restart: always
stop_grace_period: 2m
The text was updated successfully, but these errors were encountered: