Android/IOS Error, ERR_FORMAT : Unsupported file or audio format

There is error issue in mobile platform (android, ios) After upgrade “Unity For FMOD” Asset (ver 1.02.09 → ver 1.02.11)

I use to Bank Import Type AssetBundle
And Unity version 2021.2.4f1

The Error is below

Type : Exception
Main Thread ID : 1
Time : 8.032796
Condition : BankLoadException: [FMOD] Could not load bank 'Master' : ERR_FORMAT : Unsupported file or audio format.
Stack: FMODUnity.RuntimeManager.LoadBank (UnityEngine.TextAsset asset, System.Boolean loadSamples) (at <00000000000000000000000000000000>:0)
SoundManager+<>c.<LoadBank>b__17_0 (AddressableAsset`1[T] textAsset) (at <00000000000000000000000000000000>:0)
AssetManager+<>c__DisplayClass6_0`1[T].<GetAsset>b__0 (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1[TObject] op) (at <00000000000000000000000000000000>:0)
System.Action`1[T].Invoke (T obj) (at <00000000000000000000000000000000>:0)
DelegateList`1[T].Invoke (T res) (at <00000000000000000000000000000000>:0)
UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1[TObject].InvokeCompletionEvent () (at <00000000000000000000000000000000>:0)
UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1[TObject].Complete (TObject result, System.Boolean success, System.Exception exception, System.Boolean releaseDependenciesOnFailure) (at <00000000000000000000000000000000>:0)
UnityEngine.ResourceManagement.AsyncOperations.ProviderOperation`1[TObject].ProviderCompleted[T] (T result, System.Boolean status, System.Exception e) (at <00000000000000000000000000000000>:0)
UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle.Complete[T] (T result, System.Boolean status, System.Exception exception) (at <00000000000000000000000000000000>:0)
UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider+InternalOp.CompleteOperation () (at <00000000000000000000000000000000>:0)
UnityEngine.AsyncOperation.InvokeCompletionEvent () (at <00000000000000000000000000000000>:0)

I suspected the problem with this error was 1kb files.

is relative with files that Error? or is there other issue?

It looks like your bank.asset.bytes files are still stub assets, which is why they are so small in size. Are you calling EventManager.UpdateBankStubAssets(buildTarget); when building asset bundles?

i dont call EventManager.UpdateBankStubAssets , also i couldnt find to use EventManager.UpdateBankStubAssets function in my project.

Asset bundles need to be manually built in Unity. If you look through the AssetBundle workflow Unity Documentation you will see that there is a stage where you need to call BuildPipeline.BuildAssetBundles. To make sure that asset bundles have the correct text assets in them you need to call these two functions as well:

EventManager.CopyToStreamingAssets(buildTarget); // 1

BuildPipeline.BuildAssetBundles(Destination, BuildAssetBundleOptions.None, buildTarget);

EventManager.UpdateBankStubAssets(buildTarget); // 2

Thanks apply

I used to be manually bulit Asset bundles In my Project. also use the BuildPipeline.BuildAssetBundles Function,

I will try to use EventManager.CopyToStreamingAssets Function and EventManager.UpdateBankStubAssets what you say When manually build AssetBundles.

I will give you feedback

1 Like