Skip to content
This repository was archived by the owner on Aug 8, 2024. It is now read-only.
This repository was archived by the owner on Aug 8, 2024. It is now read-only.

Server Sided Sirens cause server to crash #129

@frosty0999

Description

@frosty0999

When you use a server sided sirens script it will cause the script to spit out an error and then the whole server will then restart. I am using the latest version from the discord.

Unhandled exception in Mono script environment: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
  at System.Collections.Generic.List`1+Enumerator[T].MoveNextRare () [0x00013] in <9391d7651e69459eae268d8a1dfa670f>:0 
  at System.Collections.Generic.List`1+Enumerator[T].MoveNext () [0x0004a] in <9391d7651e69459eae268d8a1dfa670f>:0 
  at CitizenFX.Core.MsgPackSerializer.Serialize (System.Object obj, MsgPack.Packer packer) [0x001dc] in /src/code/client/clrcore/MsgPackSerializer.cs:118 
  at CitizenFX.Core.MsgPackSerializer.Serialize (System.Object obj, MsgPack.Packer packer) [0x001d1] in /src/code/client/clrcore/MsgPackSerializer.cs:120 
  at CitizenFX.Core.MsgPackSerializer.Serialize (System.Object obj) [0x00020] in /src/code/client/clrcore/MsgPackSerializer.cs:56 
  at CitizenFX.Core.Player.TriggerEvent (System.String eventName, System.Object[] args) [0x00000] in /src/code/client/clrcore/Server/ServerWrappers.cs:76 
  at CitizenFX.Core.BaseScript.TriggerClientEvent (CitizenFX.Core.Player player, System.String eventName, System.Object[] args) [0x00000] in /src/code/client/clrcore/BaseScript.cs:243 
  at ELS_Server.ELSServer.<.ctor>b__4_6 (System.Int32 source) [0x0003e] in <52f197a314054896a8156de78cc550a0>:0 
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_1 (System.Object state) [0x00000] in <9391d7651e69459eae268d8a1dfa670f>:0 
  at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00008] in <9391d7651e69459eae268d8a1dfa670f>:0 
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <9391d7651e69459eae268d8a1dfa670f>:0 
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <9391d7651e69459eae268d8a1dfa670f>:0 
  at System.Collections.Generic.List`1+Enumerator[T].MoveNextRare () [0x00013] in <9391d7651e69459eae268d8a1dfa670f>:0 
  at System.Collections.Generic.List`1+Enumerator[T].MoveNext () [0x0004a] in <9391d7651e69459eae268d8a1dfa670f>:0 
  at CitizenFX.Core.MsgPackSerializer.Serialize (System.Object obj, MsgPack.Packer packer) [0x001dc] in /src/code/client/clrcore/MsgPackSerializer.cs:118 
  at CitizenFX.Core.MsgPackSerializer.Serialize (System.Object obj, MsgPack.Packer packer) [0x001d1] in /src/code/client/clrcore/MsgPackSerializer.cs:120 
  at CitizenFX.Core.MsgPackSerializer.Serialize (System.Object obj) [0x00020] in /src/code/client/clrcore/MsgPackSerializer.cs:56 
  at CitizenFX.Core.Player.TriggerEvent (System.String eventName, System.Object[] args) [0x00000] in /src/code/client/clrcore/Server/ServerWrappers.cs:76 
  at CitizenFX.Core.BaseScript.TriggerClientEvent (CitizenFX.Core.Player player, System.String eventName, System.Object[] args) [0x00000] in /src/code/client/clrcore/BaseScript.cs:243 
  at ELS_Server.ELSServer.<.ctor>b__4_6 (System.Int32 source) [0x0003e] in <52f197a314054896a8156de78cc550a0>:0 
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_1 (System.Object state) [0x00000] in <9391d7651e69459eae268d8a1dfa670f>:0 
  at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00008] in <9391d7651e69459eae268d8a1dfa670f>:0 
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <9391d7651e69459eae268d8a1dfa670f>:0 
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <9391d7651e69459eae268d8a1dfa670f>:0 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions