vPilot crash on: Unhandled exception System.IndexOutOfRangeException: Index was outside the bounds of the array

Over the last few months im sporadically getting this error code in vPilot:

vPilot version 3.9.0

2024-04-20 14:16:25.760 +02:00 [ERR] Unhandled exception
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at aa.b(String A_0)
   at aa.a(IAsyncResult A_0)
   at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
   at System.Net.ContextAwareResult.CompleteCallback(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Net.ContextAwareResult.Complete(IntPtr userToken)
   at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
   at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

This has continued over a couple of complete reinstalls of vPilot as well as multiple updates. This error seems to occur in times of heavy traffic in the vicinity of where im flying. This error manifests itself in a popup with the error code opening and when you close it vPilot closes. The strange thing is it seems that I can continue to communicate with ATC despite vPilot being in a “crashed” state until I close the popup.

Has anyone else run into this issue?


Complete log file

2024-04-20 12:17:57.684 +02:00 [INF] vPilot version 3.9.0 starting up
2024-04-20 12:17:57.711 +02:00 [INF] Running in "Standalone" mode
2024-04-20 12:17:58.484 +02:00 [INF] Licensed for non-commercial entertainment use only
2024-04-20 12:18:00.659 +02:00 [INF] Downloaded 1 servers
2024-04-20 12:18:01.189 +02:00 [INF] Validating "Msfs"
2024-04-20 12:18:08.683 +02:00 [INF] Aircraft config file size or date changed, checking MD5 hash: D:\Flight Sim\Microsoft Flight Simulator\Community\noolaero-module-vdgs\Cache\aircraft.cfg
2024-04-20 12:18:08.689 +02:00 [INF] MD5 hash is the same, resaving model scan result with new config file sizes and timestamps.
2024-04-20 12:26:29.013 +02:00 [INF] Custom model matching rules loaded.
2024-04-20 12:26:29.492 +02:00 [INF] Model matching rules generated.
2024-04-20 12:26:29.511 +02:00 [INF] "FbwVpilotActive" value changed: false
2024-04-20 12:28:58.668 +02:00 [INF] Connecting to network
2024-04-20 12:28:58.695 +02:00 [INF] Connected to network
2024-04-20 12:51:56.580 +02:00 [ERR] Network error: Parse error. (Raw packet: BEL11F:50.9061^OEO584:50.8743600:7.1296900:238.05:14.82:12585516:-0.0008:-0.0002:-0.0007:0.0000:0.0000:0.0000:0.00)
2024-04-20 12:54:06.689 +02:00 [ERR] Network error: Parse error. (Raw packet: PAI5:50.8811700:7^DLH634:50.8821300:7.1189400:234.82:0.92:12577180:0.0000:0.0000:0.0000:0.0000:0.0000:0.0000:0.00)
2024-04-20 13:02:37.193 +02:00 [ERR] Network error: Parse error. (Raw packet: EWG677:50.8377000:7.1685400:1078.82:640.#SLDLH137:50.8679600:7.1410600:260.40:14.34:1656:0.8683:-0.0012:-1.3596:0.0000:0.0177:0.0011:16.15)
2024-04-20 13:42:20.565 +02:00 [ERR] Network error: Parse error. (Raw packet: VCP14:52.3110700:4.76737@N:KLM655:2131:1:52.30211:4.73899:4:4:4192728:-238)
2024-04-20 14:12:12.377 +02:00 [ERR] Network error: Parse error. (Raw packet: DAL1017:52.3080000:4.7663400:4.56:14.69:3920:-0.0006:0.0027:0.00$CQFP_OBS:@94835:WH:AFR73KP)
2024-04-20 14:12:13.941 +02:00 [ERR] Network error: Parse error. (Raw packet: KLM695:52.3111100:4.7641200:6.26:14^UAL907:52.3128600:4.7593400:4.12:14.32:4194264:-0.0002:-0.0025:-0.0006:-0.0001:0.0000:0.0001:0.00)
2024-04-20 14:12:17.108 +02:00 [ERR] Network error: Parse error. (Raw packet: N:KLM92V:7000:1:52.31343:4.$CQUPS107:@94836:ACC:{"config":{"lights":{"beacon_on":true}}})
2024-04-20 14:12:48.742 +02:00 [ERR] Network error: Parse error. (Raw packet: KLM671L:52.3115800:4.7340100:-0.78:9.22:4190232:0.3#STN550BK:52.3115600:4.8039100:-2.89:-0.86:8392144:0.00)
2024-04-20 14:14:44.445 +02:00 [ERR] Network error: Parse error. (Raw packet: KLM268:52.3303100:4.7186800:1.67:11.57:1%EHAM_E_APP:19055:5:140:5:52.30806:4.76417:0)
2024-04-20 14:14:47.340 +02:00 [ERR] Network error: Parse error. (Raw packet: AAL2993:52.2789734:4.7150453:1244.53:1194^KLM231:52.3121800:4.7737700:6.23:16.36:8386596:0.0000:-0.0012:0.0003:-0.0001:0.0000:0.0000:0.00)
2024-04-20 14:14:56.592 +02:00 [ERR] Network error: Invalid field count. (Raw packet: UAL907:52.315050#STCFG1EW:51.2804300:6.7621800:121.74:-0.15:4294948668:0.00)
2024-04-20 14:15:29.646 +02:00 [ERR] Network error: Parse error. (Raw packet: N550BK:52.311560^KLM695A:52.4394500:4.8594300:5949.50:5656.67:4198629504:32.6085:9.8406:122.1268:-0.0036:-0.0185:-0.0164:-0.76)
2024-04-20 14:15:58.950 +02:00 [ERR] Network error: Parse error. (Raw packet: CFG1EW:51.2804300:6.7621800:121.74:-0.1^UAL71:52.3135200:4.7557600:4.11:14.34:25166800:0.0000:0.0000:0.0000:0.0000:0.0000:0.0000:0.00)
2024-04-20 14:16:25.760 +02:00 [ERR] Unhandled exception
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at aa.b(String A_0)
   at aa.a(IAsyncResult A_0)
   at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
   at System.Net.ContextAwareResult.CompleteCallback(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Net.ContextAwareResult.Complete(IntPtr userToken)
   at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
   at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
2024-04-20 14:16:32.806 +02:00 [INF] vPilot version 3.9.0 starting up
2024-04-20 14:16:32.824 +02:00 [INF] Running in "Standalone" mode
2024-04-20 14:16:33.389 +02:00 [INF] Licensed for non-commercial entertainment use only
2024-04-20 14:16:35.861 +02:00 [INF] Downloaded 1 servers
2024-04-20 14:16:36.439 +02:00 [INF] Validating "Msfs"
2024-04-20 14:16:43.177 +02:00 [INF] Aircraft config file size or date changed, checking MD5 hash: D:\Flight Sim\Microsoft Flight Simulator\Community\noolaero-module-vdgs\Cache\aircraft.cfg
2024-04-20 14:16:43.183 +02:00 [INF] MD5 hash is the same, resaving model scan result with new config file sizes and timestamps.
2024-04-20 14:16:43.435 +02:00 [INF] Custom model matching rules loaded.
2024-04-20 14:16:43.919 +02:00 [INF] Model matching rules generated.
2024-04-20 14:16:43.934 +02:00 [INF] "FbwVpilotActive" value changed: false
2024-04-20 14:16:45.720 +02:00 [INF] Connecting to network
2024-04-20 14:16:45.760 +02:00 [INF] Connected to network
2024-04-20 14:17:22.943 +02:00 [ERR] Unhandled exception
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at aa.b(String A_0)
   at aa.a(IAsyncResult A_0)
   at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
   at System.Net.ContextAwareResult.CompleteCallback(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Net.ContextAwareResult.Complete(IntPtr userToken)
   at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
   at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
2024-04-20 14:17:47.278 +02:00 [INF] vPilot version 3.9.0 starting up
2024-04-20 14:17:47.296 +02:00 [INF] Running in "Standalone" mode
2024-04-20 14:17:47.492 +02:00 [INF] Licensed for non-commercial entertainment use only
2024-04-20 14:17:48.267 +02:00 [INF] Downloaded 1 servers
2024-04-20 14:17:49.121 +02:00 [INF] Validating "Msfs"
2024-04-20 14:17:51.348 +02:00 [INF] Custom model matching rules loaded.
2024-04-20 14:17:51.847 +02:00 [INF] Model matching rules generated.
2024-04-20 14:17:51.868 +02:00 [INF] "FbwVpilotActive" value changed: false
2024-04-20 14:17:53.498 +02:00 [INF] Connecting to network
2024-04-20 14:17:53.525 +02:00 [INF] Connected to network
2024-04-20 14:21:34.985 +02:00 [ERR] Network error: Invalid field count. (Raw packet: N:B09590:27$CQLK_OBS:@94835:WH:TOM3GM)
2024-04-20 14:22:25.479 +02:00 [ERR] Network error: Parse error. (Raw packet: KLM24C:52.3102900:4.7470800:5.50:15.49:8385572:-0.0070:0.0014:-0.0161:-0.0013:-0.0001:-^JBU2289:52.3071400:4.7715600:-1.25:8.97:4190240:0.0032:-0.0053:-0.0027:-0.0008:0.0000:-0.0011:0.01)
2024-04-20 14:23:19.664 +02:00 [ERR] Network error: Invalid field count. (Raw packet: VCP1$CQENOS_N_CTR:@94835:SC:AAL86:)
2024-04-20 14:24:06.945 +02:00 [ERR] Network error: Parse error. (Raw packet: BAW455:52.4696500:4.8674600:1984.49:1886.72:4274000804:136.1730:-0.0378:8.5929:-0.0005:-^ASL1126:52.4354500:5.0918500:38228.98:36641.60:4240444804:-201.6796:0.0698:113.4335:0.0020:-0.0001:0.0002:0.00)
2024-04-20 14:24:47.169 +02:00 [ERR] Network error: Parse error. (Raw packet: DAL75:52.3114900:4.7651300:$CQEGKK_GND:@94835:SC:UBT71A:NOT B1330)
2024-04-20 14:25:50.057 +02:00 [ERR] Network error: Parse error. (Raw packet: KLM6PY:52.3147700:4.7442900:4.46:14.32:3028:-4.4397:-0.0027:-0.2847:0.000^KLM24C:52.3103000:4.7470800:5.50:15.49:8385572:-0.0032:-0.0011:0.0053:-0.0007:0.0000:0.0011:0.00)
2024-04-20 14:27:03.892 +02:00 [ERR] Network error: Invalid field count. (Raw packet: FLM1227:52.3178700:4.7345100:-3.51:8.63:4$CQGMMN_GND:@94835:WH:RAM909)
2024-04-20 14:28:22.413 +02:00 [ERR] Network error: Parse error. (Raw packet: N:MQT14SE:1000:1:51.16179:6.64529:6696:286:41^UAL949:52.3106211:4.7339445:4.40:14.37:4190240:0.5843:-0.0029:10.7404:0.0002:-0.0029:-0.0002:0.76)
2024-04-20 14:28:33.348 +02:00 [ERR] Network error: Parse error. (Raw packet: KLM6PY:52^KLM617T:52.3092600:4.7679600:4.17:14.38:4286576672:0.0000:0.0000:0.0000:0.0000:0.0000:0.0000:0.00)
2024-04-20 14:28:52.539 +02:00 [ERR] Network error: Invalid field count. (Raw packet: #STWMT224:52.3027700:4.7626100:0.88:-0.02:4290765464:0.00)
2024-04-20 14:29:49.859 +02:00 [ERR] Unhandled exception
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at aa.b(String A_0)
   at aa.a(IAsyncResult A_0)
   at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
   at System.Net.ContextAwareResult.CompleteCallback(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Net.ContextAwareResult.Complete(IntPtr userToken)
   at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
   at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
2024-04-20 14:29:54.448 +02:00 [INF] vPilot version 3.9.0 starting up
2024-04-20 14:29:54.467 +02:00 [INF] Running in "Standalone" mode
2024-04-20 14:29:54.663 +02:00 [INF] Licensed for non-commercial entertainment use only
2024-04-20 14:29:55.458 +02:00 [INF] Downloaded 1 servers
2024-04-20 14:29:56.329 +02:00 [INF] Validating "Msfs"
2024-04-20 14:29:58.696 +02:00 [INF] Custom model matching rules loaded.
2024-04-20 14:29:59.204 +02:00 [INF] Model matching rules generated.
2024-04-20 14:29:59.224 +02:00 [INF] "FbwVpilotActive" value changed: false
2024-04-20 14:30:00.598 +02:00 [INF] Connecting to network
2024-04-20 14:30:00.619 +02:00 [INF] Connected to network
2024-04-20 14:31:13.414 +02:00 [ERR] Network error: Parse error. (Raw packet: WMT224:52.3027700:4.$CQZQO5:@94835:WH:UPS224)
2024-04-20 14:35:29.749 +02:00 [ERR] Network error: Parse error. (Raw packet: ACA901:52.3102500:4.7661800:3.23:14.73:3460:0.0044:-0.0006:0.0030:-0.0004:0.0000:0.0000:0.00@N:KLM92V:2000:1:52.31343:4.76980:4:0:3448:-238)
2024-04-20 14:36:45.981 +02:00 [ERR] Network error: Parse error. (Raw packet: KLM66PT:52.3140100:4.7466300:4.43:14.33:3044:-1^ACA804:52.3138100:4.7673100:4.54:14.73:4191612:0.0000:0.0000:0.0000:0.0000:0.0032:0.0000:-5.23)
2024-04-20 14:37:29.772 +02:00 [ERR] Network error: Parse error. (Raw packet: KLM14Y:52.3286900:4.7109500:4.06:14.35:2852:0.0000:-0.0034:0.0#STWMT224:52.3029000:4.7617800:1.13:0.02:4187812:0.00)
2024-04-20 14:37:42.231 +02:00 [ERR] Network error: Parse error. (Raw packet: N:DAL49:2752:1:52.35847:4.291^KLM0671:52.3313300:4.7150700:18.78:13.86:8387180:-0.0075:0.0000:-0.0053:0.0000:0.0000:0.0000:0.00)
2024-04-20 14:37:56.986 +02:00 [ERR] Network error: Parse error. (Raw packet: KLM24W:52.3121000:4.7700800:4.18:14.37:4190544:3.5433:0@N:SAS66A:2525:1:50.96778:4.69541:2869:218:4273994528:-288)
2024-04-20 14:40:10.636 +02:00 [ERR] Network error: Parse error. (Raw packet: LIFELN1:52.2227700:4.9830000:662.16:645.49:58709148:60.2047:-0.2247:-23.9769:-0.0387:-0.0042:-0.0023:-0.36
^KLM24W:52.3147300:4.7719600:4.31:14.37:4190240:0.2767:-0.0027:5.1465:0.0004:-0.0015:-0.0002:0.00)
2024-04-20 14:40:18.373 +02:00 [ERR] Network error: Parse error. (Raw packet: KAY340:52.3128500:4.7$CQCE_SUP:@94835:WH:CSOVD)
2024-04-20 14:40:21.830 +02:00 [ERR] Network error: Parse error. (Raw packet: KLM0671:52.3303900:4.7136200:18.78:13.86:8391128:-0.0072:0.0000:-0.00#SLKLM14Y:52.3292800:4.7090400:2.76:14.36:4194264:-0.0002:-0.0031:0.0000:0.0000:0.0000:0.0000:0.00)
2024-04-20 14:40:27.903 +02:00 [ERR] Network error: Parse error. (Raw packet: JBU2287:52.3070200:4.7#STKAY340:52.3128500:4.7557400:8.77:0.34:8385500:0.00)
2024-04-20 14:40:32.610 +02:00 [ERR] Network error: Invalid field count. (Raw packet: KLM1@N:DAL49:2752:1:52.20297:3.92375:13274:369:4269800076:-273)
2024-04-20 14:42:46.119 +02:00 [ERR] Unhandled exception
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at aa.b(String A_0)
   at aa.a(IAsyncResult A_0)
   at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
   at System.Net.ContextAwareResult.CompleteCallback(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Net.ContextAwareResult.Complete(IntPtr userToken)
   at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
   at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
2024-04-20 14:42:51.482 +02:00 [INF] vPilot version 3.9.0 starting up
2024-04-20 14:42:51.501 +02:00 [INF] Running in "Standalone" mode
2024-04-20 14:42:51.703 +02:00 [INF] Licensed for non-commercial entertainment use only
2024-04-20 14:42:52.531 +02:00 [INF] Downloaded 1 servers
2024-04-20 14:42:53.339 +02:00 [INF] Validating "Msfs"
2024-04-20 14:42:55.692 +02:00 [INF] Custom model matching rules loaded.
2024-04-20 14:42:56.199 +02:00 [INF] Model matching rules generated.
2024-04-20 14:42:56.209 +02:00 [INF] "FbwVpilotActive" value changed: false
2024-04-20 14:42:58.731 +02:00 [INF] Connecting to network
2024-04-20 14:42:58.773 +02:00 [INF] Connected to network
2024-04-20 14:43:46.515 +02:00 [ERR] Network error: Parse error. (Raw packet: KLM74P:52.3137400:4.7628700:4.16:14.33:2^ACA902:52.3107300:4.7425600:4.72:14.77:2088:-0.5888:-0.0011:-9.2708:0.0001:0.0050:0.0003:0.00)
2024-04-20 14:43:49.776 +02:00 [ERR] Network error: Parse error. (Raw packet: SAS1WY:52.2997500:4.7494500:12.89:7.^KLM258:52.3065256:4.7707699:4.30:14.32:4190232:0.0001:0.0040:0.0000:0.0000:0.0000:0.0000:0.00)
2024-04-20 14:45:23.268 +02:00 [ERR] Network error: Parse error. (Raw packet: DLH992:52.3031200:4.7677600:-3.29:8.70:3208:-4.3160:-0.0067:0.9759:0.0094:0.0944:^KLM264:52.3067800:4.7721700:4.99:14.35:3900:0.0000:0.0000:0.0000:0.0002:-0.0424:0.0005:37.58)
2024-04-20 14:47:20.838 +02:00 [ERR] Network error: Invalid field count. (Raw packet: KLM451:52.3902000:4.7143700:2639.04:2511.91:4227850240:$CQLOVV_C_CTR:@94835:WH:BAW1622)

What version of vPilot? (Please provide the exact version number.)

Oh yeah sorry.
Im running vPilot v3.9.0

Does this only happen when there are other aircraft in range?

Do you get any red error text in the vPilot window along with the popup?

I only remember it happening with traffic nearby. But when I normally fly outside of events, so with less traffic, I can’t recall it happening. From my experience, it only happens when there is a significant amount of traffic close by.

And no there are no additional messages in the client normally.
Right now I had another crash a couple of minutes ago and I got this message as well.

[13:55:07] Network error: Invalid field count. (Raw packet: KLM672:52.3130400:4.7720300:6.59:14.3$CQJO_OBS:@94835:WH:GRL34T)

But I don’t think it’s related.

Not sure what’s happening there. Looks like somehow some of the data packets coming in over the network are corrupted/malformed. All I can suggest is that you run vPilot in Debug mode (using one of the Debug shortcuts in the programs list) which will enable network logging. This will create a file in My Documents\vPilot Files each time you start vPilot (in Debug mode) with a filename that contains the date and time that you launched vPilot, such as NetworkTraffic-20230226002658.log.

Note that this log file will contain literally every packet sent or received, which will be a LOT of data if you have other aircraft nearby. You are sending your position 5 times per second, and nearby aircraft are each sending you their positions 5 times per second. So you will want to be careful to not let these log files grow too big and consume too much of your disk space.

If you can run vPilot in Debug mode and the crash occurs, let me know, and we’ll arrange for you to send me the relevant network traffic log, and that may shed some light on the problem.

1 Like

All right. Sounds like a plan.