Search Unity

[UnityLoader] cacheRemotePackage fails for build.data

Discussion in 'Web' started by nopls, Feb 14, 2017.

  1. nopls

    nopls

    Joined:
    Feb 2, 2015
    Posts:
    2
    Loading build.data fails with the following error:
    DOMException: The serialized value is too large (size=233287792 bytes, max=133169152 bytes).

    Tested on Chrome 56.0.2924.87 (64-bit) and Safari 9.1.2 (11601.7.7), builds made with Unity 5.5.0p4

    Compressed .data packages way bellow this limit can also trigger the error since they're stored after inflation.

    Also the loader does not fallback on using the package it was attempting to store.

    We're in the process of breaking down the initial build into different asset bundles however this limit should be at least clearly documented.
     
  2. nopls

    nopls

    Joined:
    Feb 2, 2015
    Posts:
    2
    For large code files the asm blob creation can silently fail which in turn leads to the asm module not existing.

    Explicitly creating the asm blob triggers the following error:
    Uncaught TypeError: Failed to construct 'Blob': Array length exceeds supported limit.