Jump to content

[BUG REPORT] NullReferenceException caused by 'UnderwaterGuard.cs' after using the Boston New Land map

Pending 1.1.9

K9N_Twitch
K9N_Twitch

Posted

Hello KpucTaJl,

I am writing to report a critical, persistent core error that occurred on my server, which has been conclusively traced back to the UnderwaterGuard.cs plugin that was previously associated with your content.

1. The Critical Error

My server experienced a severe and continuous NullReferenceException loop, leading to server instability. The error points to the core Rust entity processing loop:

NullReferenceException at (wrapper managed-to-native) UnityEngine.Component.get_transform(UnityEngine.Component) at BaseEntity.NetworkPositionTick ()

2. Diagnosis and Detailed History 📌

The source of this persistent error was conclusively traced back to the following plugin:

Suspected Plugin: UnderwaterGuard.cs

Detailed History: This plugin was initially introduced into the server's plugins folder when we were using your Boston New Land map. The error began to occur after we switched the server to a different map, but the UnderwaterGuard.cs plugin remained loaded in the folder.

3. Verification Steps

The error occurred repeatedly when all plugins were loaded.

When UnderwaterGuard.cs was removed/unloaded, the NullReferenceException immediately stopped and the server became stable.

This confirms that the plugin is spawning an entity (likely an underwater NPC Guard) which is becoming corrupted or destroyed but leaving its reference in the core network update queue. This causes the tick error to persist even in a different map environment.

4. Request

Since this plugin appears to be related to your custom content, could you please investigate a potential bug or incompatibility within the UnderwaterGuard.cs file itself? This investigation should focus on the entity lifecycle management and network synchronization, as the issue can manifest even when switching maps.

Thank you for your excellent work. I hope this detailed report helps you and others who may encounter this critical issue.

Best regards

Gruber

Posted

15 minutes ago, K9N_Twitch said:

Hello KpucTaJl,

I am writing to report a critical, persistent core error that occurred on my server, which has been conclusively traced back to the UnderwaterGuard.cs plugin that was previously associated with your content.

1. The Critical Error

My server experienced a severe and continuous NullReferenceException loop, leading to server instability. The error points to the core Rust entity processing loop:

NullReferenceException at (wrapper managed-to-native) UnityEngine.Component.get_transform(UnityEngine.Component) at BaseEntity.NetworkPositionTick ()

2. Diagnosis and Detailed History 📌

The source of this persistent error was conclusively traced back to the following plugin:

Suspected Plugin: UnderwaterGuard.cs

Detailed History: This plugin was initially introduced into the server's plugins folder when we were using your Boston New Land map. The error began to occur after we switched the server to a different map, but the UnderwaterGuard.cs plugin remained loaded in the folder.

3. Verification Steps

The error occurred repeatedly when all plugins were loaded.

When UnderwaterGuard.cs was removed/unloaded, the NullReferenceException immediately stopped and the server became stable.

This confirms that the plugin is spawning an entity (likely an underwater NPC Guard) which is becoming corrupted or destroyed but leaving its reference in the core network update queue. This causes the tick error to persist even in a different map environment.

4. Request

Since this plugin appears to be related to your custom content, could you please investigate a potential bug or incompatibility within the UnderwaterGuard.cs file itself? This investigation should focus on the entity lifecycle management and network synchronization, as the issue can manifest even when switching maps.

Thank you for your excellent work. I hope this detailed report helps you and others who may encounter this critical issue.

Best regards

Hi, I'm Gruber, if you don't use the map, delete the plugin from the folder with plugins and configs from it. But it is activated only when the map is working, I need to check this. But in any case, remove the plugin and the config from it.

  • Like 1
Gruber

Posted

To investigate this issue, please send the server logs and the full error text.

K9N_Twitch

Posted

NullReferenceException
  at (wrapper managed-to-native) UnityEngine.Component.get_transform(UnityEngine.Component)
  at BaseEntity.NetworkPositionTick () [0x00000] in <c12abd4afb5e449f8fde8ab0d000e143>:0 
  at InvokeHandlerBase`1[T].DoTick () [0x00138] in <cddf7cb413194091a47148a30f3fc280>:0 
  at InvokeHandlerBase`1[T].LateUpdate () [0x0001f] in <cddf7cb413194091a47148a30f3fc280>:0 

server.txt

2.1m

Downloads

Total number of downloads.

9.7k

Customers

Total customers served.

141.2k

Files Sold

Total number of files sold.

3m

Payments Processed

Total payments processed.

×
×
  • 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.