init中用了SynchronizationContext.SetSynchronizationContext(ThreadSynchronizationContext.Instance)
(注释之后不会报错)
后。
执行到这里的时候会报错
System.StackOverflowException: The requested operation caused a stack
overflow.
at (wrapper managed-to-native)
System.Object. icall wrapper ves icall object new specific(intptr)
at ET.ThreadSynchronizationContext.Post
(System.Threading.SendOrPostCallback callback, System.Object state)
[0×000001in F:\et6\ET-
release6.0\UnityAssets\MonolCorelThreadSynchronizationContext.cs:0
at
System.Runtime.CompilerServices.YieldAwaitable+YieldAwaiter.QueueContinua
tion (System.Action continuation, System.Boolean flowContext)[0×0002e] in
<695d1cc93cca45069c528c15c9fdd749>:0
at
System.Runtime.CompilerServices.YieldAwaitable+YieldAwaiterUnsafeOnComp
eted(System.Action continuation)[0×00000]in
<695d1cc93cca45069c528c15c9fdd749>:0
at
System.Runtime.CompilerServices.AsyncVoidMethodBuilder.AwaitUnsafeOnCo
mpletedTAwaiterTStateMachine] (TAwaiter& awaiter, TStateMachine&
stateMachine)[0×0007ain<695d1cc93cca45069c528c15c9fdd749>:0
at
Kinetix,Intemal.OperationBatch’2+<MirrorTaskCompletionSource>d 6TConfi
g,TResponse].MoveNext()[0×000241in F:\et6\ET-
release6.0\UnityLibraryPackageCachelcom.kinetix,coreweb2@e0833f254a\Ru
ntimelOperationslOperationSystemlOperationBatch.cs:64
我应该怎么解决呢