# Crash in FGenericDataDrivenShaderPlatformInfo when overriding ShaderPlatform settings in a project .ini 

**URL:** <https://forums.unrealengine.com/t/crash-in-fgenericdatadrivenshaderplatforminfo-when-overriding-shaderplatform-settings-in-a-project-ini/2854417>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [October 8, 2026, 5:06pm UTC](https://forums.unrealengine.com/t/crash-in-fgenericdatadrivenshaderplatforminfo-when-overriding-shaderplatform-settings-in-a-project-ini/2854417 "2026-10-08T17:06:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [October 8, 2026, 5:06pm UTC](https://forums.unrealengine.com/t/crash-in-fgenericdatadrivenshaderplatforminfo-when-overriding-shaderplatform-settings-in-a-project-ini/2854417/1 "2026-10-08T17:06:14Z")

</div>

Hi,

We are seeing an issue trying to override some settings in the Engine’s DataDrivenPlatformInfo.ini with a DataDrivenPlatformInfo.ini in our project. It works but there is an issue with changing settings in the ShaderPlatform sections.

The code correctly overlays the settings for the ShaderPlatform on top of the existing ones, but it unconditionally creates a new preview platform which results a duplicate broken preview platform.

Changing the code in FGenericDataDrivenShaderPlatformInfo::Initialize() from

```auto
const EShaderPlatform PreviewShaderPlatform = EShaderPlatform(CustomShaderPlatform++);

```

to

```auto
EShaderPlatform PreviewShaderPlatform = SP_NumPlatforms;
for (int32 ExistingPreview = SP_CUSTOM_PLATFORM_FIRST; ExistingPreview < CustomShaderPlatform; ++ExistingPreview)
{
	if (DataDrivenShaderPlatformInfoEditorOnlyInfos[ExistingPreview].PreviewShaderPlatformParent == ShaderPlatform)
	{
		PreviewShaderPlatform = EShaderPlatform(ExistingPreview);
		break;
	}
}

if (PreviewShaderPlatform == SP_NumPlatforms)
{
	PreviewShaderPlatform = EShaderPlatform(CustomShaderPlatform++);
}

```

seems to resolve the issue.

We wanted to report this since it seems the code is still the same in Main.

Thanks,

Lucas

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [October 8, 2026, 5:06pm UTC](https://forums.unrealengine.com/t/crash-in-fgenericdatadrivenshaderplatforminfo-when-overriding-shaderplatform-settings-in-a-project-ini/2854417/2 "2026-10-08T17:06:19Z")

</div>

**Steps to Reproduce**  
Add a project DataDrivenPlatformInfo.ini override in a project folder like \<Project\>/Platforms/Windows/Config/DataDrivenPlatformInfo.ini with the following contents

```auto
[DataDrivenPlatformInfo]

[ShaderPlatform PCD3D_SM6]
bStripNaniteVertexShaders=true

```

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![step\_jac\_eg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@step\_jac\_eg](https://forums.unrealengine.com/u/step_jac_eg)\
**Post date:** [October 9, 2026, 1:55pm UTC](https://forums.unrealengine.com/t/crash-in-fgenericdatadrivenshaderplatforminfo-when-overriding-shaderplatform-settings-in-a-project-ini/2854417/3 "2026-10-09T13:55:32Z")

</div>

Hi Lucas,

While your change does partially provide mutability of ShaderPlatforms, you would additionally need to ensure FriendlyName and bCanUsePreviewPlatformForMaterialValidation are not read unconditionally in consequent as follows:

```auto
void FGenericDataDrivenShaderPlatformInfo::ParseDataDrivenShaderInfo(const FConfigSection& Section, uint32 Index)
{
....
#if WITH_EDITOR
	FDataDrivenShaderPlatformInfoEditorOnly& EditorInfo = DataDrivenShaderPlatformInfoEditorOnlyInfos[Index];
	FText FriendlyName, & CurrentFriendlyName = EditorInfo.DeviceProfileToFriendlyName.FindOrAdd(NAME_None);;;
	FTextStringHelper::ReadFromBuffer(*GetSectionString(Section, FName("FriendlyName")), FriendlyName);
	if (!FriendlyName.IsEmpty() || CurrentFriendlyName.IsEmpty())
	{
		CurrentFriendlyName = FriendlyName;
	}
...
}

```

However, we will not be integrating this as DataDrivenPlatformInfo is not intended to be per project editable.

ShaderPlatformConfig section is what is supposed to be used for PerProject settings, DataDrivenPlatformInfo is supposed to define “set in stone” platform capabilities. Its been polluted with other settings that are not really that “set in stone”, but that’s why we added ShaderPlatformConfig .

For example:

```auto
[ShaderPlatformConfig VULKAN_SM5]
BindlessConfiguration=Disabled
SubstrateMaxClosuresPerPixel=1

```

Best regards.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![step\_jac\_eg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@step\_jac\_eg](https://forums.unrealengine.com/u/step_jac_eg)\
**Post date:** [October 13, 2026, 1:52pm UTC](https://forums.unrealengine.com/t/crash-in-fgenericdatadrivenshaderplatforminfo-when-overriding-shaderplatform-settings-in-a-project-ini/2854417/4 "2026-10-13T13:52:26Z")

</div>

Thanks for the additional context Lucas, much appreciated.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [October 9, 2026, 5:18pm UTC](https://forums.unrealengine.com/t/crash-in-fgenericdatadrivenshaderplatforminfo-when-overriding-shaderplatform-settings-in-a-project-ini/2854417/5 "2026-10-09T17:18:53Z")

</div>

Ah I see, thank you! That is indeed a better solution for overriding those flags.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [October 9, 2026, 6:17pm UTC](https://forums.unrealengine.com/t/crash-in-fgenericdatadrivenshaderplatforminfo-when-overriding-shaderplatform-settings-in-a-project-ini/2854417/6 "2026-10-09T18:17:09Z")

</div>

But unfortunately, bStripNaniteVertexShaders is not a flag in FShaderPlatformConfig. Thanks for the context here about how this is supposed to work

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![step\_jac\_eg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@step\_jac\_eg](https://forums.unrealengine.com/u/step_jac_eg)\
**Post date:** [October 9, 2026, 8:40pm UTC](https://forums.unrealengine.com/t/crash-in-fgenericdatadrivenshaderplatforminfo-when-overriding-shaderplatform-settings-in-a-project-ini/2854417/7 "2026-10-09T20:40:48Z")

</div>

I’ll consult with the team about that flag’s location and if it can be moved to the FShaderPlatformConfig. Can you shed some light on this need?

Best regards.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [October 9, 2026, 9:11pm UTC](https://forums.unrealengine.com/t/crash-in-fgenericdatadrivenshaderplatforminfo-when-overriding-shaderplatform-settings-in-a-project-ini/2854417/8 "2026-10-09T21:11:12Z")

</div>

Thanks! We are trying to reduce our shader permutation count to ship less shaders and depending on a project’s minimum system requirements it could be reasonable for it to not support GPUs which don’t have mesh shaders since those GPUs are quite old at this point. Like for example if a project depended on HWRT already.

[Attachment Removed]
