FMOD_ERR_INVALID_PARAM when calling FMOD::Studio::System::SetListenerAttributes

I’m trying to integrate FMOD into my libgdx game using lwjgl’s FMOD bindings (Currently 2.02.16) and I very occasionally get FMOD_ERR_INVALID_PARAM when calling FMOD_Studio_System_SetListenerAttributes.

As far as I know the parameters are being set correctly:

pos=(-26.247597,-10.350963,-4.0)
vel=(0.0,0.0,0.0)
fwd=(0.0,0.0,-1.0)
up=(0.0,1.0,0.0)
attenuation=null

I’ve posted a bug report in the lwjgl forums Sometimes FMOD returns FMOD_ERR_INVALID_PARAM when window does not have focus on Windows · Issue #940 · LWJGL/lwjgl3 · GitHub but is there any way to get more information about what parameter is causing the FMOD_ERR_INVALID_PARAM, and why?

I think I worked it out… a misbehaving int was being used for listenerID so sometimes I was trying to set the properties for listenerID = 1 when I only have a single listener. (see FMOD_Studio_System_GetNumListeners)