Hi,
I think I have found another workaround that will allow you to have the logs enabled. The issue seems to be related to changes to stack sizes on Linux.
It is possible to allow the FMOD system to function with threads using the following Unity Integration | Examples Callback Handler.
using System;
using UnityEngine;
[CreateAssetMenu(menuName = "My FMOD Callback Handler")]
public class MyFMODCallbackHandler : FMODUnity.PlatformCallbackHandler {
public override void PreInitialize(FMOD.Studio.System studioSystem, Action<FMOD.RESULT, string> reportResult)
{
FMOD.RESULT result;
FMOD.System coreSystem;
result = studioSystem.getCoreSystem(out coreSystem);
reportResult(result, "studioSystem.getCoreSystem");
// Test increasing stack size
const uint linuxStackSize = 1024 * 1024;
for (int i = 0; i < (int)FMOD.THREAD_TYPE.MAX; ++i)
{
FMOD.Thread.SetAttributes(
(FMOD.THREAD_TYPE)i,
FMOD.THREAD_AFFINITY.GROUP_DEFAULT,
FMOD.THREAD_PRIORITY.DEFAULT,
(FMOD.THREAD_STACK_SIZE)linuxStackSize);
}
}
}
Where were are just setting all FMOD threads to a default value. I found this allowed me to run the Unity Editor with logging enabled. Would it be possible to test if this works on your end too? More info can be read here: Hard crash on Linux/Kubuntu: pthread_create returns 22 followed by NULL critical section in Unity 6