Search Issue Tracker

Fixed in 2019.3.X

Fixed in 2018.4.X, 2019.1.X, 2019.2.X

Votes

44

Found in

2018.3.0b5

Issue ID

1090892

Regression

No

Building project gets stuck on "Compiling shader variants" dialog when Lightweight Render Pipeline/Lit shader is compiling

--

-

How to reproduce:
1. Open attached Unity project
2. Build project

Expected result: Project is built successfully on the selected platform.
Actual result: Building project gets stuck on "Compiling shader variants" dialog when Lightweight Render Pipeline/Lit shader is compiling. Once it is finished, compiling starts over again.

Reproduced with: 2018.3.0b1, 2018.3.0b10.

Devices under test:
Reproduced on:
VLNQA00150, Samsung Galaxy S9 (SM-G960U), Android 8.0.0, CPU: Snapdragon 845 SDM845, GPU: Adreno (TM) 630
VLNQA00153, Google Pixel XL (Pixel XL), Android 9, CPU: Snapdragon 821 MSM8996 Pro, GPU: Adreno (TM) 530
Windows Standalone
iOS

Note: Can't build on 2017.4, 2018.2, 2019.1, 2018.3.0a because of errors.

Fixed in: 2019.2.0b7, 2019.3.0a6.

  1. Resolution Note (fix version 2019.3):

    "Optimize Mesh Data" in Player Settings causes build process to resolve unused vertex channels by checking all used shader variants. This used to happen in a very inefficient way, fetching the same shaders over and over again. The issue is fixed by implementing better shader data caching during the build process.

Comments (19)

  1. Hatchling103

    Jul 12, 2024 03:25

    Please re-open this issue.

  2. Hatchling103

    Jul 12, 2024 03:25

    Reproduced in 2022.3.33f1 - freezes my whole computer, requiring a hard reset.

  3. Miguel_TagaiArts

    Mar 21, 2023 19:52

    Happening again in 2022.2.11f1. Used to take 9 minutes, now it never ends.

  4. pool3

    Jan 27, 2022 14:32

    Still happening in unity 2020.3.22 to 26, waiting for 6+ hours already. Used to take 15mins.

  5. skeyayo

    Aug 31, 2021 08:33

    Not Fixed in 2020.3.17,shader data not caching during the build process

  6. sj631

    Mar 05, 2021 12:35

    Not Fixed in 2019.4.21

  7. mancuso

    May 27, 2020 19:28

    This is not fixed as I can reproduce this issue in 2019.3.13f1.

  8. mcripe

    Feb 27, 2020 05:49

    Android build waiting on shaders takes hours on 2019.3.2f1, 2019.3.0f3, 2019.2.7f2, 2018.3.12f1, 2018.3.0f2.

    I have to revert back to pre-2018.3

    Please fix. This is not fixed as of 2-27-2020

  9. eduardo-pons

    Nov 18, 2019 18:20

    OSX 2019.2.4 still takes a lot to build variants every time. Looks like the cache isn't being properly made.
    I'm running the project from within a portable SSD.

  10. CrowaL

    Jun 08, 2019 00:42

    As mentioned above.

    "Disabling "Optimize Mesh Data" in player settings speeds things up a little bit."

    That was my issue. Thanks man, forgot I set that on.

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.