# EventReferenceUpdater.cs StackOverflowException

**URL:** <https://qa.fmod.com/t/eventreferenceupdater-cs-stackoverflowexception/22126>\
**Category:** Unity\
**Tags:** unity, csharp\
**Created:** [September 25, 2024, 7:20am UTC](https://qa.fmod.com/t/eventreferenceupdater-cs-stackoverflowexception/22126 "2024-09-25T07:20:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EpiphanySamuelCarey](https://avatars.discourse-cdn.com/v4/letter/e/8baadc/32.png) [@EpiphanySamuelCarey](https://qa.fmod.com/u/EpiphanySamuelCarey)\
**Post date:** [September 25, 2024, 7:20am UTC](https://qa.fmod.com/t/eventreferenceupdater-cs-stackoverflowexception/22126/1 "2024-09-25T07:20:18Z")

</div>

Hi,  
We are attempting to use EventReferenceUpdater.cs to fixed up some of our event names.

Whenever we run it, we get the following issue and the process stops. Any idea what could be causing this?

```auto
StackOverflowException: The requested operation caused a stack overflow.
System.Linq.Lookup`2[TKey,TElement].Create (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector, System.Collections.Generic.IEqualityComparer`1[T] comparer) (at <9049f45778604ae18ec20868d537cc5c>:0)
System.Linq.GroupedEnumerable`2[TSource,TKey].GetEnumerator () (at <9049f45778604ae18ec20868d537cc5c>:0)
System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].ToArray () (at <9049f45778604ae18ec20868d537cc5c>:0)
System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) (at <9049f45778604ae18ec20868d537cc5c>:0)
FMODUnity.EventReferenceUpdater+<GetGenericUpdateTasks>d__45.MoveNext () (at Assets/Plugins/FMOD/src/Editor/EventReferenceUpdater.cs:568)
FMODUnity.EventReferenceUpdater+<GetGenericUpdateTasks>d__45.MoveNext () (at Assets/Plugins/FMOD/src/Editor/EventReferenceUpdater.cs:692)
FMODUnity.EventReferenceUpdater+<GetGenericUpdateTasks>d__45.MoveNext () (at Assets/Plugins/FMOD/src/Editor/EventReferenceUpdater.cs:692)
FMODUnity.EventReferenceUpdater+<GetGenericUpdateTasks>d__45.MoveNext () (at Assets/Plugins/FMOD/src/Editor/EventReferenceUpdater.cs:692)
FMODUnity.EventReferenceUpdater+<GetGenericUpdateTasks>d__45.MoveNext () (at Assets/Plugins/FMOD/src/Editor/EventReferenceUpdater.cs:692)
FMODUnity.EventReferenceUpdater+<GetGenericUpdateTasks>d__45.MoveNext () (at Assets/Plugins/FMOD/src/Editor/EventReferenceUpdater.cs:692)
FMODUnity.EventReferenceUpdater+<GetGenericUpdateTasks>d__45.MoveNext () (at Assets/Plugins/FMOD/src/Editor/EventReferenceUpdater.cs:692)
FMODUnity.EventReferenceUpdater+<GetGenericUpdateTasks>d__45.MoveNext () (at Assets/Plugins/FMOD/src/Editor/EventReferenceUpdater.cs:692)

```

Unity Version: 2022.3.37  
FMOD Version: 2.02.21

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [October 1, 2024, 2:31am UTC](https://qa.fmod.com/t/eventreferenceupdater-cs-stackoverflowexception/22126/2 "2024-10-01T02:31:25Z")

</div>

This issue should be fixed recently in v2.02.24, it was being caused by objects from other packages like the new Unity Input Manager.
