Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Unity-Android] Watson Assistantv2, ExampleStreaming, ExampleTextToSpeechV1 #688

Open
lycronos opened this issue Apr 11, 2022 · 1 comment

Comments

@lycronos
Copy link

Hi,
I have a problem i create a project using Assistantv2, ExampleStreaming, ExampleTextToSpeechV1, it's work fine but when i build in android doesn't work and they show me this logs errors in the Phone:

Unity Exception NullReferenceException: Object reference not set to an instance of an object. : IBM.Cloud.SDK.Utilities.CredentialUtils.GetEnvCredentialsAsMap (System.String serviceName) (at <00000000000000000000000000000000>:0)
IBM.Cloud.SDK.Utilities.CredentialUtils.GetServiceProperties (System.String serviceName) (at <00000000000000000000000000000000>:0)
IBM.Cloud.SDK.BaseService..ctor (IBM.Cloud.SDK.Authentication.Authenticator authenticator, System.String serviceId) (at <00000000000000000000000000000000>:0)
IBM.Watson.TextToSpeech.V1.TextToSpeechService..ctor (System.String serviceName, IBM.Cloud.SDK.Authentication.Authenticator authenticator) (at <00000000000000000000000000000000>:0)
vozmaquina+d__14.MoveNext () (at <00000000000000000000000000000000>:0)
IBM.Cloud.SDK.Utilities.Runnable+Routine.MoveNext () (at <00000000000000000000000000000000>:0)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr retu
NullReferenceException: Object reference not set to an instance of an object.
at IBM.Cloud.SDK.Utilities.CredentialUtils.GetEnvCredentialsAsMap (System.String serviceName) [0x00000] in <00000000000000000000000000000000>:0
at IBM.Cloud.SDK.Utilities.CredentialUtils.GetServiceProperties (System.String serviceName) [0x00000] in <00000000000000000000000000000000>:0
at IBM.Cloud.SDK.BaseService..ctor (IBM.Cloud.SDK.Authentication.Authenticator authenticator, System.String serviceId) [0x00000] in <00000000000000000000000000000000>:0
at IBM.Watson.TextToSpeech.V1.TextToSpeechService..ctor (System.String serviceName, IBM.Cloud.SDK.Authentication.Authenticator authenticator) [0x00000] in <00000000000000000000000000000000>:0 at vozmaquina+d__14.MoveNext () [0x00000] in <00000000000000000000000000000000>:0
04-11 16:41:59.428: E/Unity(32102): at IBM.Cloud.SDK.Utilities.Runnable+Routine.MoveNext () [0x00000] in <00000000000000000000000000000000>:0
04-11 16:41:59.428: E/Unity(32102): at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerato
04-11 16:41:59.430: E/Unity(32102): [04/11/2022 20:41:59][Unity][CRITICAL] Unity Exception NullReferenceException: Object reference not set to an instance of an object. : IBM.Cloud.SDK.Utilities.CredentialUtils.GetEnvCredentialsAsMap (System.String serviceName) (at <00000000000000000000000000000000>:0)
04-11 16:41:59.430: E/Unity(32102): IBM.Cloud.SDK.Utilities.CredentialUtils.GetServiceProperties (System.String serviceName) (at <00000000000000000000000000000000>:0)
04-11 16:41:59.430: E/Unity(32102): IBM.Cloud.SDK.BaseService..ctor (IBM.Cloud.SDK.Authentication.Authenticator authenticator, System.String serviceId) (at <00000000000000000000000000000000>:0)
04-11 16:41:59.430: E/Unity(32102): IBM.Watson.Assistant.V2.AssistantService..ctor (System.String version, System.String serviceName, IBM.Cloud.SDK.Authentication.Authenticator authenticator) (at <00000000000000000000000000000000>:0)
04-11 16:41:59.430: E/Unity(32102): IAasistente+d__17.MoveNext () (at <00000000000000000000000000000000>:0)
04-11 16:41:59.430: E/Unity(32102): IBM.Cloud.SDK.Utilities.Runnable+Routine.MoveNext () (at <00000000000000000000000000000000>:0)
04-11 16:41:59.430: E/Unity(32102): UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator,
04-11 16:41:59.431: E/Unity(32102): NullReferenceException: Object reference not set to an instance of an object.
04-11 16:41:59.431: E/Unity(32102): at IBM.Cloud.SDK.Utilities.CredentialUtils.GetEnvCredentialsAsMap (System.String serviceName) [0x00000] in <00000000000000000000000000000000>:0
04-11 16:41:59.431: E/Unity(32102): at IBM.Cloud.SDK.Utilities.CredentialUtils.GetServiceProperties (System.String serviceName) [0x00000] in <00000000000000000000000000000000>:0
04-11 16:41:59.431: E/Unity(32102): at IBM.Cloud.SDK.BaseService..ctor (IBM.Cloud.SDK.Authentication.Authenticator authenticator, System.String serviceId) [0x00000] in <00000000000000000000000000000000>:0
04-11 16:41:59.431: E/Unity(32102): at IBM.Watson.Assistant.V2.AssistantService..ctor (System.String version, System.String serviceName, IBM.Cloud.SDK.Authentication.Authenticator authenticator) [0x00000] in <00000000000000000000000000000000>:0
04-11 16:41:59.431: E/Unity(32102): at IAasistente+d__17.MoveNext () [0x00000] in <00000000000000000000000000000000>:0
04-11 16:41:59.431: E/Unity(32102): at IBM.Cloud.SDK.Utilities.Runnable+Routine.MoveNext () [0x00000] in <00000000000000000000000000000000>:0
04-11 16:41:59.431: E/Unity(32102): at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Coll
04-11 16:41:59.433: E/Unity(32102): [04/11/2022 20:41:59][Unity][CRITICAL] Unity Exception NullReferenceException: Object reference not set to an instance of an object. : IBM.Cloud.SDK.Utilities.CredentialUtils.GetEnvCredentialsAsMap (System.String serviceName) (at <00000000000000000000000000000000>:0)
04-11 16:41:59.433: E/Unity(32102): IBM.Cloud.SDK.Utilities.CredentialUtils.GetServiceProperties (System.String serviceName) (at <00000000000000000000000000000000>:0)
04-11 16:41:59.433: E/Unity(32102): IBM.Cloud.SDK.BaseService..ctor (IBM.Cloud.SDK.Authentication.Authenticator authenticator, System.String serviceId) (at <00000000000000000000000000000000>:0)
04-11 16:41:59.433: E/Unity(32102): IBM.Watson.SpeechToText.V1.SpeechToTextService..ctor (System.String serviceName, IBM.Cloud.SDK.Authentication.Authenticator authenticator) (at <00000000000000000000000000000000>:0)
04-11 16:41:59.433: E/Unity(32102): reconocervoz+d__12.MoveNext () (at <00000000000000000000000000000000>:0)
04-11 16:41:59.433: E/Unity(32102): IBM.Cloud.SDK.Utilities.Runnable+Routine.MoveNext () (at <00000000000000000000000000000000>:0)
04-11 16:41:59.433: E/Unity(32102): UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr re
04-11 16:41:59.433: E/Unity(32102): NullReferenceException: Object reference not set to an instance of an object.
04-11 16:41:59.433: E/Unity(32102): at IBM.Cloud.SDK.Utilities.CredentialUtils.GetEnvCredentialsAsMap (System.String serviceName) [0x00000] in <00000000000000000000000000000000>:0
04-11 16:41:59.433: E/Unity(32102): at IBM.Cloud.SDK.Utilities.CredentialUtils.GetServiceProperties (System.String serviceName) [0x00000] in <00000000000000000000000000000000>:0
04-11 16:41:59.433: E/Unity(32102): at IBM.Cloud.SDK.BaseService..ctor (IBM.Cloud.SDK.Authentication.Authenticator authenticator, System.String serviceId) [0x00000] in <00000000000000000000000000000000>:0
04-11 16:41:59.433: E/Unity(32102): at IBM.Watson.SpeechToText.V1.SpeechToTextService..ctor (System.String serviceName, IBM.Cloud.SDK.Authentication.Authenticator authenticator) [0x00000] in <00000000000000000000000000000000>:0
04-11 16:41:59.433: E/Unity(32102): at reconocervoz+d__12.MoveNext () [0x00000] in <00000000000000000000000000000000>:0
04-11 16:41:59.433: E/Unity(32102): at IBM.Cloud.SDK.Utilities.Runnable+Routine.MoveNext () [0x00000] in <00000000000000000000000000000000>:0
04-11 16:41:59.433: E/Unity(32102): at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumera

@lycronos
Copy link
Author

i actualy use unity-sdk-6.0.0, unity-sdk-core-1.2.4 and unity 2020.3.16f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant