# Master.bank could not be loaded

**URL:** <https://qa.fmod.com/t/master-bank-could-not-be-loaded/18888>\
**Category:** Unity\
**Tags:** android\
**Created:** [June 13, 2022, 1:57pm UTC](https://qa.fmod.com/t/master-bank-could-not-be-loaded/18888 "2022-06-13T13:57:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DariusB](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@DariusB](https://qa.fmod.com/u/DariusB)\
**Post date:** [June 13, 2022, 1:57pm UTC](https://qa.fmod.com/t/master-bank-could-not-be-loaded/18888/1 "2022-06-13T13:57:07Z")

</div>

We are working on a game for the oculus quest and when we build the apk we get the error that the master.bank could not be loaded because the quest is out of memory.

```auto
2022-06-13 12:19:20.118 28699-28921/com.DefaultCompany.TGOM E/filemap: mmap(459300864,41680544) failed: Out of memory
2022-06-13 12:19:20.118 28699-28921/com.DefaultCompany.TGOM E/ultCompany.TGO: Failed to mmap file 'assets/Master.bank' in APK '/data/app/com.DefaultCompany.TGOM-iZdRbRdINrTy2UbhU0eHVg==/base.apk'
2022-06-13 12:19:20.123 28699-28921/com.DefaultCompany.TGOM E/Unity: [FMOD] AndroidAssetFile::reallyOpen : Could not open 'Master.bank' from the asset manager.
    UnityEngine.StackTraceUtility:ExtractStackTrace () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    UnityEngine.Logger:Log (UnityEngine.LogType,object)
    UnityEngine.Debug:LogError (object)
    FMODUnity.RuntimeManager:DEBUG_CALLBACK (FMOD.DEBUG_FLAGS,intptr,int,intptr,intptr) (at D:/Actrio Studio/tgom/Assets/Plugins/FMOD/src/Runtime/RuntimeManager.cs:36)

```

The sounds are still working but the game is crashing after we change the scene a couple of times and we assume that the problem could be because unity tries to load the master.bank multiple times.  
We are using the Unity version 2020.3.21f1 and the fmod version 2.01.07.

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [June 20, 2022, 2:06am UTC](https://qa.fmod.com/t/master-bank-could-not-be-loaded/18888/2 "2022-06-20T02:06:43Z")

</div>

Banks do not get loaded multiple times- unless perhaps you are using multiple System objects to load them. It sounds like the Master bank has a lot of sample data in it that is gradually getting loaded in and never unloaded. It might be a good idea to break down the Master bank into multiple smaller banks and load/unload them as required. Otherwise, you can unload the sample data of inidividual events when they are no longer required using [`Studio.EventDescription.unloadSampleData`](https://fmod.com/resources/documentation-api?version=2.02&page=studio-api-eventdescription.html#studio_eventdescription_unloadsampledata).  
You should also avoid preloading sample data on non timing-critical events to ensure that memory isn’t being used up unneccessarily. You can do this by unitcking the with [Preload Sample Data](https://fmod.com/resources/documentation-unity?version=2.02&page=game-components.html#preload-sample-data) option on Event Emitters and Bank Loaders, or the [Load Bank Sample Data](https://fmod.com/resources/documentation-unity?version=2.02&page=settings.html#load-bank-sample-data) option in the FMOD Unity Settings.

---

<div class="post-metadata">

**Author:** ![DariusB](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@DariusB](https://qa.fmod.com/u/DariusB)\
**Post date:** [June 29, 2022, 6:13am UTC](https://qa.fmod.com/t/master-bank-could-not-be-loaded/18888/3 "2022-06-29T06:13:02Z")

</div>

Sorry for the late reply. It looks like the solution was to simply update the unity package of fmod and/or change the build to 64 bits. This also solved some crashes we had when we changed the scene.
