IndexOutOfRangeException: Index was outside the bounds of the array.Fixed

Just updated and updated oxide being spammed into console hundreds of times

 

(14:36:40) | IndexOutOfRangeException: Index was outside the bounds of the array.

(14:36:40) | IndexOutOfRangeException: Index was outside the bounds of the array.

(14:36:40) | IndexOutOfRangeException: Index was outside the bounds of the array.

(14:36:40) | IndexOutOfRangeException: Index was outside the bounds of the array.

(14:36:40) | IndexOutOfRangeException: Index was outside the bounds of the array.

(14:36:40) | IndexOutOfRangeException: Index was outside the bounds of the array.

 

You'd need to check your server logs for the full error.

what log should i be checking plz wulf ?

+1 

after update (oxide + rust) from last hour i have this spam on all servers

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39)

IndexOutOfRangeException: Index was outside the bounds of the array.
  at NPCVendingMachine.Refill () [0x0006e] in <e715951e498840c888b37dd17e140a25>:0 
  at InvokeHandlerBase`1[T].DoTick () [0x000be] in <99258323ad3a49bcae894b5b42df04ee>:0 
  at InvokeHandlerBase`1[T].LateUpdate () [0x0000c] in <99258323ad3a49bcae894b5b42df04ee>:0 

I checked some plugins that do in fact do some stuff with vending machines and / or vendor npcs, but disabling any of them did not resolve the issue. I hope I won't have to check all of them as I have over 90 plugins loaded :P

Yup, also just updated Oxide per the instructions of a plugin author to fix an issue with that plugin and now we are being spammed with this error as well. Hoping we get a fix soon.

I just wiped my second - vanilla - server and there is the same problem. No way that there is any plugin that does anything with vendors so it must be something between rust update and latest oxide.. :(

IndexOutOfRangeException: Index was outside the bounds of the array.
IndexOutOfRangeException: Index was outside the bounds of the array.
  at NPCVendingMachine.Refill () [0x0006e] in <79d4e12ccec24c93a38a5662001c26e1>:0 
  at InvokeHandlerBase`1[T].DoTick () [0x000be] in <f7f56312f33744cba787f6e14cd96406>:0 
  at InvokeHandlerBase`1[T].LateUpdate () [0x0000c] in <f7f56312f33744cba787f6e14cd96406>:0 

Could be anything that changes your vending machines, try starting without rust edit btw.

This was recently mentioned in an Oxide PR.
https://github.com/OxideMod/Oxide.Rust/pull/333

If I understand correctly, the error happens because of the way plugins edit vending machines, and that updating those plugins to use the hook in a certain way can avoid the error.

Same error for me, any solution for this?

gamZIatlgG0Fs6s.png misticos

Could be anything that changes your vending machines, try starting without rust edit btw.

I dont use Rust edit or the plugins that fill/edit vending machines

Same error for me, 

 dont use Rust edit or the plugins that fill/edit vending machines

this error occurred after the server and oxide were last updated

IndexOutOfRangeException: Index was outside the bounds of the array.
IndexOutOfRangeException: Index was outside the bounds of the array.
IndexOutOfRangeException: Index was outside the bounds of the array.
IndexOutOfRangeException: Index was outside the bounds of the array.
IndexOutOfRangeException: Index was outside the bounds of the array.
IndexOutOfRangeException: Index was outside the bounds of the array.
IndexOutOfRangeException: Index was outside the bounds of the array.
IndexOutOfRangeException: Index was outside the bounds of the array.
IndexOutOfRangeException: Index was outside the bounds of the array.

so whats the fix /./

Same error here, Only plugin i use is Compound Options that does anything with the vending machines, I removed the plugin still getting the spam...

Locked automatically