Problem with uploading building to Somnium Space throw Unity - c#

I encountered a problem when loading a 3D model of a building in the Somnium Space metaverse. The model meets all requirements.
NullReferenceException: Object reference not set to an instance of an object
SomniumSpace.SDK.BundleObject.BuildingItemConfig.CheckLongAnimations () (at <31ae435ac6e84dfca802585535e9fd62>:0)
SomniumSpace.SDK.EditorSDK.AssetBundleConfig.BuildingItemConfigEditor.BuildAndUploadWindow () (at <6e520e0a729e4ab185bc8870b44402c3>:0)
SomniumSpace.SDK.EditorSDK.AssetBundleConfig.AssetBundleConfigEditorBase`1[T].CheckBundlesLimit (SomniumSpace.SDK.DTO.BundleCountValidationDTO countValidation) (at <6e520e0a729e4ab185bc8870b44402c3>:0)
SomniumSpace.SDK.EditorSDK.AssetBundleConfig.AssetBundleConfigEditorBase`1[T].CheckBundlesLimitSuccess (System.String successResponse) (at <6e520e0a729e4ab185bc8870b44402c3>:0)
SomniumSpace.SDK.Managers.NetworkManager+<>c__DisplayClass5_1.<CreateGetRequest>b__1 (UnityEngine.AsyncOperation asyncOperation) (at <31ae435ac6e84dfca802585535e9fd62>:0)
UnityEngine.AsyncOperation.InvokeCompletionEvent () (at C:/buildslave/unity/build/Runtime/Export/Scripting/AsyncOperation.cs:21)

Related

Using AxWindowsMediaPlayer control on MONO c#

I try to make a AxWindowsMediaPlayer control on form whit MONO on raspian. It work very well on Windows, but on Raspian I have this error:
"System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Hmi800App.PlayerVideoForm'.
at System.Windows.Forms.Control.CreateHandle () [0x00013] in <28e46de2d20c496895000ef0abfc2106>:0
at System.Windows.Forms.Form.CreateHandle () [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0
at Hmi800App.PlayerVideoForm.InitializeControl (System.String _url, System.Boolean alredySee, System.String DpiDescription, System.String _dpiType) [0x0011e] in <4c680c0bc03a4b558a55ee653edb38ad>:0
It same that handle of control is not created.
Can you halp me?

Pointer Error when using GGVPointer on MRTK canvas Unity

I am attempting to build a world space canvas that is useable with the Hololens 2 in Unity. Whenever I activate the pointer hand I am receiving this error:
The pointer you are trying to remove does not exist in the mapping dict!
MixedRealityInputModule.cs
I have spent several hours fiddling with the input profiles and searching the web to no avail. If you have experienced this issue or have any idea of what is causing this please let me know. Thanks for your time.
p.s stack trace is posted below:
The pointer you are trying to remove does not exist in the mapping dict!
UnityEngine.Debug:LogError (object)
Microsoft.MixedReality.Toolkit.Input.MixedRealityInputModule:Microsoft.MixedReality.Toolkit.Input.IMixedRealitySourceStateHandler.OnSourceLost (Microsoft.MixedReality.Toolkit.Input.SourceStateEventData) (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation#251fc689f36f/Services/InputSystem/MixedRealityInputModule.cs:433)
Microsoft.MixedReality.Toolkit.Input.MixedRealityInputSystem/<>c:<.cctor>b__246_1 (Microsoft.MixedReality.Toolkit.Input.IMixedRealitySourceStateHandler,UnityEngine.EventSystems.BaseEventData) (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation#251fc689f36f/Services/InputSystem/MixedRealityInputSystem.cs:970)
UnityEngine.EventSystems.ExecuteEvents:ExecuteHierarchy<Microsoft.MixedReality.Toolkit.Input.IMixedRealitySourceStateHandler> (UnityEngine.GameObject,UnityEngine.EventSystems.BaseEventData,UnityEngine.EventSystems.ExecuteEvents/EventFunction1<Microsoft.MixedReality.Toolkit.Input.IMixedRealitySourceStateHandler>) Microsoft.MixedReality.Toolkit.Input.MixedRealityInputSystem:DispatchEventToObjectFocusedByPointer<Microsoft.MixedReality.Toolkit.Input.IMixedRealitySourceStateHandler> (Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer,Microsoft.MixedReality.Toolkit.Input.BaseInputEventData,bool,UnityEngine.EventSystems.ExecuteEvents/EventFunction1<Microsoft.MixedReality.Toolkit.Input.IMixedRealitySourceStateHandler>) (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation#251fc689f36f/Services/InputSystem/MixedRealityInputSystem.cs:703)
Microsoft.MixedReality.Toolkit.Input.MixedRealityInputSystem:HandleEvent<Microsoft.MixedReality.Toolkit.Input.IMixedRealitySourceStateHandler> (UnityEngine.EventSystems.BaseEventData,UnityEngine.EventSystems.ExecuteEvents/EventFunction1<Microsoft.MixedReality.Toolkit.Input.IMixedRealitySourceStateHandler>) (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation#251fc689f36f/Services/InputSystem/MixedRealityInputSystem.cs:471) Microsoft.MixedReality.Toolkit.Input.MixedRealityInputSystem:RaiseSourceLost (Microsoft.MixedReality.Toolkit.Input.IMixedRealityInputSource,Microsoft.MixedReality.Toolkit.Input.IMixedRealityController) (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation#251fc689f36f/Services/InputSystem/MixedRealityInputSystem.cs:960) Microsoft.MixedReality.Toolkit.Input.BaseInputSimulationService:RemoveControllerDevice (Microsoft.MixedReality.Toolkit.Utilities.Handedness) (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation#251fc689f36f/Core/Providers/InputSimulation/BaseInputSimulationService.cs:178) Microsoft.MixedReality.Toolkit.Input.BaseInputSimulationService:UpdateControllerDevice (Microsoft.MixedReality.Toolkit.Input.ControllerSimulationMode,Microsoft.MixedReality.Toolkit.Utilities.Handedness,object) (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation#251fc689f36f/Core/Providers/InputSimulation/BaseInputSimulationService.cs:88) Microsoft.MixedReality.Toolkit.Input.InputSimulationService:LateUpdate () (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation#251fc689f36f/Core/Providers/InputSimulation/InputSimulationService.cs:390) Microsoft.MixedReality.Toolkit.BaseDataProviderAccessCoreSystem:LateUpdate () (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation#251fc689f36f/Core/Services/BaseDataProviderAccessCoreSystem.cs:67) Microsoft.MixedReality.Toolkit.Input.MixedRealityInputSystem:LateUpdate () (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation#251fc689f36f/Services/InputSystem/MixedRealityInputSystem.cs:273) Microsoft.MixedReality.Toolkit.MixedRealityToolkit/<>c:<LateUpdateAllServices>b__74_0 (Microsoft.MixedReality.Toolkit.IMixedRealityService) (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation#251fc689f36f/Core/Services/MixedRealityToolkit.cs:1074) Microsoft.MixedReality.Toolkit.MixedRealityToolkit:ExecuteOnAllServicesInOrder (System.Action1<Microsoft.MixedReality.Toolkit.IMixedRealityService>) (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation#251fc689f36f/Core/Services/MixedRealityToolkit.cs:1148)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:LateUpdateAllServices () (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation#251fc689f36f/Core/Services/MixedRealityToolkit.cs:1074)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:LateUpdate () (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation#251fc689f36f/Core/Services/MixedRealityToolkit.cs:738)

IBM Text-To-Speech is not working in Unity [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I followed a tutorial to use text to speech with IBM Watson Assistant in Unity 2019.4.9f1. The problem is doesn't translated the text into speech, I did a few logging to see if it received the result from Assistant and it did but it's not turning into speech. I'm new to working with Unity and IBM Watson so I don't understand what's the problem. I tried looking up the error online but I can't find any solution to it. Any help would be greatly appreciated.
3 errors that show up in my console are these:
[09/10/2020 20:44:58][RESTConnector.ProcessRequestQueue()][ERROR] URL: https://api.eu-gb.text-to-speech.watson.cloud.ibm.com/v1/synthesize?voice=en-GB_KateVoice, ErrorCode: 400, Error: HTTP/1.1 400 Bad Request, Response: {
"error": "Input contains unmatched open SSML tags",
"code": 400,
"code_description": "Bad Request"
}
UnityEngine.Debug:LogError(Object)
IBM.Cloud.SDK.Debug.DebugReactor:ProcessLog(LogRecord) (at Assets/IBMSDKCore/Debug/DebugReactor.cs:60)
IBM.Cloud.SDK.LogSystem:ProcessLog(LogRecord) (at Assets/IBMSDKCore/Logging/Logger.cs:207)
IBM.Cloud.SDK.Log:Error(String, String, Object[]) (at Assets/IBMSDKCore/Logging/Logger.cs:280)
IBM.Cloud.SDK.Connection.d__33:MoveNext() (at Assets/IBMSDKCore/Connection/RESTConnector.cs:606)
IBM.Cloud.SDK.Utilities.Routine:MoveNext() (at Assets/IBMSDKCore/Utilities/Runnable.cs:131)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
[09/10/2020 20:44:58][Unity][CRITICAL] Unity Exception ArgumentNullException: Buffer cannot be null.
Parameter name: buffer : System.IO.MemoryStream..ctor (System.Byte[] buffer, System.Boolean writable) (at :0)
(wrapper remoting-invoke-with-check) System.IO.MemoryStream..ctor(byte[],bool)
IBM.Cloud.SDK.Utilities.WaveFile.ParseWAV (System.String clipName, System.Byte[] data) (at Assets/IBMSDKCore/Utilities/WaveFile.cs:115)
TextToSpeech+<>c__DisplayClass18_0.b__0 (IBM.Cloud.SDK.DetailedResponse`1[T] response, IBM.Cloud.SDK.IBMError error) (at Assets/Script/TextToSpeech.cs:218)
IBM.Watson.TextToSpeech.V1.TextToSpeechService.OnSynthesizeResponse (IBM.Cloud.SDK.Connection.RESTConnector+Request req, IBM.Cloud.SDK.Connection.RESTConnector+Response resp) (at Assets/Watson/Scripts/Services/TextToSpeech/V1/TextToSpeechService.cs:357)
IBM.Cloud.SDK.Connection.RESTConnector+d__33.MoveNext () (at Assets/IBMSDKCore/Connection/RESTConnector.cs:646)
IBM.Cloud.SDK.Utilities.Runnable+Routine.MoveNext () (at Assets/IBMSDKCore/Utilities/Runnable.cs:131)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at :0)
UnityEngine.Debug:LogError(Object)
IBM.Cloud.SDK.Debug.DebugReactor:ProcessLog(LogRecord) (at Assets/IBMSDKCore/Debug/DebugReactor.cs:60)
IBM.Cloud.SDK.LogSystem:ProcessLog(LogRecord) (at Assets/IBMSDKCore/Logging/Logger.cs:207)
IBM.Cloud.SDK.Log:Critical(String, String, Object[]) (at Assets/IBMSDKCore/Logging/Logger.cs:295)
IBM.Cloud.SDK.LogSystem:UnityLogCallback(String, String, LogType) (at Assets/IBMSDKCore/Logging/Logger.cs:168)
UnityEngine.Application:CallLogCallback(String, String, LogType, Boolean)
ArgumentNullException: Buffer cannot be null.
Parameter name: buffer
System.IO.MemoryStream..ctor (System.Byte[] buffer, System.Boolean writable) (at :0)
(wrapper remoting-invoke-with-check) System.IO.MemoryStream..ctor(byte[],bool)
IBM.Cloud.SDK.Utilities.WaveFile.ParseWAV (System.String clipName, System.Byte[] data) (at Assets/IBMSDKCore/Utilities/WaveFile.cs:115)
TextToSpeech+<>c__DisplayClass18_0.b__0 (IBM.Cloud.SDK.DetailedResponse`1[T] response, IBM.Cloud.SDK.IBMError error) (at Assets/Script/TextToSpeech.cs:218)
IBM.Watson.TextToSpeech.V1.TextToSpeechService.OnSynthesizeResponse (IBM.Cloud.SDK.Connection.RESTConnector+Request req, IBM.Cloud.SDK.Connection.RESTConnector+Response resp) (at Assets/Watson/Scripts/Services/TextToSpeech/V1/TextToSpeechService.cs:357)
IBM.Cloud.SDK.Connection.RESTConnector+d__33.MoveNext () (at Assets/IBMSDKCore/Connection/RESTConnector.cs:646)
IBM.Cloud.SDK.Utilities.Runnable+Routine.MoveNext () (at Assets/IBMSDKCore/Utilities/Runnable.cs:131)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at :0)
If you have fixed/ non changing lines you want to be translated into speech the best thing to do is to make them into an audio file and then import them into unity.
what you could also do is do the speech yourself and import it.
this is also helpful because then you can trigger the audio on a collision with other objects/points. for example in a tutorial level.
the other solution is to check your console i see 3 Errors and the rest just looks like warnings if you fix the errors the warnings will go away.
the first one looks like you have a bad request to the server, try another sml tag and check if it works.
the second and third one is the buffer, that should be configured in the code. so if you fix that you fix all the problems!

PrecompiledAssemblyException: Multiple precompiled assemblies with the same name UnityEditor

When I imported an asset to unity then I try to run the game this message appeared :
allowed per platform. Assembly paths: C:/Users/ELEMENT14/MyGameIdea/Library/PackageCache/com.unity.ads#2.0.8/Editor/UnityEditor.Advertisements.dll, Assets/2D Top Down Shooter/2D Top Down Shooter/Library/PackageCache/com.unity.ads#2.0.8/Editor/UnityEditor.Advertisements.dll
UnityEditor.Scripting.ScriptCompilation.EditorBuildRules.CreateTargetAssemblies (System.Collections.Generic.IEnumerable1[T] customScriptAssemblies, System.Collections.Generic.IEnumerable1[T] precompiledAssemblies) (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorBuildRules.cs:251)
UnityEditor.Scripting.ScriptCompilation.EditorCompilation.UpdateCustomTargetAssemblies () (at
C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilation.cs:636)
UnityEditor.Scripting.ScriptCompilation.EditorCompilation.SetAllCustomScriptAssemblyJsons (System.String[] paths) (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilation.cs:746)
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface.SetAllCustomScriptAssemblyJsons (System.String[] allAssemblyJsons) (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilationInterface.cs:217)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
My Unity version is 2018.4.11

Unity Watson SDK error on Speech to Text Example

I'm trying to run the newest Unity Watson SDK from GitHub. Whenever I try to play the example scene for speech to text, I get this error. I have the API key set and my region is US-Dallas, but I don't think it's related to the problem.
I'm building an app for Android that utilizes speech to text. I've tried looking this up for hours, but I can't find a solution. I've tried re-downloading the SDK but nothing changed.
[02/03/2019 00:54:42][Unity][CRITICAL] Unity Exception
ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length : System.String.Substring (System.Int32
startIndex, System.Int32 length) (at
<f2e6809acb14476a81f399aeb800f8f2>:0)
IBM.Watson.DeveloperCloud.Connection.RESTConnector.AddHeaders
(System.Collections.Generic.Dictionary`2[TKey,TValue] headers)
(at Assets/unity-sdk-
2.14.0/Scripts/Connection/RESTConnector.cs:380)
IBM.Watson.DeveloperCloud.Connection.RESTConnector+
<ProcessRequestQueue>c__Iterator0.MoveNext () (at Assets/unity-sdk-
2.14.0/Scripts/Connection/RESTConnector.cs:470)
IBM.Watson.DeveloperCloud.Utilities.Runnable+Routine.MoveNext ()
(at Assets/unity-sdk-2.14.0/Scripts/Utilities/Runnable.cs:131)
UnityEngine.SetupCoroutine.InvokeMoveNext
(System.Collections.IEnumerator enumerator, System.IntPtr
returnValueAddress)
(at
/Users/builduser/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)
UnityEngine.Debug:LogError(Object)
IBM.Watson.DeveloperCloud.Debug.DebugReactor:ProcessLog(LogRecord)
(at Assets/unity-sdk-2.14.0/Scripts/Debug/DebugReactor.cs:60)
IBM.Watson.DeveloperCloud.Logging.LogSystem:ProcessLog(LogRecord)
(at Assets/unity-sdk-2.14.0/Scripts/Logging/Logger.cs:206)
IBM.Watson.DeveloperCloud.Logging.Log:Critical(String, String,
Object[]) (at Assets/unity-sdk-2.14.0/Scripts/Logging/Logger.cs:294)
IBM.Watson.DeveloperCloud.Logging.LogSystem:UnityLogCallback(String,
String, LogType) (at Assets/unity-sdk-
2.14.0/Scripts/Logging/Logger.cs:167)
UnityEngine.Application:CallLogCallback(String, String, LogType,
Boolean)
I know the scene is supposed to output what it thinks I am saying, but nothing is happening. Any help would be appreciated!

Categories