Startup Issue with Valheim - Application_stopped unexpectedly with exit code 139

System Information

Field Value
Operating System Linux - Debian GNU/Linux 11 on x86_64
Product AMP ‘Decadeus’ v2.4.6.6 (Mainline)
Virtualization QEMU_KVM
Application Valheim
Module GenericModule
Running in Container No
Current State Failed

Problem Description

Issue

mono runtime and class libraries are out of sync

Reproduction Steps

  • Update application
  • Start application
  • Fail err139

Logs :
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 “System.MissingMemberException::FormatSignature” (tested without signature also)

Your mono runtime and class libraries are out of sync.

The out of sync library is: /home/amp/.ampdata/instances/Moriarti01/Valheim/896660/unstripped_corlib/mscorlib.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 “System.Reflection.MemberInfo::get_MetadataToken” (tested without signature also)

Your mono runtime and class libraries are out of sync.

The out of sync library is: /home/amp/.ampdata/instances/Moriarti01/Valheim/896660/unstripped_corlib/mscorlib.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.

Caught fatal signal - signo:11 code:1 errno:0 addr:(nil)

Obtained 15 stack frames.

#0 0x007f750d469140 in funlockfile

#1 (nil) in (Unknown)

#2 0x00000041a6cbeb in (wrapper managed-to-native) Mono.SafeStringMarshal:StringToUtf8 (string)

#3 0x00000041a6cb03 in Mono.SafeStringMarshal:get_Value ()

#4 0x00000041a6ca43 in System.Environment:internalGetEnvironmentVariable (string)

#5 0x00000041a6c9bf in System.Environment:GetEnvironmentVariable (string)

#6 0x00000041a612a3 in System.TimeZoneInfo:CreateLocal ()

#7 0x00000041a60fe7 in System.TimeZoneInfo:get_Local ()

#8 0x00000041a60f77 in System.TimeZoneInfo:GetDateTimeNowUtcOffsetFromUtc (System.DateTime,bool&)

#9 0x00000041a6069b in System.DateTime:get_Now ()

#10 0x00000041a60203 in BepInEx.Preloader.Entrypoint:Main ()

#11 0x00000041a60610 in (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)

#12 0x007f750c47f3fe in mono_runtime_invoke

#13 0x007f750c4d970d in mono_gc_pending_finalizers

#14 0x007f750c19df60 in (Unknown)

Hi Valentin,

Unfortunately, as a text-based agent, I’m unable to view image-based information. Could you please transcribe the contents of the log image you posted into text? That way, I’ll be able to help you further with your issue.

Thanks in advance!

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 “System.MissingMemberException::FormatSignature” (tested without signature also)

Your mono runtime and class libraries are out of sync.

The out of sync library is: /home/amp/.ampdata/instances/Moriarti01/Valheim/896660/unstripped_corlib/mscorlib.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 “System.Reflection.MemberInfo::get_MetadataToken” (tested without signature also)

Your mono runtime and class libraries are out of sync.

The out of sync library is: /home/amp/.ampdata/instances/Moriarti01/Valheim/896660/unstripped_corlib/mscorlib.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.

Caught fatal signal - signo:11 code:1 errno:0 addr:(nil)

Obtained 15 stack frames.

#0 0x007f750d469140 in funlockfile

#1 (nil) in (Unknown)

#2 0x00000041a6cbeb in (wrapper managed-to-native) Mono.SafeStringMarshal:StringToUtf8 (string)

#3 0x00000041a6cb03 in Mono.SafeStringMarshal:get_Value ()

#4 0x00000041a6ca43 in System.Environment:internalGetEnvironmentVariable (string)

#5 0x00000041a6c9bf in System.Environment:GetEnvironmentVariable (string)

#6 0x00000041a612a3 in System.TimeZoneInfo:CreateLocal ()

#7 0x00000041a60fe7 in System.TimeZoneInfo:get_Local ()

#8 0x00000041a60f77 in System.TimeZoneInfo:GetDateTimeNowUtcOffsetFromUtc (System.DateTime,bool&)

#9 0x00000041a6069b in System.DateTime:get_Now ()

#10 0x00000041a60203 in BepInEx.Preloader.Entrypoint:Main ()

#11 0x00000041a60610 in (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)

#12 0x007f750c47f3fe in mono_runtime_invoke

#13 0x007f750c4d970d in mono_gc_pending_finalizers

#14 0x007f750c19df60 in (Unknown)

Do you happen to have Mono installed on the host system? It can conflict sometimes with what the games themselves use.

Yes I have a mono file, several in fact

That’s not what I mean. I meant whether the mono package is installed on the system. Run mono --version to check.

Hi, sorry for jumping in… but I have the exact same issue and I have no mono installed.

Are you using Docker mode?

no, I am running Ubuntu 22.04.3 in a VM

If it happens with the base game then it’s probably a bug in the game itself that should be brought to the attention of the developers.

I am using Valheim with Valheim Plus mod installed via AMP.


Mike, I am new to the forum and I am limited to 3 answers ^^.

Do you mean that I shall install a new instance without Plus ?

Does it happen without V+ using the base game?

I installed a new Valheim instance without Plus and it started without any errors.

Then V+ probably isn’t up-to-date then and you’ll have to wait for the developers of it to get up to scratch :+1:

They already upated it but it looks like they did not change the version no. Can I somehow tell AMP to REINSTALL the Plus mod without loosing my settings and world data ?

Meanwhile I installed another instance with V+ and AMP downloaded it again but it was not the solution, server is not starting again.

V+ hasn’t been updated since a month ago, so doesn’t have the latest Bep.

There are issues on the V+ GH noting this.

The workaround mentioned is to delete the unstripped_corlib dir, and comment out the line in doorstop_config.ini that refers to it.

I already deleted the unstripped_corlib dir but I missed the part where I have to comment out the reference. So you gave me the missing piece.
The server is running now and I can join. Thanks so much Greelan!

Hi, I don’t know which line to modify in doorstop_config.ini. Can you help me? Thank you.

Find the line that refers to unstripped_corlib

Should be near the end