Release Build Crashes with ExecutionEngineException from Meta.XR.ImmersiveDebugger (Passthrough App)
Hi everyone,
I'm working on a Unity project for Meta Quest using the Passthrough API. Everything works perfectly in the Development Build, but when I create a Release Build, the app crashes on startup.
I’ve tracked the issue down to this error:
ExecutionEngineException: Invalid call to method 'Meta.XR.ImmersiveDebugger.Manager.DebugManagerAddon'
It appears to be caused by the Immersive Debugger system still being included or invoked at runtime, even though I’ve:
- Unchecked Enable in the Immersive Debugger Settings
- Unchecked UsesImmersiveDebugger in MetaXRProjectSettings.asset
- Cleared Unity's /Library, /Bee, /Temp, and rebuilt clean
Yet it still looks like the debugger is enabled (see screenshot) and I see the ExecutionEngineException error in the logs.
I've read that using IMMERSIVE_DEBUGGER_ALLOW_USE_IN_PROD as a scripting define can prevent the crash, but looks like this is unacceptable for production use.
