Search Issue Tracker

Won't Fix

Votes

0

Found in

2021.3.26f1

2022.3.2f1

Issue ID

UUM-41849

Regression

No

Crashes on the Editor when building the project for Android platform

--

-

Reproduction steps:
1. Open the attached project “ReproProject”
2. Build the Project for Android
3. Observe the build process

Expected result: The build is successful
Actual result: The editor crashes

Reproducible with: 2021.3.26f1, 2022.3.2f1
Couldn’t test with: 2023.1.0f1, 2023.2.0a19 (custom script issues)

Reproducible on: Intel macOS 13.3.1

First few lines of stack traces:
#0 0x00000107defa84 in mono_array_length(MonoArray*)

#1 0x00000107e5d733 in scripting_array_length(ScriptingArrayPtr)

#2 0x00000108b5f644 in SettingsFilteredShaderVariantEnumeration::SettingsFilteredShaderVariantEnumeration(core::basic_string<char, core::StringStorageDefault<char>> const&, dynamic_array<GfxDeviceRenderer, 0ul> const&, core::flat_map<ShaderTagID, ShaderTagID, std::__1::less<ShaderTagID>, 0ul> const&, ShaderVariantData const&, ShaderCompilerProgram, keywords::LocalKeywordState const&, keywords::LocalKeywordState const&, keywords::LocalSpace const&, bool)

  1. Resolution Note:

    This is an issue in the package UnityFx.Outline.
    During pre-filtering, we try to walk the fields of classes, we end up trying to walk OutlineLayerCollection as an enumerable, however this class has a null list internally and does not safeguard against and the package code crashes trying to get the enumerable from its own list.
    There is not a way we can safeguard against this as we can't know the internals of their interface implementation. The list seems to be null because the "Outline Layers" field on their render pipeline asset is "Missing".

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.