Search Issue Tracker


Under Consideration for 2023.2.X, 2023.3.X



Found in



Issue ID




[Android][AsyncLoadInEditor] Crash on memcpy when building for Android Platform



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:
* macOS Sonoma 14.1.2 (intel):

#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*){noformat}
* Windows 11 (user’s):

0x00007FFB994F7EDC (Unity) memcpy
0x00007FFB96BF3F31 (Unity) CachedWriter::Write
0x00007FFB96FEFDE1 (Unity) StreamedBinaryWrite::TransferTypelessData
0x00007FFB969CE3B8 (Unity) Texture2D::Transfer<StreamedBinaryWrite>
0x00007FFB96FD8FF5 (Unity) SerializedFile::WriteObject{noformat}

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.