Not signed in
Copyright © 2026 Unity Technologies
Crash on SerializedFile::WriteObject() when building the project
Reproduction steps:
1. Open the user’s attached “ASDQWE” project
2. Build and run the Player (File > Build And Run)
Reproducible with: 2023.2.4f1, 2023.3.0a18
Could not test with: 2021.3.33f1, 2022.3.15f1 (Multiple “error CS1061: 'Rigidbody' does not contain a definition for 'linearVelocity'“ errors)
Reproducible environment: macOS Sonoma 14.1.2 (Intel), Windows 11 (user’s)
Not reproducible environment: No other environment tested
Workaround: disable "Load Texture Data on Demand" in Project Settings > Editor (under Streaming Settings) before building
Note: Could not test these platforms: macOS Standalone (Seven “Texture of width 512 and height 512 is not accessible. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)” build errors), iOS (“error CS0117: 'Activator' does not contain a definition for 'CreateInstance'“ compilation error)
First few lines of Stacktrace:
#0 0x007ff80ea76ad0 in _platform_memmove$VARIANT$Haswell #1 0x0000010212acc8 in CachedWriter::Write(void const*, unsigned long) #2 0x000001025c15fe in StreamedBinaryWrite::TransferTypelessData(unsigned int, void*, int) #3 0x00000101eb3793 in void Texture2D::Transfer<StreamedBinaryWrite>(StreamedBinaryWrite&) #4 0x0000010259bfa2 in SerializedFile::WriteObject(Object&, long long, short, BuildUsageTag const&, GlobalBuildData const&) #5 0x0000010257a410 in PersistentManager::WriteFile(core::basic_string_ref<char>, int, WriteData const*, int, GlobalBuildData const&, VerifyWriteObjectResult (*)(Object*, BuildTargetSelection), BuildTargetSelection, TransferInstructionFlags, WriteInformation&, InstanceIDResolver const*, PersistentManager::LockFlags, int (*)(PersistentManager::ReportWriteObjectStep, int, core::basic_string<char, core::StringStorageDefault<char>> const&, int, void*), void*)
0x00007FFB994F7EDC (Unity) memcpy 0x00007FFB96BF3F31 (Unity) CachedWriter::Write 0x00007FFB96FEFDE1 (Unity) StreamedBinaryWrite::TransferTypelessData 0x00007FFB969CE3B8 (Unity) Texture2D::Transfer<StreamedBinaryWrite> 0x00007FFB96FD8FF5 (Unity) SerializedFile::WriteObject
Sign in to see your voted issues