Hello, I am having issues getting my NPC to connect from the iPhone I am using convai 4.0, The app load but when I press on an NPC I get a connection error I have encloused a few logs that I could get. I must say tha tin the unity editor the npcs connect and work fine, maybe someone here can help me.
Analysis Report: A Voice of God iOS Build & Runtime Issues Prepared by Lee for the Developer Date: April 9, 2026 App: AVoiceOfGod (Unity 6.3 + Convai SDK 4.0 + LiveKit)
Executive Summary
I have performed 60+ Unity Cloud Build iterations over several days to stabilize the iOS version.
The primary blocker I am facing is a native crash (EXC_CRASH / SIGBUS, Type 309 Jetsam) on the main thread inside Unity’s graphics / Burst / MLIR pipeline (llvm::APInt mlir::ElementsAttr::getSplatValuellvm::APInt() const).
This crash occurs after launch, usually within 15–25 seconds, before or during NPC selection. It is not a LiveKit/Convai connection issue — it is a Unity 6.3 + IL2CPP + Burst + stripping conflict on iOS.
All earlier issues I encountered (test-framework errors, IL2CPP linker symbols, missing microphone permission popup, audio session timing races) have been resolved. The latest .ips crash file (AVoiceOfGod-2026-04-09-102644.ips) and iPhone log confirm I am back to the same MLIR/Burst graphics crash.
App & Environment Details
Unity Version: 6000.3.10f1 (e35f0c77bd8e)
Convai SDK: 4.0.0 (with LiveKit WebRTC)
Build Pipeline: Unity Cloud Build → TestFlight
Target Device: iPhone 12,5 (iOS 26.3.1 beta)
Current Crash: SIGBUS on main thread (UnityPlayerLoop / UIApplicationMain)
Root Cause (from latest crash files)
Faulting Thread: Main thread (com.apple.main-thread)
Exception: EXC_CRASH (SIGBUS)
Key Symbol in Register x2: llvm::APInt mlir::ElementsAttr::getSplatValuellvm::APInt() const
This points to Unity 6.3’s graphics pipeline + Burst compiler when IL2CPP stripping interacts with MetalPerformanceShadersGraph and shader/asset data.
The app reaches the main menu / NPC carousel but crashes before stable voice interaction can begin.
Hi Sir, I got this error when I compiled the game and tried to speak to the npc:
[Error][Transport]: [ProtocolGateway] Handler threw for type ‘bot-llm-text’:
Unable to find a constructor to use for type Convai.Infrastructure.Protocol.Messages.BotTranscriptionPayload.
A class should either have a default constructor, one constructor with arguments or a constructor marked with the JsonConstructor attribute.