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

[browser][MT] RandomTests.Shared_ParallelUsage #91538

Closed
ilonatommy opened this issue Sep 4, 2023 · 3 comments · Fixed by #97769
Closed

[browser][MT] RandomTests.Shared_ParallelUsage #91538

ilonatommy opened this issue Sep 4, 2023 · 3 comments · Fixed by #97769
Assignees
Labels
arch-wasm WebAssembly architecture area-VM-threading-mono disabled-test The test is disabled in source code against the issue os-browser Browser variant of arch-wasm
Milestone

Comments

@ilonatommy
Copy link
Member

ilonatommy commented Sep 4, 2023

Failing after enabling all MT library tests (#91536).

  • Shared_ParallelUsage
  [ERROR] FATAL UNHANDLED EXCEPTION: System.Threading.ThreadStartException: Thread failed to start.
    ---> System.ExecutionEngineException: mono_thread_platform_create_thread() failed
    --- End of inner exception stack trace ---
    at System.Threading.Thread.ThrowThreadStartException(Exception ex)
    at System.Threading.Thread.StartCore()
    at System.Threading.Thread.Start(Boolean captureContext, Boolean internalThread)
    at System.Threading.Thread.UnsafeStart()
    at System.Threading.WebWorkerEventLoop.StartExitable(Thread thread, Boolean captureContext)
    at System.Threading.PortableThreadPool.WorkerThread.CreateWorkerThread()
    at System.Threading.PortableThreadPool.WorkerThread.MaybeAddWorkingWorker(PortableThreadPool threadPoolInstance)
    at System.Threading.PortableThreadPool.AdjustMaxWorkersActive()
    at System.Threading.PortableThreadPool.NotifyWorkItemProgress(Object threadLocalCompletionCountObject, Int32 currentTimeMs)
    at System.Threading.PortableThreadPool.NotifyWorkItemComplete(Object threadLocalCompletionCountObject, Int32 currentTimeMs)
    at System.Threading.ThreadPoolWorkQueue.Dispatch()
    at System.Threading.PortableThreadPool.WorkerThread.WorkLoopSemaphoreSuccess(LowLevelLifoAsyncWaitSemaphore semaphore, Object stateObject)
    at System.Threading.LowLevelLifoAsyncWaitSemaphore.InternalAsyncWaitSuccess(LowLevelLifoAsyncWaitSemaphore self, WaitEntry internalWaitEntry)
    at System.Threading.LowLevelLifoAsyncWaitSemaphore.SuccessCallback(IntPtr lifoSemaphore, IntPtr userData)

Test got blocked.

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Sep 4, 2023
@ghost
Copy link

ghost commented Sep 4, 2023

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Failing after enabling all MT library tests (#91536).

  [ERROR] FATAL UNHANDLED EXCEPTION: System.Threading.ThreadStartException: Thread failed to start.
    ---> System.ExecutionEngineException: mono_thread_platform_create_thread() failed
    --- End of inner exception stack trace ---
    at System.Threading.Thread.ThrowThreadStartException(Exception ex)
    at System.Threading.Thread.StartCore()
    at System.Threading.Thread.Start(Boolean captureContext, Boolean internalThread)
    at System.Threading.Thread.UnsafeStart()
    at System.Threading.WebWorkerEventLoop.StartExitable(Thread thread, Boolean captureContext)
    at System.Threading.PortableThreadPool.WorkerThread.CreateWorkerThread()
    at System.Threading.PortableThreadPool.WorkerThread.MaybeAddWorkingWorker(PortableThreadPool threadPoolInstance)
    at System.Threading.PortableThreadPool.AdjustMaxWorkersActive()
    at System.Threading.PortableThreadPool.NotifyWorkItemProgress(Object threadLocalCompletionCountObject, Int32 currentTimeMs)
    at System.Threading.PortableThreadPool.NotifyWorkItemComplete(Object threadLocalCompletionCountObject, Int32 currentTimeMs)
    at System.Threading.ThreadPoolWorkQueue.Dispatch()
    at System.Threading.PortableThreadPool.WorkerThread.WorkLoopSemaphoreSuccess(LowLevelLifoAsyncWaitSemaphore semaphore, Object stateObject)
    at System.Threading.LowLevelLifoAsyncWaitSemaphore.InternalAsyncWaitSuccess(LowLevelLifoAsyncWaitSemaphore self, WaitEntry internalWaitEntry)
    at System.Threading.LowLevelLifoAsyncWaitSemaphore.SuccessCallback(IntPtr lifoSemaphore, IntPtr userData)

Test got blocked.

Author: ilonatommy
Assignees: -
Labels:

arch-wasm, area-Build-mono, area-VM-threading-mono

Milestone: -

@ilonatommy ilonatommy changed the title [MT][browser] System.Transactions.Tests.AsyncTransactionScopeTests error: Thread failed to start [MT][browser] System.Transactions.Tests error: Thread failed to start Sep 4, 2023
@ilonatommy ilonatommy changed the title [MT][browser] System.Transactions.Tests error: Thread failed to start [MT][browser] System.Transactions, System.Threading error: Thread failed to start Sep 4, 2023
@radical radical added this to the 9.0.0 milestone Sep 5, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Sep 5, 2023
@pavelsavara pavelsavara changed the title [MT][browser] System.Transactions, System.Threading error: Thread failed to start [MT][browser] unit test run out of thread when default thread pool is too small Oct 26, 2023
@pavelsavara pavelsavara self-assigned this Oct 26, 2023
@pavelsavara pavelsavara added the os-browser Browser variant of arch-wasm label Oct 26, 2023
@pavelsavara

This comment was marked as resolved.

@pavelsavara pavelsavara changed the title [MT][browser] unit test run out of thread when default thread pool is too small [browser][MT] RandomTests.Shared_ParallelUsage Jan 26, 2024
@pavelsavara pavelsavara added the disabled-test The test is disabled in source code against the issue label Jan 26, 2024
@ilonatommy ilonatommy assigned ilonatommy and unassigned pavelsavara Jan 31, 2024
@ilonatommy
Copy link
Member Author

DoTxNewThread, RunBarrierTest8_PostPhaseException, InterlockedAddAndRead_Multithreaded_Int64, Microsoft.Extensions.DependencyInjection.Tests are not blocked anymore.
Shared_ParallelUsage - trying to reproduce failure locally, so far with no success

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jan 31, 2024
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Feb 1, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-VM-threading-mono disabled-test The test is disabled in source code against the issue os-browser Browser variant of arch-wasm
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants