Page MenuHomeFeedback Tracker

NULL pointer to instance when trying to access variable 'm_TemperatureLiquidBoilThreshold'
Closed, ResolvedPublic

Description

Flooding logs on server due to this bug

12:23:07.237 SCRIPT    (E): NULL pointer to instance when trying to access variable 'm_TemperatureLiquidBoilThreshold' (Parent instance is null)
Function: 'GetBoilThreshold'
Stack trace:
scripts/4_World/static\liquid.c:392
scripts/4_World/entities\itembase.c:4649
scripts/3_Game/entities\entityai.c:2291
scripts/4_World/entities\itembase.c:4548
rag_baseitems/rag_baseitems_scripts/4_World/rag_baseitems_scripts\modded\itembase.c:13
scripts/4_World/entities\itembase.c:4616
scripts/3_Game/entities\entityai.c:3783
DayZExpansion/Core/Scripts/4_World/dayzexpansion_core\entities\itembase.c:1263

12:23:07.237 SCRIPT    (E): NULL pointer to instance when trying to access variable 'm_TemperatureLiquidBoilThreshold' (Parent instance is null)
Function: 'GetBoilThreshold'
Stack trace:
scripts/4_World/static\liquid.c:392
scripts/4_World/entities\itembase.c:4649
scripts/3_Game/entities\entityai.c:2291
scripts/4_World/entities\itembase.c:4548
rag_baseitems/rag_baseitems_scripts/4_World/rag_baseitems_scripts\modded\itembase.c:13
scripts/4_World/entities\itembase.c:4616
scripts/3_Game/entities\entityai.c:3783
DayZExpansion/Core/Scripts/4_World/dayzexpansion_core\entities\itembase.c:1263

12:23:07.847 SCRIPT    (E): NULL pointer to instance when trying to access variable 'm_TemperatureLiquidBoilThreshold' (Parent instance is null)
Function: 'GetBoilThreshold'
Stack trace:
scripts/4_World/static\liquid.c:392
scripts/4_World/entities\itembase.c:4649
scripts/3_Game/entities\entityai.c:2291
scripts/4_World/entities\itembase.c:4548
rag_baseitems/rag_baseitems_scripts/4_World/rag_baseitems_scripts\modded\itembase.c:13
scripts/4_World/entities\itembase.c:4616
scripts/3_Game/entities\entityai.c:3783
DayZExpansion/Core/Scripts/4_World/dayzexpansion_core\entities\itembase.c:1263{F4757367}

{F4757366}

{F4757365}

Details

Severity
Crash
Resolution
Open
Reproducibility
Random
Operating System
Windows 10
Operating System Version
Windows 10
Category
Server
Steps To Reproduce

It is unclear how to reproduce this issue. I'll be attaching various logs here. This error was introduced in 1.26 from what we can tell and as far back as logs we have we have never seen this. Perhaps someone can review this minidump and log files to analyze further.

Event Timeline

Geez changed the task status from New to Need More Info.Jan 6 2025, 9:48 AM
Geez added a subscriber: Geez.
This comment was removed by Geez.
Geez closed this task as Resolved.Jan 6 2025, 9:49 AM
Geez claimed this task.

Hello elemenpyunome.
This seems to be related to DayZ Expansion mod. In such case there is nothing we can do, the DayZ expansion creators will have to fix this on their end.
Regards,
Geez

expansion's line for that is

	override void OnCEUpdate()
	{
		super.OnCEUpdate();
lava76 added a subscriber: lava76.Jan 7 2025, 2:17 PM

This has nothing to do with Expansion. The failure in this case happens in vanilla Liquid::GetBoilThreshold, and the reason is that another mod's item has an invalid varLiquidTypeInit value (i.e. a value with no matching entry in CfgLiquidDefinitions). There's no NULL check in the vanilla Liquid methods, which then leads to the failure.

@Geez - can you take another glance at the log files there for us?

lava76 added a comment.Jan 7 2025, 8:07 PM

The log files won't help. To figure out which item(s) have the problem, pack the following code into a small servermod. It should then print the type of the item to crash.log:

modded class ItemBase
{
	override int GetLiquidType()
	{
		if (m_VarLiquidType != LIQUID_NONE && !Liquid.m_LiquidInfosByType[m_VarLiquidType])
			Error("Item " + GetType() + " is misconfigured - liquid type " + m_VarLiquidType + " is not in CfgLiquidDefinitions!");

		return super.GetLiquidType();
	}
}

Thank you @lava76 checking now

this is related to rag_baseitems, i've sent this notice to the mod author

Function: 'Error'
Stack trace:
scripts/1_Core/proto\endebug.c:92
CakeFactoryLiquidCrashingDetection/scripts/4_World/itembase.c:6
DayZExpansion/VanillaFixes/Scripts/4_World/dayzexpansion_vanillafixes\entities\itembase.c:8
scripts/4_World/entities\itembase.c:4648
scripts/3_Game/entities\entityai.c:2291
scripts/4_World/entities\itembase.c:4548
scripts/4_World/entities\itembase.c:4616
scripts/3_Game/entities\entityai.c:3783
DayZExpansion/Core/Scripts/4_World/dayzexpansion_core\entities\itembase.c:1259
SCRIPT    (E): 
Item rag_baseitems_coffee_mug_rag is misconfigured - liquid type 607 is not in CfgLiquidDefinitions!
Class:      'rag_baseitems_coffee_mug_base'
Entity id:2999323

this is related to rag_baseitems, i've sent this notice to the mod author

Function: 'Error'
Stack trace:
scripts/1_Core/proto\endebug.c:92
CakeFactoryLiquidCrashingDetection/scripts/4_World/itembase.c:6
DayZExpansion/VanillaFixes/Scripts/4_World/dayzexpansion_vanillafixes\entities\itembase.c:8
scripts/4_World/entities\itembase.c:4648
scripts/3_Game/entities\entityai.c:2291
scripts/4_World/entities\itembase.c:4548
scripts/4_World/entities\itembase.c:4616
scripts/3_Game/entities\entityai.c:3783
DayZExpansion/Core/Scripts/4_World/dayzexpansion_core\entities\itembase.c:1259
SCRIPT    (E): 
Item rag_baseitems_coffee_mug_rag is misconfigured - liquid type 607 is not in CfgLiquidDefinitions!
Class:      'rag_baseitems_coffee_mug_base'
Entity id:2999323

i dont think so. my log is flooded with it too:

WIN-6ALOGEGVGO6, 09.01 2025 22:17:53
NULL pointer to instance when trying to access variable 'm_TemperatureLiquidBoilThreshold' (Parent instance is null)
Function: 'GetBoilThreshold'
Stack trace:
scripts/4_World/static\liquid.c:392
scripts/4_World/entities\itembase.c:4649
scripts/3_Game/entities\entityai.c:2291
scripts/4_World/entities\itembase.c:4548
scripts/4_World/entities\itembase.c:4616
scripts/3_Game/entities\entityai.c:3783

Runtime mode
CLI params: config serverDZ.cfg.active port 2302 profiles profiles adminlog freezecheck dologs mod @CF;@VPPAdminTools;@Dabs Framework;@CRDTN Core;@BuilderItems;@Dayz Editor Loader;@Banov;@HKD_Quest;@MuchCarKey;@Snafu Weapons;@MMG - Mightys Military Gear;@RaG_BaseItems;@Code Lock;@TerrainIslands;@Mikeys Custom Building & Ports;@DnA Keycards;@FS;@FS_English_Translation;@MuchDecos;@MuchDecos_Codelock;@CannabisPlus;@CJ187-PokemonKarten;@FlipTransport;@G3 Teddy Bears;@OV_Buildings;@HKD_Helicopter;@KillReward;@PvZmoD_CustomisableZombies;@BillboardZ;@COCAs_NoVehicleDamageMOD;@BLR SHOES;@RaG_BaseBuilding;@HKD_Community_Groups;@blood Test Kit;@DisableCarLock;@MoonShining;@ZombieSpawnTool;@SearchInventory;@WindstridesClothingPack;@Server_Information_Panel;@DayZCasinoV2;@CBD Wooden Vehicles Collectables;@Fishs Knife Mod - Complete Collection;@Mask pack;@PvZmoD_TheDarkHorde;@HKD_Master_Test;@JPJ_TraderPlus_PackingOverrideMCK;@TraderPlus;@GSC Gameworld Assets;@Airdrop-Upgraded;@gebsfish;@RaG_Hunting_Cabin;@NomNom Collectibles;@Paragon Storage;@HKD_Community_Test;@HKD_Weapons; serverMod @GameLabs;@RaG_Baseitems_Extended_Logging;

What are you refuting exactly?
Did you try the above code snippet to find what yours is tripping on?

DnA removed a subscriber: DnA.Tue, Jan 28, 9:49 AM

@Airsking - you will need to also add the mod RaG_Liquid_Framework. it is not mentioned as a dependency on RAG Base Items but in some notes there on the page. if you try to use RAG Base Items without the necessary liquid framework your logs will flood. You can find the liquid framework at this link
RaG_Liquid_Framework - https://steamcommunity.com/sharedfiles/filedetails/?id=2921783686