Hello,
For some reason, in Revit, I can’t create a proper stream sender with the Speckle plugin. I login to Hestia server then I try to create a sender (I tried all options for adding objects: by selection, category and view) and it creates the sender but for some reason the stream is not working in Unity. First I want to note that I’m getting an error sometimes (so I don’t get it every time) in Revit with the following message:
"A serious error occured. The current action has been canceled. It is strongly reccommended that you save your work in a new file before continuing… "
The strange part is that, despite this error message, the stream is created on the Hestia server… But when I try to stream any of these streams (created with or without the error message) from Hestia to Unity, I’m logged in successfully and when it tried to stream the data the following error is shown:
NullReferenceException: Object reference not set to an instance of an object
SpeckleUnity.SpeckleUnityReceiver.SetScaleFactorAccordingToStream () (at Assets/SpeckleUnity/Assets/SpeckleUnity/Runtime/Scripts/Clients/SpeckleUnityReceiver.cs:493)
SpeckleUnity.SpeckleUnityReceiver+<UpdateGlobal>d__17.MoveNext () (at Assets/SpeckleUnity/Assets/SpeckleUnity/Runtime/Scripts/Clients/SpeckleUnityReceiver.cs:235)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <9577ac7a62ef43179789031239ba8798>:0)
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Runtime.CompilerServices.TaskAwaiter.GetResult () (at <9577ac7a62ef43179789031239ba8798>:0)
SpeckleUnity.SpeckleUnityReceiver+<InitializeClient>d__14.MoveNext () (at Assets/SpeckleUnity/Assets/SpeckleUnity/Runtime/Scripts/Clients/SpeckleUnityReceiver.cs:146)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <9577ac7a62ef43179789031239ba8798>:0)
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Runtime.CompilerServices.TaskAwaiter.GetResult () (at <9577ac7a62ef43179789031239ba8798>:0)
SpeckleUnity.SpeckleUnityManager+<AddReceiverAsync>d__31.MoveNext () (at Assets/SpeckleUnity/Assets/SpeckleUnity/Runtime/Scripts/SpeckleUnityManager.cs:371)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <9577ac7a62ef43179789031239ba8798>:0)
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Runtime.CompilerServices.TaskAwaiter.GetResult () (at <9577ac7a62ef43179789031239ba8798>:0)
SpeckleUnity.SpeckleUnityManager+<LoginAsync>d__25.MoveNext () (at Assets/SpeckleUnity/Assets/SpeckleUnity/Runtime/Scripts/SpeckleUnityManager.cs:228)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <9577ac7a62ef43179789031239ba8798>:0)
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Runtime.CompilerServices.TaskAwaiter.GetResult () (at <9577ac7a62ef43179789031239ba8798>:0)
SpeckleUnity.SpeckleUnityManager+<LoadSpeckleProject>d__22.MoveNext () (at Assets/SpeckleUnity/Assets/SpeckleUnity/Runtime/Scripts/SpeckleUnityManager.cs:145)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <9577ac7a62ef43179789031239ba8798>:0)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state) (at <9577ac7a62ef43179789031239ba8798>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at <04258d1cdc1044248c2a17a6a31a3cf7>:0)
UnityEngine.UnitySynchronizationContext:ExecuteTasks()
I would like to note that I’m able to stream an older data from Speckle (created 2 months ago) to Unity, I’m just unable to get it work with the latest streams. Any thoughts?