Jump to content

Disconnect for unknown reason (TrainAnnouncement.AnnouncementController.AddHighPriorityAnnouncement)


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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Our servers

    • Drivers | Maszyniści Drivers | Maszyniści
      • PL1
      • pl1
      • 2 / 50
          • Percentage filling 4%
          • Most players 52
      • PL2
      • pl2
      • 0 / 0
          • Percentage filling 0%
          • Most players 65
      • PL3
      • pl3
      • 0 / 54
          • Percentage filling 0%
          • Most players 57
      • PL4
      • pl4
      • 0 / 0
          • Percentage filling 0%
          • Most players 53
      • PL5
      • pl5
      • 0 / 0
          • Percentage filling 0%
          • Most players 40
      • PL7
      • pl7
      • 0 / 0
          • Percentage filling 0%
          • Most players 31
      • PL8
      • pl8
      • 3 / 55
          • Percentage filling 5%
          • Most players 44
      • EN1
      • en1
      • 0 / 54
          • Percentage filling 0%
          • Most players 60
      • EN2
      • en2
      • 0 / 0
          • Percentage filling 0%
          • Most players 21
      • EN3
      • en3
      • 0 / 52
          • Percentage filling 0%
          • Most players 21
      • EN4
      • en4
      • 0 / 0
          • Percentage filling 0%
          • Most players 21
      • EN5
      • en5
      • 0 / 0
          • Percentage filling 0%
          • Most players 15
      • EN6
      • en6
      • 0 / 0
          • Percentage filling 0%
          • Most players 7
      • EN7
      • en7
      • 0 / 0
          • Percentage filling 0%
          • Most players 21
      • EN8
      • en8
      • 0 / 56
          • Percentage filling 0%
          • Most players 17
      • EN9
      • en9
      • 0 / 56
          • Percentage filling 0%
          • Most players 33
      • DE1
      • de1
      • 2 / 56
          • Percentage filling 4%
          • Most players 65
      • DE2
      • de2
      • 0 / 0
          • Percentage filling 0%
          • Most players 71
      • DE3
      • de3
      • 0 / 0
          • Percentage filling 0%
          • Most players 66
      • DE4
      • de4
      • 1 / 54
          • Percentage filling 2%
          • Most players 60
      • DE5
      • de5
      • 0 / 50
          • Percentage filling 0%
          • Most players 60
      • FR1
      • fr1
      • 0 / 51
          • Percentage filling 0%
          • Most players 49
      • FR2
      • fr2
      • 0 / 0
          • Percentage filling 0%
          • Most players 20
      • UA1
      • ua1
      • 0 / 0
          • Percentage filling 0%
          • Most players 17
      • IT1
      • it1
      • 0 / 51
          • Percentage filling 0%
          • Most players 28
      • CN1
      • cn1
      • 0 / 85
          • Percentage filling 0%
          • Most players 28
      • CZ1
      • cz1
      • 0 / 74
          • Percentage filling 0%
          • Most players 50
      • CZ2
      • cz2
      • 0 / 0
          • Percentage filling 0%
          • Most players 30
      • ES1
      • es1
      • 0 / 71
          • Percentage filling 0%
          • Most players 18
      • ES2
      • es2
      • 0 / 0
          • Percentage filling 0%
          • Most players 10
      • NL1
      • nl1
      • 0 / 54
          • Percentage filling 0%
          • Most players 28
      • HU1
      • hu1
      • 0 / 53
          • Percentage filling 0%
          • Most players 28
    • Dispatchers | Dyżurni ruchu Dispatchers | Dyżurni ruchu
      • PL1
      • pl1
      • 0 / 17
          • Percentage filling 0%
          • Most players 17
      • PL2
      • pl2
      • 0 / 0
          • Percentage filling 0%
          • Most players 17
      • PL3
      • pl3
      • 0 / 17
          • Percentage filling 0%
          • Most players 17
      • PL4
      • pl4
      • 0 / 0
          • Percentage filling 0%
          • Most players 17
      • PL5
      • pl5
      • 0 / 0
          • Percentage filling 0%
          • Most players 14
      • PL8
      • pl8
      • 1 / 17
          • Percentage filling 6%
          • Most players 16
      • EN1
      • en1
      • 3 / 17
          • Percentage filling 18%
          • Most players 17
      • EN2
      • en2
      • 0 / 0
          • Percentage filling 0%
          • Most players 13
      • EN3
      • en3
      • 0 / 17
          • Percentage filling 0%
          • Most players 12
      • EN4
      • en4
      • 0 / 0
          • Percentage filling 0%
          • Most players 13
      • EN6
      • en6
      • 0 / 0
          • Percentage filling 0%
          • Most players 13
      • EN8
      • en8
      • 0 / 17
          • Percentage filling 0%
          • Most players 13
      • EN9
      • en9
      • 0 / 17
          • Percentage filling 0%
          • Most players 13
      • DE1
      • de1
      • 5 / 17
          • Percentage filling 29%
          • Most players 17
      • DE2
      • de2
      • 0 / 0
          • Percentage filling 0%
          • Most players 17
      • DE3
      • de3
      • 0 / 0
          • Percentage filling 0%
          • Most players 15
      • DE4
      • de4
      • 2 / 17
          • Percentage filling 12%
          • Most players 14
      • DE5
      • de5
      • 0 / 17
          • Percentage filling 0%
          • Most players 14
      • UA1
      • ua1
      • 0 / 0
          • Percentage filling 0%
          • Most players 13
      • FR1
      • fr1
      • 0 / 17
          • Percentage filling 0%
          • Most players 17
      • FR2
      • fr2
      • 0 / 0
          • Percentage filling 0%
          • Most players 14
      • ES1
      • es1
      • 0 / 17
          • Percentage filling 0%
          • Most players 13
      • ES2
      • es2
      • 0 / 0
          • Percentage filling 0%
          • Most players 11
      • CZ1
      • cz1
      • 0 / 17
          • Percentage filling 0%
          • Most players 17
      • CZ2
      • cz2
      • 0 / 0
          • Percentage filling 0%
          • Most players 13
      • IT1
      • it1
      • 0 / 17
          • Percentage filling 0%
          • Most players 13
      • CN1
      • cn1
      • 0 / 17
          • Percentage filling 0%
          • Most players 14
      • NL1
      • nl1
      • 0 / 17
          • Percentage filling 0%
          • Most players 14
      • HU1
      • hu1
      • 0 / 17
          • Percentage filling 0%
          • Most players 14
    • 61 Total servers
    • 19 / 1265 Total players
    • 2% Filled servers
×
×
  • Create New...

Important Information

Terms of Use Privacy Policy