# Weird call stack from a NPE involving Steamworks.NET and FMOD Studios

**URL:** <https://qa.fmod.com/t/weird-call-stack-from-a-npe-involving-steamworks-net-and-fmod-studios/14253>\
**Category:** Unity\
**Created:** [December 13, 2018, 3:17am UTC](https://qa.fmod.com/t/weird-call-stack-from-a-npe-involving-steamworks-net-and-fmod-studios/14253 "2018-12-13T03:17:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lothiack](https://avatars.discourse-cdn.com/v4/letter/l/b19c9b/32.png) [@lothiack](https://qa.fmod.com/u/lothiack)\
**Post date:** [December 13, 2018, 3:17am UTC](https://qa.fmod.com/t/weird-call-stack-from-a-npe-involving-steamworks-net-and-fmod-studios/14253/1 "2018-12-13T03:17:42Z")

</div>

What I don’t get is this stack trace:

```auto
NullReferenceException: Object reference not set to an instance of an object
  at Steamworks.CallResult`1[T].OnRunCallResult (System.IntPtr thisptr, System.IntPtr pvParam, System.Boolean bFailed, System.UInt64 hSteamAPICall_) [0x00009] in C:\devel\mvsc\musashi-vs-cthulhu\Assets\Plugins\Steamworks.NET\CallbackDispatcher.cs:314 
  at (wrapper managed-to-native) FMOD.Studio.System.FMOD_Studio_System_GetBus(intptr,byte[],intptr&)
  at FMOD.Studio.System.getBus (System.String path, FMOD.Studio.Bus& bus) [0x0001b] in C:\devel\mvsc\musashi-vs-cthulhu\Assets\Plugins\FMOD\Wrapper\fmod_studio.cs:393 
  at FMODUnity.RuntimeManager.GetBus (System.String path) [0x0000c] in C:\devel\mvsc\musashi-vs-cthulhu\Assets\Plugins\FMOD\RuntimeManager.cs:962 
  at FMODUnity.RuntimeManager.MuteAllEvents (System.Boolean muted) [0x00006] in C:\devel\mvsc\musashi-vs-cthulhu\Assets\Plugins\FMOD\RuntimeManager.cs:986 
  at FMODUnity.RuntimeManager.Update () [0x001e8] in C:\devel\mvsc\musashi-vs-cthulhu\Assets\Plugins\FMOD\RuntimeManager.cs:366 
 
(Filename: Assets/Plugins/Steamworks.NET/CallbackDispatcher.cs Line: 314)

```

Why would `FMOD_Studio_System_GetBus` ever call `Steamworks.CallResult1[T].OnRunCallResult`?

```auto
public RESULT getBus(string path, out Bus bus)
{
	using (StringHelper.ThreadSafeEncoding encoder = StringHelper.GetFreeHelper())
	{
		return FMOD_Studio_System_GetBus(this.handle, encoder.byteFromStringUTF8(path), out bus.handle);
	}
}

[DllImport(STUDIO_VERSION.dll)]
private static extern RESULT FMOD_Studio_System_GetBus(IntPtr studiosystem, byte[] path, out IntPtr bus);

```

---

<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:** [December 17, 2018, 4:15am UTC](https://qa.fmod.com/t/weird-call-stack-from-a-npe-involving-steamworks-net-and-fmod-studios/14253/2 "2018-12-17T04:15:19Z")

</div>

Are you able to share the full output log?  
Also what version of FMOD and Unity are you using?

---

<div class="post-metadata">

**Author:** ![lothiack](https://avatars.discourse-cdn.com/v4/letter/l/b19c9b/32.png) [@lothiack](https://qa.fmod.com/u/lothiack)\
**Post date:** [December 17, 2018, 5:02am UTC](https://qa.fmod.com/t/weird-call-stack-from-a-npe-involving-steamworks-net-and-fmod-studios/14253/3 "2018-12-17T05:02:24Z")

</div>

SteamworksNET Version: 11.0.0  
SteamworksSDK Version: 1.41  
FMOD Studio Version: 1.10.09  
Unity Version: 2018.1.6f1

Nothing else of importance in the logs.  
It’s the first time it happens, so I’m still going to try to pinpoint it further.
