Jump to content

Disconnect for unknown reason (TrainAnnouncement.AnnouncementController.AddHighPriorityAnnouncement)


Skully

Recommended Posts

I'm not having much luck with this update. I keep getting disconnected while the log spews:

[2023-03-11 12:51:22]: NullReferenceException: Object reference not set to an instance of an object.
  at ReasonsStoppingCarsCustom.CarInView (CarAIControllerCustom car, UnityEngine.GameObject go, UnityEngine.Rigidbody rigbody, System.Single distance, System.Single startSpeed, System.Single& moveSpeed, System.Boolean& tempStop, System.Single& keepOmmitingOposingCarTo, System.Single& reverseTime, System.Single distanceBetweenCars) [0x00000] in <00000000000000000000000000000000>:0 
  at CarAIControllerCustom.CheckCollisions () [0x00000] in <00000000000000000000000000000000>:0 
  at CarAIControllerCustom.Update () [0x00000] in <00000000000000000000000000000000>:0 

Followed by:

[2023-03-11 12:51:34]: Disconnecting connId=0 to prevent exploits from an Exception in MessageHandler: ArgumentException An item with the same key has already been added. Key: 08/13/2022 10:34:07
  at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x00000] in <00000000000000000000000000000000>:0 
  at TrainAnnouncement.AnnouncementController.AddHighPriorityAnnouncement (System.DateTime date, TrainAnnouncement.TrainAnnouncementData announcementData) [0x00000] in <00000000000000000000000000000000>:0 
  at Assets.Scripts.PersistantWorldData.StationAnnoucements.StationAnnoucementsControllerClient.AddHighPriorityStationAnnouncementToQueue (System.String dateTime, Assets.Scripts.PersistantWorldData.StationAnnoucements.StationIdentifier stationIdentifier, Assets.Scripts.PersistantWorldData.StationAnnoucements.AnnouncementData announcementData) [0x00000] in <00000000000000000000000000000000>:0 
  at Assets.Scripts.PersistantWorldData.StationAnnoucements.StationAnnoucementsControllerServer.InvokeUserCode_RpcSyncHighPriorityQueue__StationIdentifier__String__AnnouncementData (Mirror.NetworkBehaviour obj, Mirror.NetworkReader reader, Mirror.NetworkConnectionToClient senderConnection) [0x00000] in <00000000000000000000000000000000>:0 
  at Mirror.NetworkIdentity.HandleRemoteCall (System.Int32 componentIndex, System.Int32 functionHash, Mirror.RemoteCalls.RemoteCallType remoteCallType, Mirror.NetworkReader reader, Mirror.NetworkConnectionToClient senderConnection) [0x00000] in <00000000000000000000000000000000>:0 
  at Mirror.NetworkClient.OnRPCMessage (Mirror.RpcMessage message) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Action`1[T].Invoke (T obj) [0x00000] in <00000000000000000000000000000000>:0 
  at Mirror.NetworkClient+<>c__DisplayClass47_0`1[T].<RegisterHandler>g__HandlerWrapped|0 (Mirror.NetworkConnection _, T value) [0x00000] in <00000000000000000000000000000000>:0 
  at BestHTTP.WebSocket.OnWebSocketIncompleteFrameDelegate.Invoke (BestHTTP.WebSocket.WebSocket webSocket, BestHTTP.WebSocket.Frames.WebSocketFrameReader frame) [0x00000] in <00000000000000000000000000000000>:0 
  at Mirror.MessagePacking+<>c__DisplayClass7_0`2[T,C].<WrapHandler>g__Wrapped|0 (C conn, T msg, System.Int32 _) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Action`3[T1,T2,T3].Invoke (T1 arg1, T2 arg2, T3 arg3) [0x00000] in <00000000000000000000000000000000>:0 
  at Mirror.MessagePacking+<>c__DisplayClass6_0`2[T,C].<WrapHandler>b__0 (Mirror.NetworkConnection conn, Mirror.NetworkReader reader, System.Int32 channelId) [0x00000] in <00000000000000000000000000000000>:0 
  at Mirror.NetworkClient.UnpackAndInvoke (Mirror.NetworkReader reader, System.Int32 channelId) [0x00000] in <00000000000000000000000000000000>:0 
  at Mirror.NetworkClient.OnTransportData (System.ArraySegment`1[T] data, System.Int32 channelId) [0x00000] in <00000000000000000000000000000000>:0 
  at kcp2k.KcpTransport.<Awake>b__22_5 (System.ArraySegment`1[T] message, kcp2k.KcpChannel channel) [0x00000] in <00000000000000000000000000000000>:0 
  at kcp2k.KcpClient.<Connect>b__7_1 (System.ArraySegment`1[T] message, kcp2k.KcpChannel channel) [0x00000] in <00000000000000000000000000000000>:0 
  at kcp2k.KcpConnection.TickIncoming_Authenticated (System.UInt32 time) [0x00000] in <00000000000000000000000000000000>:0 
  at kcp2k.KcpConnection.TickIncoming () [0x00000] in <00000000000000000000000000000000>:0 
  at Mirror.NetworkLoop.NetworkEarlyUpdate () [0x00000] in <00000000000000000000000000000000>:0 

 

SimRail_log_2023-03-11_12-49-29.txt

Edited by Skully
Link to comment
Share on other sites

I see time is being used as a key. 

Key: 08/13/2022 10:33:39

Could it be that two announcements want to be played at the same second? 🤔

I think the announcer will probably have a hard time doing two at the same time, might as well skip it. 😄

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use Privacy Policy