[Alpha 5.6.0] Crash on start


  • Hi,

    since today, I cannot restart my server anymore. It crash with the following error:

    Exception
    System.AggregateException: One or more errors occurred. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Cannot create an instance of an interface.
    at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
    at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
    at System.Activator.CreateInstance(Type type, Boolean nonPublic)
    at System.Activator.CreateInstance(Type type)
    at Eco.Core.Serialization.Serializers.EnumerableSerializer2.Decode(BinaryReader reader) at Eco.Core.Serialization.Serializers.ClassSerializer1.DecodeToObject(BinaryReader reader)
    at Eco.Core.Serialization.Serializers.ClassSerializer1.DecodeToObject(BinaryReader reader) at Eco.Core.Serialization.Serializers.EnumerableSerializer2.Decode(BinaryReader reader)
    at Eco.Core.Serialization.Serializers.ClassSerializer1.DecodeToObject(BinaryReader reader) at Eco.Core.Serialization.Serializers.ClassSerializer1.DecodeToObject(BinaryReader reader)
    at Eco.Core.Serialization.SimpleSerializer.Deserialize(Stream stream)
    at Eco.Core.Serialization.DataStore.Load[T](String folder, Action2 createFunc) at Eco.Core.Plugins.StorageManager.CreateOrLoad[StorageType](String folder) at Eco.Gameplay.Legislation..ctor() --- End of inner exception stack trace --- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Activator.CreateInstance(Type type, Object[] args) at Eco.Server.PluginManager.AddPlugin(Type pluginType, Object[] p) at System.Threading.Tasks.Task.Execute() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at Eco.Server.PluginManager..ctor(String configDir) at Eco.Server.MainClass.Main(String[] args) ---> (Inner Exception #0) System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Cannot create an instance of an interface. at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at Eco.Core.Serialization.Serializers.EnumerableSerializer2.Decode(BinaryReader reader)
    at Eco.Core.Serialization.Serializers.ClassSerializer1.DecodeToObject(BinaryReader reader) at Eco.Core.Serialization.Serializers.ClassSerializer1.DecodeToObject(BinaryReader reader)
    at Eco.Core.Serialization.Serializers.EnumerableSerializer2.Decode(BinaryReader reader) at Eco.Core.Serialization.Serializers.ClassSerializer1.DecodeToObject(BinaryReader reader)
    at Eco.Core.Serialization.Serializers.ClassSerializer1.DecodeToObject(BinaryReader reader) at Eco.Core.Serialization.SimpleSerializer.Deserialize(Stream stream) at Eco.Core.Serialization.DataStore.Load[T](String folder, Action2 createFunc)
    at Eco.Core.Plugins.StorageManager.CreateOrLoad[StorageType](String folder)
    at Eco.Gameplay.Legislation..ctor()
    --- End of inner exception stack trace ---
    at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
    at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
    at System.Activator.CreateInstance(Type type, Boolean nonPublic)
    at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
    at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
    at System.Activator.CreateInstance(Type type, Object[] args)
    at Eco.Server.PluginManager.AddPlugin(Type pluginType, Object[] p)
    at System.Threading.Tasks.Task.Execute()<---


  • 4
    Posts
    943
    Views
    Log in to reply


  • Using a backup from storage don't change anything



  • Looks like someone made law on your server. There is a bug in 5.6 that laws crash the server. This was fixed in 5.6.1

    5.6.1 is in staging but is stable and going to come to full release Monday. Its suggested that you just upgrade to staging version now and that should solve it.

    The other thing you can do is unzip Game.eco, and delete the law from the law folder and then zip Game.eco back up. That sometimes, but does not always, fix the crashing.

    Pam
    Community Moderator
    Discord: Pam#5439
    reddit moderator: rentechd
    https://discord.gg/Mg4WJe9



  • @rentechd The bug is not fixed in 5.6.1, we just saw this bug again on our 5.6.1 server. Your tricks fixed the problem.


4
Posts
943
Views
Log in to reply

Internal error.

Oops! Looks like something went wrong!