# Crash on FMOD::InstrumentModel::id() Line 229. UE 4.27. Windows. 2.02.09

**URL:** <https://qa.fmod.com/t/crash-on-fmod-id-line-229-ue-4-27-windows-2-02-09/20801>\
**Category:** Unreal Engine\
**Created:** [October 24, 2023, 8:23am UTC](https://qa.fmod.com/t/crash-on-fmod-id-line-229-ue-4-27-windows-2-02-09/20801 "2023-10-24T08:23:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![piecesint](https://avatars.discourse-cdn.com/v4/letter/p/f6c823/32.png) [@piecesint](https://qa.fmod.com/u/piecesint)\
**Post date:** [October 24, 2023, 8:23am UTC](https://qa.fmod.com/t/crash-on-fmod-id-line-229-ue-4-27-windows-2-02-09/20801/1 "2023-10-24T08:23:17Z")

</div>

Hello!

We have a crash based on our logs happen when we try to load a bank.  
Here is the callstack:

```auto
[Inline Frame] fmodstudioL.dll!FMOD::InstrumentModel::id() Line 229|C++|
fmodstudioL.dll!FMOD::EventInstance::notifyInstrumentStopped(const FMOD::InstrumentInstance * instrument) Line 2382|C++|
fmodstudioL.dll!FMOD::InstrumentInstanceManager::update(FMOD::ClockTime currentTime) Line 3842|C++|
fmodstudioL.dll!FMOD::EventInstance::update(float deltaSeconds) Line 655|C++|
[Inline Frame] fmodstudioL.dll!FMOD::EventInstanceContainer::update(float) Line 192|C++|
fmodstudioL.dll!FMOD::PlaybackSystem::update(FMOD::TimeStamp * owningTimestamp, bool alreadyCachedClocks, FMOD::MasterBusModel * busModel) Line 1172|C++|
fmodstudioL.dll!FMOD::RuntimeAPI::Manager::update(FMOD::TimeStamp * owningTimestamp, bool cacheClocks) Line 256|C++|
fmodstudioL.dll!FMOD::AsyncManager::asyncProcessAndUpdate() Line 781|C++|
[Inline Frame] fmodstudioL.dll!FMOD::AsyncManager::asyncThreadLoop() Line 810|C++|
fmodstudioL.dll!FMOD::AsyncManager::asyncThreadFunc(void * data) Line 825|C++|
fmodstudioL.dll!FMOD::Thread::callback(void * data) Line 142|C++|
fmodstudioL.dll!FMOD_OS_Thread_Callback(void * param) Line 619|C++|
fmodstudioL.dll!thread_start<unsigned int (__cdecl*)(void *),1>(void * const parameter) Line 97|C++|
kernel32.dll!BaseThreadInitThunk()|Unknown|
ntdll.dll!RtlUserThreadStart()|Unknown|

```

Do you have any idea what it might be causing it?

Best regards,  
Carl-Oscar

---

<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:** [October 25, 2023, 12:54am UTC](https://qa.fmod.com/t/crash-on-fmod-id-line-229-ue-4-27-windows-2-02-09/20801/2 "2023-10-25T00:54:45Z")

</div>

It’s not clear to me from this call stack what the actual crash is, but it seems to be that something is wrong with an instrument stopping on one of your events. Can you please collect a crash dump and upload it to your [FMOD Profile](https://fmod.com/profile#uploads)?

---

<div class="post-metadata">

**Author:** ![piecesint](https://avatars.discourse-cdn.com/v4/letter/p/f6c823/32.png) [@piecesint](https://qa.fmod.com/u/piecesint)\
**Post date:** [October 25, 2023, 5:29am UTC](https://qa.fmod.com/t/crash-on-fmod-id-line-229-ue-4-27-windows-2-02-09/20801/3 "2023-10-25T05:29:55Z")

</div>

Should now find UE4Minidump-FMOD-IM-L229.dmp uploaded on our profile.

---

<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:** [October 26, 2023, 12:57am UTC](https://qa.fmod.com/t/crash-on-fmod-id-line-229-ue-4-27-windows-2-02-09/20801/4 "2023-10-26T00:57:45Z")

</div>

Thank you for sending that over, it looks like there’s a direct call into a pure virtual function, which is what’s causing the crash. I have a few questions:

1. How reproducible is this crash? Is it every time you load a specific bank or more rare / random?
2. Are there any specific events playing at the time when this issue occurs?
3. Are you connected to [Live Update](https://fmod.com/docs/2.02/studio/editing-during-live-update.html) when this crash occurs?

---

<div class="post-metadata">

**Author:** ![piecesint](https://avatars.discourse-cdn.com/v4/letter/p/f6c823/32.png) [@piecesint](https://qa.fmod.com/u/piecesint)\
**Post date:** [October 26, 2023, 7:49am UTC](https://qa.fmod.com/t/crash-on-fmod-id-line-229-ue-4-27-windows-2-02-09/20801/5 "2023-10-26T07:49:38Z")

</div>

It seems to be somewhat rare. I have had two reported cases during two weeks.  
It looks to be related to loading a bank but doesn’t happen everytime.  
There is a cutscene being played out and moving from one world to another.  
Could out of memory be the issue? We currently have some issues with using up all memory.  
We are not connected to Live Update.

---

<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:** [October 27, 2023, 3:22am UTC](https://qa.fmod.com/t/crash-on-fmod-id-line-229-ue-4-27-windows-2-02-09/20801/6 "2023-10-27T03:22:41Z")

</div>

Thank you for the additional information. A corrupted vtable could be related to running out of memory, but I wouldn’t expect it to crash in the same spot consistently if this is the issue. Was the other crash also inside `FMOD::InstrumentModel::id`?  
I’m not sure there is much else to go off at this point. If you get any more crashes then please upload them to your FMOD Profile and I will compare them.

---

<div class="post-metadata">

**Author:** ![piecesint](https://avatars.discourse-cdn.com/v4/letter/p/f6c823/32.png) [@piecesint](https://qa.fmod.com/u/piecesint)\
**Post date:** [October 31, 2023, 1:18pm UTC](https://qa.fmod.com/t/crash-on-fmod-id-line-229-ue-4-27-windows-2-02-09/20801/7 "2023-10-31T13:18:19Z")

</div>

Sorry for the late reply.  
The second crash was also FMOD::InstrumentModel::id.  
Haven’t had it these few days but will keep our eyes open.
