View Full Version : Unity iOS crash

September 5th, 2018, 08:51 AM

Im facing 2 issues on Unity3d teamspeak plugins "Minimal_Mobile" example scene.

My environment:
TeamSpeak Unitypackage: TeamSpeak_SDK_3.0.4_2017_05_17_Unity3D_5.unitypack age
Unity3d: 5.6.1f1
Xcode: 9.4.1
iOS target: 8.0

Issue 1
"Scripting Backend" set to "IL2CPP", app crash.
When my unity build settings "Scripting Backend" set to "IL2CPP", and run in iOS device it crash. (Replication 100%)
Crash happen when I try to:
1. Click "Connect to Server"
2. Click "Disconnect from Server"
3. Click again "Connect to Server"
4. Crash

Here is the debug log from xcode:
Crash stackflow

Stopped on this function: (il2cpp-codegen.h: line 711)

inline Il2CppMethodPointer il2cpp_codegen_marshal_delegate(Il2CppCodeGenMulti castDelegate* d)
return (Il2CppMethodPointer)il2cpp::vm::PlatformInvoke::M arshalDelegate((Il2CppDelegate*)d).m_value;

Note*: No problem on "Scripting Backend" set to "Mono2x", but iOS 11 doesn't support Mono2x. Can TeamSpeak 3 support "IL2CPP"?

Issue 2
"Failed to send capture data" keep showing on Xcode console log.
When client in disconnected status from server, "Failed to send capture data" keep logging on xcode console.
I found this message from "AudioDelegate.m" > "processAudioFromMicrophone".
Can the function remove the delegate if disconnected status?

Thank you.

September 21st, 2018, 12:26 PM
Hi guys,

Finally I solved my issues with upgrade my unity project to Unity 2018.2.0f1, everything work fine.

Note: Unity 2017 would crash too, its better to use latest Unity.

Thank you ;)