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.Mon, Jan 6, 9:48 AM
Geez added a subscriber: Geez.
This comment was removed by Geez.
Geez closed this task as Resolved.Mon, Jan 6, 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.Tue, Jan 7, 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.