[BUG][2.02.05] Unity Linux Editor + Android - Assertion failed

Development OS: Archlinux and Windows
Engine: Unity 2020.3.28 LTS
Target Platform: Android 10 and newer

Hi,
I’ve got a footsteps SFX that is played by a script attached on a Unity animation as an event.
When play testing my project in the Unity Editor on Archlinux I get this error message in the console:

[FMOD] assert : assertion: 'mLastSetPropertyValue == oldValue' failed

UnityEngine.Debug:LogError (object)
FMODUnity.RuntimeUtils:DebugLogError (string) (at Assets/Plugins/FMOD/src/RuntimeUtils.cs:549)
FMODUnity.RuntimeManager:DEBUG_CALLBACK (FMOD.DEBUG_FLAGS,intptr,int,intptr,intptr) (at Assets/Plugins/FMOD/src/RuntimeManager.cs:82)

and of course the sfx is not played at all.
Every other sounds in the game are playing just fine.

I can confirm that the problem does not occour using the Unity Editor on Windows or in the final Android build.

The FMOD Event called by the script/animation event:
image

Let me know if you need some other infos.

Thank you in advance for your support

That assert is making sure that parameter changes are executing correctly, are you calling setParameter on the playing event instance in this script, and are other events playing correctly?
Can you also please tell me what version of FMOD you are using?

Hi,

are you calling setParameter on the playing event instance in this script,

this is the script playing the event:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerFootsteps : MonoBehaviour
{
    [SerializeField]
    private FMODUnity.EventReference foostepsSFX;
    
    private FMOD.Studio.EventInstance foosteps;
    
    public void PlayFootstep()
    {
        foosteps = FMODUnity.RuntimeManager.CreateInstance(foostepsSFX);
        foosteps.setParameterByName("Terrain", 0f);
        foosteps.set3DAttributes(FMODUnity.RuntimeUtils.To3DAttributes(gameObject));
        foosteps.start();
        foosteps.release();
    }
}

and it’s attached to the player object at the same level of the animator

and are other events playing correctly?

Yes but every other events are not animation events

Can you also please tell me what version of FMOD you are using?

FMOD Studio 2.02.05
FMOD Unity asset 2.02.04

The problem is only occuring inside the Linux Unity Editor.

Thank you for you support, let me know if you need something else.

Bye

Thank you for the additional information, and apologies for the delayed response- I haven’t been able to reproduce this issue on Archlinux. Does this issue reproduce if you comment out the setParameterByName line?

Thank you for the additional information, and apologies for the delayed response

Not a problem, thank you for your answer.

I haven’t been able to reproduce this issue on Archlinux. Does this issue reproduce if you comment out the setParameterByName line?

Yeah, it does the same even when the setParameterByName line is commented out.

I don’t kown if it’s helpful but I also tried to use only this line:

FMODUnity.RuntimeManager.PlayOneShot(foostepsSFX);

but the problem persists.

Thank you

Bye

Okay, thank you for confirming. I think I am going to need a reproduction. Would it be possible for you to upload a reproduction to your FMOD Profile?

Hi Jeff, thank you for answering me.
I’m sorry, but at the moment I cannot upload the project.
Meanwhile I’ll try with a different version of Unity, I’ll let you know if anything changes.

Thank you again for all the support for now

Bye