I noticed some strange things happening when I assign input text:
If I use ASCII, text assignment is fine.
When I use Unicode, sometimes I’ll get a crazy System.AggregateException:
newInput.text = decodedName + decodedMsg;
System.AggregateException: One or more errors occurred. ---> Mono.Debugger.Soft.InvocationException: Exception of type 'Mono.Debugger.Soft.InvocationException' was thrown.
at Mono.Debugger.Soft.ObjectMirror.EndInvokeMethodInternalWithResult(IAsyncResult asyncResult)
at SyntaxTree.VisualStudio.Unity.Debugger.ValueExtensions.<>c__DisplayClass6_0.<InvokeAsync>b__1(ObjectMirror o)
at SyntaxTree.VisualStudio.Unity.Debugger.ValueExtensions.Dispatch[TRet](Value value, Func`2 onObject, Func`2 onStruct, Func`2 onPrimitive)
at SyntaxTree.VisualStudio.Unity.Debugger.ValueExtensions.<>c__DisplayClass6_0.<InvokeAsync>b__0()
at SyntaxTree.VisualStudio.Unity.Debugger.UnityThread.<>c__DisplayClass15_0`1.<Execute>b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at SyntaxTree.VisualStudio.Unity.Debugger.Evaluation.ExpressionEvaluator.VisitAssignmentExpression(AssignmentExpressionSyntax node)
at Microsoft.CodeAnalysis.CSharp.Syntax.AssignmentExpressionSyntax.Accept(CSharpSyntaxVisitor visitor)
at SyntaxTree.VisualStudio.Unity.Debugger.Evaluation.ExpressionEvaluator.VisitExpressionStatement(ExpressionStatementSyntax node)
at Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionStatementSyntax.Accept(CSharpSyntaxVisitor visitor)
at SyntaxTree.VisualStudio.Unity.Debugger.UnityExpression.<>c__DisplayClass9_0.<EvaluateAsync>b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
---> (Inner Exception #0) Mono.Debugger.Soft.InvocationException: Exception of type 'Mono.Debugger.Soft.InvocationException' was thrown.
at Mono.Debugger.Soft.ObjectMirror.EndInvokeMethodInternalWithResult(IAsyncResult asyncResult)
at SyntaxTree.VisualStudio.Unity.Debugger.ValueExtensions.<>c__DisplayClass6_0.<InvokeAsync>b__1(ObjectMirror o)
at SyntaxTree.VisualStudio.Unity.Debugger.ValueExtensions.Dispatch[TRet](Value value, Func`2 onObject, Func`2 onStruct, Func`2 onPrimitive)
at SyntaxTree.VisualStudio.Unity.Debugger.ValueExtensions.<>c__DisplayClass6_0.<InvokeAsync>b__0()
at SyntaxTree.VisualStudio.Unity.Debugger.UnityThread.<>c__DisplayClass15_0`1.<Execute>b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()<---
If I run the exact snippet again after that error, it works fine!
This specific phrase repros every time - I’ll minimize it to a repro if this giant error above offers no hints, but I’d prefer not to - I’ve spent wayy too much time making TMPro repros