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]WebsocketTest用例概率执行失败 #1857

Open
chexiongsheng opened this issue Oct 9, 2024 · 0 comments
Open

[Unity]WebsocketTest用例概率执行失败 #1857

chexiongsheng opened this issue Oct 9, 2024 · 0 comments

Comments

@chexiongsheng
Copy link
Collaborator

detail | 详细描述

应该是多线程导致的,不是什么大问题,先记着,后续看要不要改进。在github上只碰到一次,在v8下报的错误:

RangeError: Maximum call stack size exceeded
  Stack Trace:
     at Puerts.JsEnv.Tick() in /home/runner/work/puerts/puerts/unity/Assets/core/upm/Runtime/Src/Default/JsEnv.cs:line 743
   at Puerts.UnitTest.WebsocketTest.<>c__DisplayClass0_0.<SmokeTest>b__0() in /home/runner/work/puerts/puerts/unity/test/Src/Cases/WebsocketTest.cs:line 91
   at Puerts.UnitTest.WebsocketTest.SmokeTest() in /home/runner/work/puerts/puerts/unity/test/Src/Cases/WebsocketTest.cs:line 115
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant