Page MenuHomeFeedback Tracker

Entities with attachment slots can segfault the game when attempting to set health (1.27 Experimental)
Confirmed Internally, NormalPublic

Description

This also happens when those items are spawned by CE in less than pristine state.

Example:

class CfgVehicles
{
	class WoodenCrate;
	class WoodenCrateTEST: WoodenCrate
	{
		attachments[]={"Knife"};
	};
};

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Modding
Steps To Reproduce
  1. Spawn any entity with a config like shown above.
  2. Set health (either by calling SetHealth or letting CE do it if spawned by CE).
  3. Game segfaults shortly after.

Event Timeline

lava76 created this task.Jan 17 2025, 10:51 AM
lava76 edited Steps To Reproduce. (Show Details)
lava76 renamed this task from Entities with empty or no rvmats in Health config will segfault the game when attempting to set health to Entities with empty or no rvmats in Health config will segfault the game when attempting to set health (1.27 Experimental).Jan 17 2025, 10:53 AM
Geez changed the task status from New to Awaiting internal Testing.Jan 17 2025, 11:32 AM
Geez added a subscriber: Geez.Jan 17 2025, 3:51 PM

Hello lava76.
Can you please provide more details? Such as item examples and send us the crash dumps, if the game crashes.
Regards,
Geez

lava76 renamed this task from Entities with empty or no rvmats in Health config will segfault the game when attempting to set health (1.27 Experimental) to Entities with attachment slots can segfault the game when attempting to set health (1.27 Experimental).EditedJan 18 2025, 1:15 PM
lava76 updated the task description. (Show Details)
lava76 edited Steps To Reproduce. (Show Details)

Turns out the health config was a red herring. I've updated the ticket. Here is a PBO to easily repro the issue:

Spawning WoodenCrateTEST should cause the crash (it sets its own health in DeferredInit after spawning).

Relevant crash files:



Eraki added a subscriber: Eraki.Jan 20 2025, 12:34 PM
Eraki removed a subscriber: Eraki.Jan 21 2025, 8:31 PM
Geez changed the task status from Awaiting internal Testing to Confirmed Internally.Mon, Feb 3, 10:42 AM
inkihh added a subscriber: inkihh.Tue, Feb 18, 7:39 PM
ArtemDozhd added a subscriber: ArtemDozhd.EditedThu, Feb 20, 3:22 AM

I confirm the problem

Myrtan added a subscriber: Myrtan.Thu, Feb 20, 10:22 AM

I have the same issue.
Everything works fine in 1.26, but in 1.27 it doesn't. When I try to install the locker server goes down.

I have the same problems, and the server crashes. The only way out is to wipe the server

Server crashed, i have the same problem

eas1ly added a subscriber: eas1ly.Thu, Feb 20, 11:57 AM

I have the same problem.

jobthe added a subscriber: jobthe.Thu, Feb 20, 12:35 PM
Mars22 added a subscriber: Mars22.Thu, Feb 20, 12:35 PM
Sap3r added a subscriber: Sap3r.Thu, Feb 20, 2:19 PM

Same problem

I also have a problem starting the server, it crashes

Yuki added a subscriber: Yuki.Fri, Feb 21, 10:27 AM
Sap3r added a comment.Fri, Feb 21, 1:48 PM

My own crate crashed out on spawn and on craft until i commented out healthLevels[]= from config.cpp

Skara added a subscriber: Skara.Fri, Feb 21, 2:56 PM