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.
  • Our servers

    • Drivers | Maszyniści Drivers | Maszyniści
      • PL2
      • pl2
      • 3 / 28
          • Percentage filling 11%
          • Most players 90
      • PL3
      • pl3
      • 3 / 75
          • Percentage filling 4%
          • Most players 76
      • PL4
      • pl4
      • 0 / 27
          • Percentage filling 0%
          • Most players 84
      • PL8
      • pl8
      • 0 / 76
          • Percentage filling 0%
          • Most players 84
      • EN1
      • en1
      • 1 / 30
          • Percentage filling 3%
          • Most players 80
      • EN2
      • en2
      • 1 / 78
          • Percentage filling 1%
          • Most players 60
      • EN3
      • en3
      • 0 / 81
          • Percentage filling 0%
          • Most players 60
      • DE1
      • de1
      • 0 / 29
          • Percentage filling 0%
          • Most players 87
      • DE3
      • de3
      • 0 / 29
          • Percentage filling 0%
          • Most players 66
      • DE4
      • de4
      • 0 / 78
          • Percentage filling 0%
          • Most players 65
      • FR1
      • fr1
      • 0 / 30
          • Percentage filling 0%
          • Most players 49
      • UA1
      • ua1
      • 0 / 49
          • Percentage filling 0%
          • Most players 27
      • CN1
      • cn1
      • 1 / 78
          • Percentage filling 1%
          • Most players 28
      • CZ1
      • cz1
      • 0 / 28
          • Percentage filling 0%
          • Most players 61
      • ES1
      • es1
      • 0 / 28
          • Percentage filling 0%
          • Most players 23
    • Dispatchers | Dyżurni ruchu Dispatchers | Dyżurni ruchu
      • PL2
      • pl2
      • 0 / 27
          • Percentage filling 0%
          • Most players 27
      • PL3
      • pl3
      • 0 / 27
          • Percentage filling 0%
          • Most players 27
      • PL4
      • pl4
      • 0 / 27
          • Percentage filling 0%
          • Most players 27
      • PL8
      • pl8
      • 0 / 27
          • Percentage filling 0%
          • Most players 27
      • EN1
      • en1
      • 0 / 27
          • Percentage filling 0%
          • Most players 27
      • EN2
      • en2
      • 3 / 27
          • Percentage filling 11%
          • Most players 21
      • EN3
      • en3
      • 0 / 27
          • Percentage filling 0%
          • Most players 13
      • DE1
      • de1
      • 1 / 27
          • Percentage filling 4%
          • Most players 27
      • DE3
      • de3
      • 0 / 27
          • Percentage filling 0%
          • Most players 27
      • DE4
      • de4
      • 1 / 27
          • Percentage filling 4%
          • Most players 24
      • UA1
      • ua1
      • 0 / 27
          • Percentage filling 0%
          • Most players 17
      • FR1
      • fr1
      • 0 / 27
          • Percentage filling 0%
          • Most players 23
      • ES1
      • es1
      • 1 / 27
          • Percentage filling 4%
          • Most players 15
      • CZ1
      • cz1
      • 1 / 27
          • Percentage filling 4%
          • Most players 27
      • CN1
      • cn1
      • 0 / 27
          • Percentage filling 0%
          • Most players 19
    • 30 Total servers
    • 16 / 1149 Total players
    • 1% Filled servers
×
×
  • Create New...

Important Information

Terms of Use Privacy Policy