Jump to content

NullReferenceException

Fixed 1.14.0 1.14.1

ALiEN JiM
ALiEN JiM

Posted

Hi EasySailing Team,

I ran into an issue after updating to v1.14.0. My server starts spamming the console with a NullReferenceException related to EntityFuelSystem_TryUseFuel_Patch, and eventually requires a restart.

It seems to happen when certain mountable vehicles (like MotorRowboat or RHIB) are active. Based on the console messages, my guess is that it might be related to the fuel system not being present or initialized.

I wanted to bring this to your attention in case it helps. I’m happy to provide any additional logs or details if needed.

Thanks for your work on EasySailing!


The console message:

Server Exception: Mountable Cycle
NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.EasySailing+EntityFuelSystem_TryUseFuel_Patch.Prefix (EntityFuelSystem __instance, System.Single seconds, System.Single fuelUsedPerSecond, System.Int32& __result) [0x00005] in <ecd4acaa55804e63af5fed85fd812775>:0 
  at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.EntityFuelSystem.TryUseFuel_Patch2(EntityFuelSystem,single,single)
  at MotorRowboat.VehicleFixedUpdate () [0x00156] in <9330175985ef4e7bb03abe503b9a9264>:0 
  at RHIB.VehicleFixedUpdate () [0x0002e] in <9330175985ef4e7bb03abe503b9a9264>:0 
  at BaseMountable.FixedUpdateCycle () [0x00039] in <9330175985ef4e7bb03abe503b9a9264>:0 
  at ServerMgr.FixedUpdate () [0x00018] in <9330175985ef4e7bb03abe503b9a9264>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception, Object)
ServerMgr:FixedUpdate()
 

Corvus

Posted

I'm looking into it, thanks Jim.

  • Like 1
Corvus

Posted

@ALiEN JiM I've released a new version that should address this issue. Let me know if you continue to see any errors.

Thanks!

  • Love 1
ALiEN JiM

Posted

Hi, thanks for the quick update. Unfortunately, the same issue is still happening in v1.14.1. Even unloading the plugin doesn’t stop the spam! I have to restart the server to fix it.

Version 1.13.3 works perfectly.

I’m running Oxide, and while I do have Raidable Boats, it isn’t currently installed. It also did seem to work fine with v1.13.3 from what I could tell when i was testing the plugin.


Loaded plugin EasySailing v1.14.1 by Corvus
Server Exception: Mountable Cycle
NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.EasySailing+EntityFuelSystem_TryUseFuel_Patch.Prefix (EntityFuelSystem __instance, System.Single seconds, System.Single fuelUsedPerSecond, System.Int32& __result) [0x00005] in <772ad713965d44ea8f70760a35dcb202>:0 
  at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.EntityFuelSystem.TryUseFuel_Patch1(EntityFuelSystem,single,single)
  at MotorRowboat.VehicleFixedUpdate () [0x00156] in <90302d684a574380a840c59dfd53d4e0>:0 
  at RHIB.VehicleFixedUpdate () [0x0002e] in <90302d684a574380a840c59dfd53d4e0>:0 
  at BaseMountable.FixedUpdateCycle () [0x00039] in <90302d684a574380a840c59dfd53d4e0>:0 
  at ServerMgr.FixedUpdate () [0x00018] in <90302d684a574380a840c59dfd53d4e0>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception, Object)
ServerMgr:FixedUpdate()

Corvus

Posted

Something's off, the following no longer exist in 1.14.1:
Oxide.Plugins.EasySailing+EntityFuelSystem_TryUseFuel_Patch.Prefix 

ALiEN JiM

Posted

Okay, I guess I’ll need to check if it’s a conflict.

If I start the server with the plugin already installed, it can take up to five minutes before the spam begins. However, if I start the server first and then add the plugin, the spamming starts instantly.

Corvus

Posted (edited)

21 minutes ago, ALiEN JiM said:

Okay, I guess I’ll need to check if it’s a conflict.

If I start the server with the plugin already installed, it can take up to five minutes before the spam begins. However, if I start the server first and then add the plugin, the spamming starts instantly.

The error message is making me think something weird is going on, if you're seeing version 1.14.1, you shouldn't see EntityFuelSystem_TryUseFuel, because I'm no longer patching the EntityFuelSystem.

Could you unload, delete the plugin EasySailing.cs file, and copy a fresh version back to the server?

 

I think I know what's going on, actually. It's a zombie harmony instance. You might have to restart before that fully goes away unfortunately.

Edited by Corvus
ALiEN JiM

Posted

I’ve found the issue! it was caused by v1.13.3.

Simply unloading and removing it wasn’t enough before installing v1.14.1. Something from the old version was still lingering on the server. To resolve it, I had to fully remove v1.13.3 before starting the server, and then add v1.14.1 afterwards.

Apologies for not trying this sooner, and thanks for your help.

  • Like 1
Corvus

Posted

Well that's fun. 😄

Hopefully that's the last of this issue though. 

Corvus

Posted

Changed Status from Pending to Fixed

Changed Fixed In to 1.14.1

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.4m
Total downloads
Customers
10.8k
Customers served
Files Sold
155.6k
Marketplace sales
Payments
3.3m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.