Search Issue Tracker

Fixed

Votes

1

Found in

2020.3

2021.1

2021.2

2021.2.0a8

Issue ID

1329276

Regression

No

Crash on SerializedFile::WriteObject while building the project

Build Pipeline

-

Reproduction steps:
1. Open the user's attached project "Odd Levels.zip"
2. Go to File > Build And Run

Expected result: The project doesn't crash during build time
Actual result: The project crashes during build time

Reproducible with: 2020.3.5f1, 2021.1.4f1, 2021.2.0a14
Could not test with: 2018.4.34f1, 2019.4.25f1 (Due to project errors while downgrading)

Notes:
-The issue is reproducible on Windows Standalone and Android platform
-The issue is not reproducible on macOS Standalone
-The issue is still reproducible after deleting the Library folder

First lines of stack trace:
0x00007ff62dc8b515 (Unity) SerializedFile::WriteObject
0x00007ff62dc73518 (Unity) PersistentManager::WriteFile
0x00007ff62dc752fd (Unity) PersistentManager::WriteFile
0x00007ff62e8f3cf7 (Unity) WriteSharedAssetFile
0x00007ff62e8e13bb (Unity) CompileSharedAssetsFile

  1. Resolution Note:

    As a temporary work around you can either set the Vertex Compression to at least have one channel uncompressed (Edit > Project Settings > Player > Vertex Compression). Or in your project folder go to the file ProjectFolder/ProjectSettings.asset, open this with any text editor and search for "VertexChannelCompressionMask: 2147483647". Change the value from 2147483647 to -1.
    Fixed in 2022.1.0a7

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.