Page MenuHomeFeedback Tracker

JsonSaveFile crash when NonSerialized() used
New, UrgentPublic

Description

I came across an interesting error when tried to init global config and create new JSON file. If I remove [NonSerialized()] the crashes will stop.

Details

Severity
Crash
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

World script:

class test_cfg {
	ref TStringArray stringList;

	[NonSerialized()]
	private ref TStringArray nonSerializedList;

	void test_cfg() {
		stringList = {"MyString"};
		nonSerializedList = {"MyString"};
		JsonFileLoader<test_cfg>.JsonSaveFile("$profile:test.json", this);
	}
}

ref test_cfg g_test_cfg = new test_cfg;

Event Timeline

Koncord created this task.Apr 22 2022, 6:30 AM
Geez added a subscriber: Geez.Apr 22 2022, 11:59 AM

Hello Koncord.
Can you please provide us with crash dump files for the crash?
Regards,
Geez

Hello Geez,
Here you can find dump and logs with this issue on the unmoded dayzOffline.chernarusplus (only init.c of the mission was edit) server.