Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug AcrhiveAndCompressBundles failed silently

Discussion in 'Addressables' started by Camarent, Jun 4, 2020.

  1. Camarent

    Camarent

    Joined:
    Feb 19, 2014
    Posts:
    168
    Hi!
    I had a problem with AcrhiveAndCompressBundles task in multithread mode. I have a strange bug sometimes that my shader compilation invalid (reimporting all shaders help) and WriteSerializedFiles did not actually write CAB file. It is failing somewhere inside:

    [MethodImpl(MethodImplOptions.InternalCall)]
    private static extern void WriteSerializedFileAssetBundle_Injected(
    string outputFolder,
    WriteCommand writeCommand,
    ref BuildSettings settings,
    ref BuildUsageTagGlobal globalUsage,
    BuildUsageTagSet usageSet,
    BuildReferenceMap referenceMap,
    AssetBundleInfo bundleInfo,
    out WriteResult ret);


    So in result AcrhiveAndCompressBundles cannot find file to archive but pipeline pass because it did not throw up exception to main thread.
     
  2. Camarent

    Camarent

    Joined:
    Feb 19, 2014
    Posts:
    168
    I used SBP 1.5.10 version. Did not tried 1.8.2 yet but I looked at the changelog and did not see anything related to it.
     
  3. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,816
  4. Camarent

    Camarent

    Joined:
    Feb 19, 2014
    Posts:
    168
    Okay, just did it.