Page MenuHomeFeedback Tracker

Obscure compiler freeze error
New, NormalPublic

Description

DayZ Server Version 1.08.153276
So when loading certain mods with dayz server will freeze and never load when certain mod lists are added (see below where it stops in the console) seems to be some critical mass of something that these all or some of the mods contain, this issue has been plaguing the community since 1.08 with tons of different mods seeming to contribute to the issue.

12:46:42 !!! [Inputs] Cannot read inputs cfg "ExpansionProfile\Users\Survivor\Server.core.xml", parser error
12:46:42 [Inputs] Loading inputs cfg "bin/core.xml"
12:46:42 !!! [Inputs] Cannot load input preset "user", file does not exist
12:46:42 [Inputs] Exporting inputs cfg "ExpansionProfile\Users\Survivor\Server.core.xml"

So my testing process I found a breaking point with my snap heli mod where when it was added it would break
The first step was I commented out a few things didn't fix so I commented out everything to see if it was the cpp and it still froze tried a few things with the cpp then I tried removing files so it was just the cpp and it worked so I added back files till it broke and it was the UserActionComponent file then just for shits and giggles I added that file to the right folder (still commented out) tested again worked, then tried uncommenting everything it froze again so going based on the previous findings took a stab and tired fixing the extended part of the classes in snapheli and it still didn't work so I fixed a few classes in heroes and Bandits and bingo server would load . . .

Details

Severity
Crash
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
Windows Server 2016
Category
Modding
Steps To Reproduce

Start command

start "Dayz Server" DayZServer_x64.exe -cpuCount=12 -exthreads=7 -instanceId=1 -config=serverDZExpansion.cfg -profiles=ExpansionProfile -port=2302 "-mod=@CF;@COT;@ExpansionLicensedExp;@ExpansionExp;@Summer_Chernarus;@WindstridesClothingPack;@Cl0udsMilGear;@MasssManyItemOverhaul;@MunghardsItempack;@ArmaWeaponPack;@ArmA2ACR;@DocsWeaponPack;@CPBWeapons;@AdvancedScopes;@BulletStacks;@CannabisPlus;@DrugsPLUS;@MuchStuff;@dboslots;@NehrPickup;@BMW525iE34;@BMWExpansion;@LandRoverDefender;@WorldWarGamingVehicles;@MuchCarKey;@ReduceVehicleDamageExp;@ExpansionCLExpanded;@HABEXP;@YNREXP;@AirRaid;@Banking;@Trader;@zSpawnSelection;@SnapHeliToHeliPad" -servermod=@SurvivorMissions -scrAllowFileWrite -noFilePatching -dologs -adminlog -freezecheck

Steam ID to mod name list
1559212036,@CF
1564026768,@COT
2178159769,@ExpansionLicensedExp
2178159764,@ExpansionExp
1644467354,@Summer_Chernarus
1797720064,@WindstridesClothingPack
1630943713,@Cl0udsMilGear
1566911166,@MasssManyItemOverhaul
1734713776,@MunghardsItempack
1793351435,@ArmaWeaponPack
2141780688,@ArmA2ACR
1864482799,@DocsWeaponPack
1705066179,@CPBWeapons
1932611410,@CannabisPlus
2170927235,@DrugsPLUS
1991570984,@MuchStuff
1869021368,@BMW525iE34
2004807460,@BMWExpansion
2107418217,@dboslots
2141350489,@NehrPickup
1912237302,@LandRoverDefender
2128058307,@ReduceVehicleDamageExp
2151717908,@WorldWarGamingVehicles
2143128974,@AdvancedScopes
1711179264,@BulletStacks
1832448183,@FlipTransport
2120002733,@MuchCarKey
2104303753,@HABEXP
2173711903,@ExpansionCLExpanded
2159122303,@YNREXP
2065443797,@AirRaid
1836257061,@Banking
1590841260,@Trader
2017605880,@zSpawnSelection
1988925918,@SurvivorMissions

@SnapHeliToHeliPad see attached PBOs rename and use the one labelled Not working and it will freeze, then rename and use the one labelled working and it won't freeze only difference in the files is the position of one file with commented out code "ActionConstructor.c"

Additional Information

Other Mod list that are known to cause the issue collected from reports in the community

@CF;@COT;@ExpansionLicensed;@Expansion;@RadiationZone;@RZEX;@ WindstridesClothingPack;@Cl0udsMilGear;@ MasssManyItemOverhaul;@ MunghardsItempack;@ HeroesAndBanditsEXP;@ArmaWeaponPack;@ArmA2ACR;@DocsWeaponPack;@ CPBWeapons;@MuchStuff;@CannabisPlus;@DrugsPLUS;@BMW525iE34;@LandRoverDefender;@ReduceVehicleDamage;@MuchCarKey_Expansion;@ExpansionCodeLocksExpanded;@Banking;@ Trader;@zSpawnSelection

and

1559212036    CF
1564026768    Community-Online-Tools
2116157322    DayZ-Expansion-Licensed
2116151222    DayZ-Expansion
1708571078    VPPAdminTools
1623711988    VanillaPlusPlusMap
2075831381    SchanaModParty
1680019590    Server_Information_Panel
1646187754    Code Lock
1878060278    PVEZ
2109061314    PVEZMarkersOnVPPMap
1710977250    BaseBuildingPlus
1991570984    MuchStuffPack
2132877776    MG_Base_Storage
1617874376    OP_BaseItems
2007175894    MoreDoors
1566911166    Mass'sManyItemOverhaul
1605653648    FIDOv PACK 4
1705066179    CPBWeapons
1797720064    WindstridesClothingPack
1748044748    BetterSuppressors
1590841260    Trader
1836257061    Banking
2067202485    SimpleBulletStacks
1932611410    CannabisPlus
2095424002    M1161 Growler ITV
1879540249    RaG_Hummer_Refresh
1756237462    [CrSk] GAZ-3309

and

@DayZ-Expansion;
@DayZ-Expansion-Licensed;
@CF;
@VPPAdminTools;
@VPPNotifications;
@AdvancedWorkbench;
@Atv_mung;@Banking;
@BuilderItems;
@CannabisPlus;
@CarsPlus;
@CJ187-Cars;
@Community-Online-Tools;
@CPBWeapons;
@Dayz_Navigation;
@dbo_slots;
@FIDOv PACK 4;
@JunkYardDog;
@MedicalAttention;
@MoreFood;
@MuchStuffPack;
@MunghardsItempack;
@Nehr_Pickup_Lada;
@Newbankmenu;
@PerishableFood;
@Radio;
@SQUAD MSF-C;
@ToxicZone;
@Trader;
@UltimateWeaponPack;
@WindstridesClothingPack;
@Zeroy-FishingZ;
@Zeroy-JeepWillys;
@Survivors_Hard;
@dbo_lada_lm;
@Gerphelius Zil-130;
@ChernarusRP AE86;
@AdvancedFurnitureMod;
@ExtraFarmingItems

and

@CF 
@Airdrop-Upgraded
 @VPPAdminTools 
@Community-Online-Tools 
@Specialist Weapon Pack 
@Docs_Weapon_Pack_Standalone 
@DayZ-Expansion-Licensed 
@DayZ-Expansion 
@MuchStuffPack 
@Trader 
@GoreZ 
@CheckIdentity 
@[Remastered] Arma Weapon Pack 
@BaseBuildingPlus 
@UsefulSuppressors 
@WindstridesClothingPack 
@Banking 
@Code Lock 
@Server_Information_Panel 
@BuilderItems 
@CPBWeapons 
@ASC ModPack 
@TraderFix_v2 
@CannabisPlus 
@Pen Pen Pirulin Weapon Pack 
@MVS_Fix 
@Sin City Test 
@Deceit 
@HellRetex Additions Weapons 
@HellRetex Mod 
@AwesomeArmbands

https://yourenotready.ca/wp-content/uploads/2020/08/Capture.png from futuresixx

I was also able to fix the issue by ensuring that as many modded classes had the appropriate extends in place and moving the files around into mods cause if you uncomment the mods it still freezes not till I move files around in both my Heroes and Bandits mod and the snapheli mod does it fix when snapheli is uncommented with the files in the matching folders.

Also, you can see some discussion in the DayZ Modders discord in the channels #Radiation-Zone and #community-framework

Event Timeline

daemonforge edited Additional Information. (Show Details)
daemonforge updated the task description. (Show Details)Aug 4 2020, 7:24 PM
daemonforge added a comment.EditedAug 6 2020, 5:33 AM

As a note, some mods have been updated since this was posted so the reproducibility might not be able to be done exactly as shown

Also note with my further testing, adding the "extends" on modded classes significantly helped my mods overcome the compiler freeze in my own testing.

and for what its worth my 2 cents on the issue is its a compiler freezing up after reaching a critical mass of fixes and code complications tasks, eg figuring out the inheritances of modded classes and auto-correcting missing syntax, although not sure why a commented out file would still cause compilation errors.

As an extra note from someone who owns one or more of the mods that are in the mod lists above, I have tested everything on my behalf and have found that even when reverting my codebase back a few months that the issue still happened.

Having a better set of logs for the server, or even better-debugging tools could help the community identity issues that are plaguing us and DayZ.

This doesn't seem to be an issue any of us have the tools in order to find, and I do believe it's something that is beyond our reach such as things written in the engine, or executable.

lava76 added a subscriber: lava76.Aug 25 2020, 9:01 PM

Just because I want to maybe provide as much information as possible I uploaded the dump files for the DayZ Server Files three files exist in the link as well as attached the EXE to vs code debugging to try and get anything at all.
StartUpCommand_BadFreeze.txt The startup script with the mods that get the server to freeze
DayZServer_x64BadFrozen.DMP
DayZServer_x64_2020-08-25_17-12-53_BadFreeze.RPT
callstack_BadFreeze.PNG
VSCodeDebugLogs_BadFreeze.txt

For a benchmark same mod list minus 2 mods that I removed to allow the server to overcome the freeze.
StartUpCommand_GoodPastFreeze.txt
VSCodeDebugLogs_GoodPastFreeze.txt
callstack_GoodPastFreeze.PNG
DayZServer_x64_GoodAtServerCore.DMP
DayZServer_x64_GoodAfterServerCore.DMP
DayZServer_x64_2020-08-25_17-15-59_GoodPastFreeze.RPT

Mods to ID List.txt this is just a list of mod names to their workshop IDs to help Identify the mods more clearly

https://drive.google.com/drive/folders/1pFdWLGphzmPtvi57AZ8o0vmLGv-4-5O2?usp=sharing

This issue is worse with the 1.09 patch. I needed to remove 5 more mods (32 down to 27) to get my server to boot.

Also, update for anyone following this ticket and for more information for BI

I found a way to mitigate server core freeze a bit more, moving code to 3_Game, well at least any code that can be moved, I specifically moved all my Config loader classes to 3_Game for HeroesAndBandits and was able to get a handful of mods re-added,

this was thought when I was remembering errors in the logs about bad type JSONFileLoader error with the freeze and knowing that JSONFileLoader class is in 3_game, and realizing that errors in 3_game would throw but none in 4_world when the freeze is happening and coming to the conclusion that the compiler was compiling each module separately so possibly moving code to 3_game would mean that it wouldn't reach its limit as quickly

So bottom line the more code that modders can put in other scopes EG 5_Mission, and 3_Game, the more code we will be able to have in 4_World so move your code if you can!

AWG added a subscriber: AWG.Wed, Sep 9, 7:44 PM

I had PvDCustombisbleZombies Follow your advice Daemonforge and He was able to push his mod to the limts with the code base. and...... :D What was not working is now :D BI Please look into this issue as a HotFix or for 1.10 PLLLLLLLLEEEEEEEEEAAAAAAAASSSSSEEEEE :D