# Crash when changing scalability settings with Android Material Quality overrides and runtime scalability changes enabled

**URL:** <https://forums.unrealengine.com/t/crash-when-changing-scalability-settings-with-android-material-quality-overrides-and-runtime-scalability-changes-enabled/2840237>\
**Category:** Issues and Bug Reporting (Unreal Engine)\
**Tags:** unreal-engine, bug-report\
**Created:** [October 14, 2026, 4:03am UTC](https://forums.unrealengine.com/t/crash-when-changing-scalability-settings-with-android-material-quality-overrides-and-runtime-scalability-changes-enabled/2840237 "2026-10-14T04:03:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![frequency\_pillow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@frequency\_pillow](https://forums.unrealengine.com/u/frequency_pillow)\
**Post date:** [October 14, 2026, 4:03am UTC](https://forums.unrealengine.com/t/crash-when-changing-scalability-settings-with-android-material-quality-overrides-and-runtime-scalability-changes-enabled/2840237/1 "2026-10-14T04:03:29Z")

</div>

### Summary

Crash when changing scalability settings with Android Material Quality overrides and runtime scalability changes enabled in Lyra project

### What Type of Bug are you experiencing?

Rendering (Graphics / Niagara)

### Steps to Reproduce

# [UE 5.8.3][Android][Lyra] Crash when changing scalability settings with Android Material Quality overrides and runtime scalability changes enabled

## Summary

In Unreal Engine 5.8.3, the Lyra Starter Game crashes when changing scalability settings at runtime on Android if platform-specific Android Material Quality overrides are enabled (at least i was using “force fully rough” and i didn’t investigated if just enabling “enable quality override” will cause the same crash) and the following configuration is set in `AndroidEngine.ini` (which is set on 1 by default in Lyra project):

```ini
[ConsoleVariables]
dp.AllowScalabilityGroupsToChangeAtRuntime=1

```

Removing this CVar entry, restoring its default value of `0`, resolves the issue in my project.

## Environment

- **Engine version:** Unreal Engine 5.8.3
- **Project:** Lyra Starter Game
- **Target platform:** Android
- **Graphics APIs:** Vulkan and/or OpenGL ES, depending on the enabled material-quality overrides
- **Affected functionality:** Runtime scalability changes with platform-specific Android Material Quality overrides

## Steps to Reproduce

1. Open Lyra Starter Game in Unreal Engine 5.8.3.

2. Configure and enable platform-specific Android Material Quality overrides in Project Settings for the relevant Android shader platforms.

3. In `AndroidEngine.ini`, set:

4. Package and launch the project on an Android device.

5. Change the scalability settings at runtime.

6. Observe the crash.

## Expected Result

Changing scalability settings at runtime should not crash the application when Android Material Quality overrides are enabled.

## Actual Result

The application crashes during runtime scalability changes.

The associated log reports:

```plaintext
Failed to find shader map for default material
WorldGridMaterial(/Engine/EngineMaterials/WorldGridMaterial.WorldGridMaterial)!
Please make sure cooking was successful
(No inline shaders, null GTSM)

Remove `dp.AllowScalabilityGroupsToChangeAtRuntime=1` from `AndroidEngine.ini`, allowing the CVar to retain its default value of `0`.

With this change, the crash no longer occurs in my testing.

### Expected Result
Changing scalability settings at runtime while the "enable quality override" is set on true with not problem or crash on that specific platform

### Observed Result
Changing scalability settings in runtime (in an installed Android package) causes a crash.

More specifically, the crash appears to be triggered when `Effects Quality` changes to `0` or `1`, whether directly or indirectly, which means changing scalability settings through the in-game settings menu or executing the `scalability` console command can trigger the crash if the resulting configuration changes `Effects Quality` to either of these values.

The issue occurs at runtime in the packaged Android build.

### Affects Versions
5.8

### Platform(s)
Android
```

---

<div class="post-metadata">

**Author:** ![brs-sebascova](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brs-sebascova/32/1052483_2.png) [@brs-sebascova](https://forums.unrealengine.com/u/brs-sebascova)\
**Post date:** [October 15, 2026, 2:56pm UTC](https://forums.unrealengine.com/t/crash-when-changing-scalability-settings-with-android-material-quality-overrides-and-runtime-scalability-changes-enabled/2840237/2 "2026-10-15T14:56:39Z")

</div>

Hello there @frequency_pillow!

Thanks for the detailed report. Looking at your log, the crash happens when UE can’t find the shaders for WorldGridMaterial after the scalability change. When the material quality level drops, if the shaders for said levels weren’t included in the cook, there’s nothing to switch to, thus the engine crashes.

As for the workaround, when removing “dp.AllowScalabilityGroupsToChangeAtRuntime”, the quality level stays fixed at what the device profile sets on startup, and that prevents the crash, cause no changes are happening.

Since you most likely want to be able to have scalability changes at runtime, I would test the following:

- Check if your build has all the quality levels, or if some are being discarded. If your config settings are using “DiscardUnusedQuality”, that would explain the missing levels. Setting it to 0 and cooking again shouls restore the levels

- Also, please make sure you clean your project’s cache before a new cook, to prevent stale data from affecting it. Go to your project’s main directory, and delete folders Saved, Intermediate, and DerivedDataCache

- Check your quality overrides in your project, and make sure the Low and Medium levels are set up for the shader platforms you are currently targeting, not just High

---

<div class="post-metadata">

**Author:** ![frequency\_pillow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@frequency\_pillow](https://forums.unrealengine.com/u/frequency_pillow)\
**Post date:** [October 16, 2026, 9:12pm UTC](https://forums.unrealengine.com/t/crash-when-changing-scalability-settings-with-android-material-quality-overrides-and-runtime-scalability-changes-enabled/2840237/3 "2026-10-16T21:12:56Z")

</div>

hello @brs-sebascova

thanks for your response, i really appreciate it and good catch!

in lyra they are using DiscardUnusedQuality and i didn’t notice that, i did some tests and seems the problem was that itself.

btw, does deleting these intermediate, binaries, etc. still (and i don’t know if it had any, up to 5.6 version) has any actual good? in my observation and my experience on this lyra and other projects, i didn’t see deleting these folders solving anything. just leaving us with another long time for waiting on package process, same for this case. i didn’t deleted them for these last tests and i got the results.

---

<div class="post-metadata">

**Author:** ![brs-sebascova](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brs-sebascova/32/1052483_2.png) [@brs-sebascova](https://forums.unrealengine.com/u/brs-sebascova)\
**Post date:** [October 19, 2026, 2:56pm UTC](https://forums.unrealengine.com/t/crash-when-changing-scalability-settings-with-android-material-quality-overrides-and-runtime-scalability-changes-enabled/2840237/4 "2026-10-19T14:56:09Z")

</div>

Hello again!

Glad to hear that the DiscardUnusedQuality change helped in your scenario. As for clearing cache, in most cases it’s a good practice to implement, specially in situations were a cook has failed multiple times. It’s true that it generates a delay when regenerating all the files, but the benefits are usually worth it. If the DUQ change already fixed the problem, then there’s no need to clear the cache in this case.
