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

**URL:** <https://qa.fmod.com/t/bug-2-02-05-unity-linux-editor-android-assertion-failed/18676>\
**Category:** Unity\
**Tags:** linux, android, unity\
**Created:** [April 19, 2022, 3:18pm UTC](https://qa.fmod.com/t/bug-2-02-05-unity-linux-editor-android-assertion-failed/18676 "2022-04-19T15:18:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![devnull](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@devnull](https://qa.fmod.com/u/devnull)\
**Post date:** [April 19, 2022, 3:18pm UTC](https://qa.fmod.com/t/bug-2-02-05-unity-linux-editor-android-assertion-failed/18676/1 "2022-04-19T15:18:13Z")

</div>

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:

```auto
[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](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/8/8b2e0d62e9ddec16311f325a54ed270d194a2764.png)

Let me know if you need some other infos.

Thank you in advance for your support

---

<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:** [April 26, 2022, 12:03am UTC](https://qa.fmod.com/t/bug-2-02-05-unity-linux-editor-android-assertion-failed/18676/2 "2022-04-26T00:03:49Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![devnull](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@devnull](https://qa.fmod.com/u/devnull)\
**Post date:** [April 26, 2022, 8:50am UTC](https://qa.fmod.com/t/bug-2-02-05-unity-linux-editor-android-assertion-failed/18676/3 "2022-04-26T08:50:22Z")

</div>

Hi,

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

this is the script playing the event:

```auto
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

---

<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:** [May 4, 2022, 5:23am UTC](https://qa.fmod.com/t/bug-2-02-05-unity-linux-editor-android-assertion-failed/18676/4 "2022-05-04T05:23:35Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![devnull](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@devnull](https://qa.fmod.com/u/devnull)\
**Post date:** [May 4, 2022, 3:15pm UTC](https://qa.fmod.com/t/bug-2-02-05-unity-linux-editor-android-assertion-failed/18676/5 "2022-05-04T15:15:56Z")

</div>

> 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:

```auto
FMODUnity.RuntimeManager.PlayOneShot(foostepsSFX);

```

but the problem persists.

Thank you

Bye

---

<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:** [May 6, 2022, 7:12am UTC](https://qa.fmod.com/t/bug-2-02-05-unity-linux-editor-android-assertion-failed/18676/6 "2022-05-06T07:12:27Z")

</div>

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](https://fmod.com/profile#uploads)?

---

<div class="post-metadata">

**Author:** ![devnull](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@devnull](https://qa.fmod.com/u/devnull)\
**Post date:** [May 12, 2022, 9:26am UTC](https://qa.fmod.com/t/bug-2-02-05-unity-linux-editor-android-assertion-failed/18676/7 "2022-05-12T09:26:20Z")

</div>

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
