inworld-ai / inworld-unity-full

Unity SDK for Inworld.ai. Create more realistic and believable worlds with characters powered by artificial intelligence.
https://docs.inworld.ai/docs/tutorial-integrations/Unity/
Other
63 stars 17 forks source link

It crashes when used with firebase sdk. #67

Open utkubagdas opened 1 year ago

utkubagdas commented 1 year ago

As it says in the title, I can't use it with firebase sdk. It crashes in unity editor and device. Could you help me find out why?

Div-Inworld commented 1 year ago

As it says in the title, I can't use it with firebase sdk. It crashes in unity editor and device. Could you help me find out why?

Hi Utku Are you able to provide an Editor log after your Unity Editor crashes? This picture below should show you where to find it depending on your OS

image
Juniverse commented 1 year ago

Please also provide us your firebask unity package and which module you're using. That'll be very helpful, thanks!

utkubagdas commented 1 year ago

As it says in the title, I can't use it with firebase sdk. It crashes in unity editor and device. Could you help me find out why?

Hi Utku Are you able to provide an Editor log after your Unity Editor crashes? This picture below should show you where to find it depending on your OS image

Editor Log on MacOS :

================================================================= Native Crash Reporting Got a segv while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application.

Native stacktrace:

0x28b007760 - /Applications/Unity/Hub/Editor/2021.3.14f1/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_dump_native_crash_info
0x28afc9ce0 - /Applications/Unity/Hub/Editor/2021.3.14f1/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_handle_native_crash
0x28af524f8 - /Applications/Unity/Hub/Editor/2021.3.14f1/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_sigsegv_signal_handler_debug
0x18c4c2a84 - /usr/lib/system/libsystem_platform.dylib : _sigtramp
0x2db57a938 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Inworld.AI/Plugins/ThirdParty/GRPC/runtime/osx/M1/grpc_csharp_ext.bundle : _ZN9grpc_core19ChannelStackBuilder10StackEntryC1EOS1_
0x2db57a938 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Inworld.AI/Plugins/ThirdParty/GRPC/runtime/osx/M1/grpc_csharp_ext.bundle : _ZN9grpc_core19ChannelStackBuilder10StackEntryC1EOS1_
0x2db57a908 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Inworld.AI/Plugins/ThirdParty/GRPC/runtime/osx/M1/grpc_csharp_ext.bundle : _ZNSt3__19allocatorIN9grpc_core19ChannelStackBuilder10StackEntryEE9constructIS3_JS3_EEEvPT_DpOT0_
0x2db57a8b4 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Inworld.AI/Plugins/ThirdParty/GRPC/runtime/osx/M1/grpc_csharp_ext.bundle : _ZNSt3__116allocator_traitsINS_9allocatorIN9grpc_core19ChannelStackBuilder10StackEntryEEEE9constructIS4_JS4_EvEEvRS5_PT_DpOT0_
0x2db57a1b8 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Inworld.AI/Plugins/ThirdParty/GRPC/runtime/osx/M1/grpc_csharp_ext.bundle : _ZNSt3__16vectorIN9grpc_core19ChannelStackBuilder10StackEntryENS_9allocatorIS3_EEE22__construct_one_at_endIJS3_EEEvDpOT_
0x2db57911c - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Inworld.AI/Plugins/ThirdParty/GRPC/runtime/osx/M1/grpc_csharp_ext.bundle : _ZNSt3__16vectorIN9grpc_core19ChannelStackBuilder10StackEntryENS_9allocatorIS3_EEE9push_backEOS3_
0x2db579074 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Inworld.AI/Plugins/ThirdParty/GRPC/runtime/osx/M1/grpc_csharp_ext.bundle : _ZN9grpc_core19ChannelStackBuilder12AppendFilterEPK19grpc_channel_filterNSt3__18functionIFvP18grpc_channel_stackP20grpc_channel_elementEEE
0x2db130f70 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Inworld.AI/Plugins/ThirdParty/GRPC/runtime/osx/M1/grpc_csharp_ext.bundle : _ZZN9grpc_core31BuildClientChannelConfigurationEPNS_17CoreConfiguration7BuilderEENK3$_0clEPNS_19ChannelStackBuilderE
0x2db130efc - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Inworld.AI/Plugins/ThirdParty/GRPC/runtime/osx/M1/grpc_csharp_ext.bundle : _ZNSt3__1L8__invokeIRZN9grpc_core31BuildClientChannelConfigurationEPNS1_17CoreConfiguration7BuilderEE3$_0JPNS1_19ChannelStackBuilderEEEEDTclscT_fp_spscT0_fp0_EEOS9_DpOSA_
0x2db130ea4 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Inworld.AI/Plugins/ThirdParty/GRPC/runtime/osx/M1/grpc_csharp_ext.bundle : _ZNSt3__128__invoke_void_return_wrapperIbLb0EE6__callIJRZN9grpc_core31BuildClientChannelConfigurationEPNS3_17CoreConfiguration7BuilderEE3$_0PNS3_19ChannelStackBuilderEEEEbDpOT_
0x2db130e4c - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Inworld.AI/Plugins/ThirdParty/GRPC/runtime/osx/M1/grpc_csharp_ext.bundle : _ZNSt3__110__function12__alloc_funcIZN9grpc_core31BuildClientChannelConfigurationEPNS2_17CoreConfiguration7BuilderEE3$_0NS_9allocatorIS6_EEFbPNS2_19ChannelStackBuilderEEEclEOSA_
0x2db12f81c - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Inworld.AI/Plugins/ThirdParty/GRPC/runtime/osx/M1/grpc_csharp_ext.bundle : _ZNSt3__110__function6__funcIZN9grpc_core31BuildClientChannelConfigurationEPNS2_17CoreConfiguration7BuilderEE3$_0NS_9allocatorIS6_EEFbPNS2_19ChannelStackBuilderEEEclEOSA_
0x2f1a1ab80 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZNKSt3__110__function12__value_funcIFbP26grpc_channel_stack_builderEEclEOS3_
0x2f1a14f58 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZNKSt3__18functionIFbP26grpc_channel_stack_builderEEclES2_
0x2f1a14e28 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZNK9grpc_core11ChannelInit11CreateStackEP26grpc_channel_stack_builder23grpc_channel_stack_type
0x2f1a0ea44 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _Z19grpc_channel_createPKcPK17grpc_channel_args23grpc_channel_stack_typeP14grpc_transportPP10grpc_error
0x2f169b6a0 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZN9grpc_core12_GLOBAL__N_113CreateChannelEPKcPK17grpc_channel_argsPP10grpc_error
0x2f169b448 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : grpc_secure_channel_create
0x2f1392e24 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZN4grpc24SecureChannelCredentials29CreateChannelWithInterceptorsERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS_16ChannelArgumentsENS1_6vectorINS1_10unique_ptrINS_12experimental33ClientInterceptorFactoryInterfaceENS1_14default_del
0x2f1392d7c - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZN4grpc24SecureChannelCredentials17CreateChannelImplERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS_16ChannelArgumentsE
0x2f138dbe8 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZN4grpc19CreateCustomChannelERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEERKNS0_10shared_ptrINS_18ChannelCredentialsEEERKNS_16ChannelArgumentsE
0x2f120a74c - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZNK8firebase9firestore6remote14GrpcConnection13CreateChannelEv
0x2f120a5d8 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZN8firebase9firestore6remote14GrpcConnection16EnsureActiveStubEv
0x2f120afd4 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZN8firebase9firestore6remote14GrpcConnection12CreateStreamEN4absl12lts_2021110211string_viewERKNS0_11credentials9AuthTokenERKNSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEPNS1_18GrpcStreamObserverE
0x2f12b8cec - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZN8firebase9firestore6remote11WriteStream16CreateGrpcStreamEPNS1_14GrpcConnectionERKNS0_11credentials9AuthTokenERKNSt3__112basic_stringIcNS9_11char_traitsIcEENS9_9allocatorIcEEEE
0x2f12a61d0 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZN8firebase9firestore6remote6Stream26ResumeStartWithCredentialsERKNS0_4util8StatusOrINS0_11credentials9AuthTokenEEERKNSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEE
0x2f12ae1d0 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZZZN8firebase9firestore6remote6Stream18RequestCredentialsEvENK3$_0clERKN4absl12lts_202111028optionalINS0_4util8StatusOrINS0_11credentials9AuthTokenEEEEERKNS6_INSt3__112basic_stringIcNSF_11char_traitsIcEENSF_9allocatorIcEEEEEEENKUlvE_clEv
0x2f12ae138 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZNSt3__1L8__invokeIRZZN8firebase9firestore6remote6Stream18RequestCredentialsEvENK3$_0clERKN4absl12lts_202111028optionalINS2_4util8StatusOrINS2_11credentials9AuthTokenEEEEERKNS8_INS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEEUlvE_JEEEDTclsc
0x2f12ae0f0 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZNSt3__128__invoke_void_return_wrapperIvLb1EE6__callIJRZZN8firebase9firestore6remote6Stream18RequestCredentialsEvENK3$_0clERKN4absl12lts_202111028optionalINS4_4util8StatusOrINS4_11credentials9AuthTokenEEEEERKNSA_INS_12basic_stringIcNS_11char_traitsIcEENS
0x2f12ae0c8 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZNSt3__110__function12__alloc_funcIZZN8firebase9firestore6remote6Stream18RequestCredentialsEvENK3$_0clERKN4absl12lts_202111028optionalINS3_4util8StatusOrINS3_11credentials9AuthTokenEEEEERKNS9_INS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEE
0x2f12acb48 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZNSt3__110__function6__funcIZZN8firebase9firestore6remote6Stream18RequestCredentialsEvENK3$_0clERKN4absl12lts_202111028optionalINS3_4util8StatusOrINS3_11credentials9AuthTokenEEEEERKNS9_INS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEEUlvE_NS
0x2db60047c - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Inworld.AI/Plugins/ThirdParty/GRPC/runtime/osx/M1/grpc_csharp_ext.bundle : _ZNKSt3__110__function12__value_funcIFvvEEclEv
0x2db5ff2c8 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Inworld.AI/Plugins/ThirdParty/GRPC/runtime/osx/M1/grpc_csharp_ext.bundle : _ZNKSt3__18functionIFvvEEclEv
0x2f1348260 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZN8firebase9firestore4util10AsyncQueue15ExecuteBlockingERKNSt3__18functionIFvvEEE
0x2f134d64c - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZZN8firebase9firestore4util10AsyncQueue4WrapERKNSt3__18functionIFvvEEEENK3$_0clEv
0x2f134d60c - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZNSt3__1L8__invokeIRZN8firebase9firestore4util10AsyncQueue4WrapERKNS_8functionIFvvEEEE3$_0JEEEDTclscT_fp_spscT0_fp0_EEOSC_DpOSD_
0x2f134d5c4 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZNSt3__128__invoke_void_return_wrapperIvLb1EE6__callIJRZN8firebase9firestore4util10AsyncQueue4WrapERKNS_8functionIFvvEEEE3$_0EEEvDpOT_
0x2f134d59c - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZNSt3__110__function12__alloc_funcIZN8firebase9firestore4util10AsyncQueue4WrapERKNS_8functionIFvvEEEE3$_0NS_9allocatorISB_EES7_EclEv
0x2f134c0f4 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZNSt3__110__function6__funcIZN8firebase9firestore4util10AsyncQueue4WrapERKNS_8functionIFvvEEEE3$_0NS_9allocatorISB_EES7_EclEv
0x2db60047c - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Inworld.AI/Plugins/ThirdParty/GRPC/runtime/osx/M1/grpc_csharp_ext.bundle : _ZNKSt3__110__function12__value_funcIFvvEEclEv
0x2db5ff2c8 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Inworld.AI/Plugins/ThirdParty/GRPC/runtime/osx/M1/grpc_csharp_ext.bundle : _ZNKSt3__18functionIFvvEEclEv
0x2f136d85c - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZN8firebase9firestore4util4Task17ExecuteAndReleaseEv
0x2f1379248 - /Users/sevantasci/Documents/GitHub/inworld_unity_chat/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-10_4_0.bundle : _ZN8firebase9firestore4util19ExecutorLibdispatch11InvokeAsyncEPv
0x18c2e4400 - /usr/lib/system/libdispatch.dylib : _dispatch_client_callout
0x18c2eba88 - /usr/lib/system/libdispatch.dylib : _dispatch_lane_serial_drain
0x18c2ec5f8 - /usr/lib/system/libdispatch.dylib : _dispatch_lane_invoke
0x18c2f7244 - /usr/lib/system/libdispatch.dylib : _dispatch_workloop_worker_thread
0x18c490074 - /usr/lib/system/libsystem_pthread.dylib : _pthread_wqthread
0x18c48ed94 - /usr/lib/system/libsystem_pthread.dylib : start_wqthread
=================================================================
Telemetry Dumper:
Thread 0x17039b000 may have been prematurely finalized* Assertion at mono-threads.c:702, condition `info' not met, function:mono_thread_info_current,
Obtained 4 stack frames.
Thread 0x2c7347000 may have been prematurely finalizedAcceleratorClientConnectionCallback - disconnected - :0
utkubagdas commented 1 year ago

Please also provide us your firebask unity package and which module you're using. That'll be very helpful, thanks!

Firebase Unity SDK 11.0.0 FirebaseFirestore.unitypackage https://firebase.google.com/download/unity?hl=tr

utkubagdas commented 1 year ago

Hey can u help me?

Div-Inworld commented 1 year ago

Hey can u help me?

This is likely due to Firebase using GRPC as a transport layer and so does the Inworld Plugin causing a conflict. It seems at some point the firebase code begins trying to use the grpc dependencies that are included with our sdk but version incompatibility ends up causing the crash. You will likely need to figure out how best to wrap either firebase or our plugin in namespaces or with assemblydefinitions such that their grpc dependencies don't conflict.

Or you will need to find a version of grpc that is compatible with both