1. Hello guys.

    I've tried to put gc.collect on console because we had some lag jumps on the server because the high ram usage of this last devblog and now an error spams the console and getting so much lag.

    The error:

    [Oxide] 20:43 [Error] Failed to call hook 'CanUseLock' on plugin 'RustCore v1.0.2665' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 20:43 [Debug] at Oxide.Game.Rust.RustCore.CanUseLock (.BasePlayer player, .BaseLock lock) [0x00000] in <filename unknown>:0
    at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
    at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

    I was looking for a post or something on google but I couldn't find anything about that.
     
  2. Wulf

    Wulf Community Admin

    For the CanUseLock error, update Oxide. The error isn't related to gc.collect though.
     
  3. We are on Nitrado Hosting and updated the server when the wipe 03/11 and was working fine until now (when I've restarted the server one hour ago). We had not any error since the update those days either. Only since the restart (And only changed the gc.collect from before)

    I think error appears when someone opens a door with codelock.
     
  4. Wulf

    Wulf Community Admin

    Yes, the CanDoorLock issue should have already been resolves as of Oxide build 2669.
     
  5. I'm sendind a ticket to the host but the server was running fine until this evening, updated correctly 2 days ago. Or that I thought because we had not any problem until now :(.

    I'll post their answer when I get it.