microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
67k stars 3.68k forks source link

[internal] Chromium Windows stress tests are failing #32811

Closed mxschmitt closed 1 month ago

mxschmitt commented 1 month ago

Stacktrace

  pw:browser <launched> pid=22876 +5s
  pw:browser [pid=22876][err] Old Headless mode will be removed from the Chrome binary soon. Please use the new Headless mode (https://developer.chrome.com/docs/chromium/new-headless) or the chrome-headless-shell which is a standalone implementation of the old Headless mode (https://developer.chrome.com/blog/chrome-headless-shell). +2s
  pw:browser [pid=22876][err]  +0ms                                                                                                        
[chromium] › contexts.spec.ts:20:7 › cycle contexts 137
  pw:browser [pid=22876][err] [0925/223421.065:FATAL:thread_restrictions.cc(54)] Check failed: !tls_blocking_disallowed. Function marked as blocking was called from a scope that disallows blocking! If this task is running inside the ThreadPool, it needs to have MayBlock() in its TaskTraits. Otherwise, consider making this blocking work asynchronous or, as a last resort, you may use ScopedAllowBlocking (see its documentation for best practices). +45s
  pw:browser [pid=22876][err] tls_blocking_disallowed 1 +0ms                                                                               
  pw:browser [pid=22876][err]   IsSandboxedProcess [0x00007FFEE9DADDC5+2547781] +0ms                                                       
  pw:browser [pid=22876][err]   IsSandboxedProcess [0x00007FFEEB415F80+26042880] +1ms                                                      
  pw:browser [pid=22876][err]   IsSandboxedProcess [0x00007FFEE9E311BF+3085375] +0ms                                                       
  pw:browser [pid=22876][err]   IsSandboxedProcess [0x00007FFEE9E31088+3085064] +0ms                                                       
  pw:browser [pid=22876][err]   IsSandboxedProcess [0x00007FFEE9E4AEA8+3191080] +0ms                                                       
  pw:browser [pid=22876][err]   IsSandboxedProcess [0x00007FFEE9E4AC5C+3190492] +0ms                                                       
  pw:browser [pid=22876][err]   IsSandboxedProcess [0x00007FFEE9DC84F5+2656117] +0ms                                                       
  pw:browser [pid=22876][err]   IsSandboxedProcess [0x00007FFEE9DCD1EB+2675819] +0ms                                                       
  pw:browser [pid=22876][err]   IsSandboxedProcess [0x00007FFEE9D9CA18+2477208] +0ms                                                       
  pw:browser [pid=22876][err]   IsSandboxedProcess [0x00007FFEE9D8D09D+2413341] +0ms                                                       
  pw:browser [pid=22876][err]   IsSandboxedProcess [0x00007FFEE9D8CE36+2412726] +0ms                                                       
  pw:browser [pid=22876][err]   IsSandboxedProcess [0x00007FFEEABB2A5B+17247451] +0ms                                                      
  pw:browser [pid=22876][err]   IsSandboxedProcess [0x00007FFEEABB0F97+17240599] +0ms                                                      
  pw:browser [pid=22876][err]   CrashForExceptionInNonABICompliantCodeRange [0x00007FFEE7501B0F+8857567] +0ms                              
  pw:browser [pid=22876][err]   IsSandboxedProcess [0x00007FFEE9DDD9EE+2743406] +0ms                                                       
  pw:browser [pid=22876][err]   GetHandleVerifier [0x00007FFEEB7D04BB+145019] +0ms                                                         
  pw:browser [pid=22876][err]   GetHandleVerifier [0x00007FFEEB7CFE34+143348] +0ms                                                         
  pw:browser [pid=22876][err]   IsSandboxedProcess [0x00007FFEE9D9D950+2481104] +0ms                                                       
  pw:browser [pid=22876][err]   IsSandboxedProcess [0x00007FFEE9D9CFE3+2478691] +0ms                                                       
  pw:browser [pid=22876][err]   GetHandleVerifier [0x00007FFEEB7D0DB4+147316] +0ms                                                         
  pw:browser [pid=22876][err]   IsSandboxedProcess [0x00007FFEE9E0073B+2886075] +1ms                                                       
  pw:browser [pid=22876][err]   CrashForExceptionInNonABICompliantCodeRange [0x00007FFEE7629918+10069480] +0ms                             
  pw:browser [pid=22876][err]   CrashForExceptionInNonABICompliantCodeRange [0x00007FFEE762BA71+10078017] +0ms                             
  pw:browser [pid=22876][err]   IsSandboxedProcess [0x00007FFEEB3E06C5+25823557] +0ms                                                      
  pw:browser [pid=22876][err]   CrashForExceptionInNonABICompliantCodeRange [0x00007FFEE941E593+41480803] +0ms                             
  pw:browser [pid=22876][err]   CrashForExceptionInNonABICompliantCodeRange [0x00007FFEE941F9B9+41485961] +0ms                             
  pw:browser [pid=22876][err]   CrashForExceptionInNonABICompliantCodeRange [0x00007FFEE941F6FC+41485260] +0ms                             
  pw:browser [pid=22876][err]   CrashForExceptionInNonABICompliantCodeRange [0x00007FFEE941A712+41464802] +0ms                             
  pw:browser [pid=22876][err]   CrashForExceptionInNonABICompliantCodeRange [0x00007FFEE941AB58+41465896] +0ms                             
  pw:browser [pid=22876][err]   CrashForExceptionInNonABICompliantCodeRange [0x00007FFEE9B3F015+48954597] +0ms                             
  pw:browser [pid=22876][err]   ChromeMain [0x00007FFEE49515A0+1392] +0ms                                                                  
  pw:browser [pid=22876][err]   GetPakFileHashes [0x00007FF6F6142357+4951] +0ms                                                            
  pw:browser [pid=22876][err]   GetPakFileHashes [0x00007FF6F61416FB+1787] +0ms                                                            
  pw:browser [pid=22876][err]   GetHandleVerifier [0x00007FF6F62DCBC2+1155714] +0ms                                                        
  pw:browser [pid=22876][err]   BaseThreadInitThunk [0x00007FFFAD87DBE7+23] +0ms                                                           
  pw:browser [pid=22876][err]   RtlUserThreadStart [0x00007FFFAE7A5A6C+44] +0ms                                                            
  pw:browser [pid=22876][err] Task trace: +0ms                                                                                             
  pw:browser [pid=22876][err]   CrashForExceptionInNonABICompliantCodeRange [0x00007FFEE7501294+8855396] +0ms                              
  pw:browser [pid=22876][err]  +0ms                                                                                                        
  pw:browser [pid=22876] <process did exit: exitCode=2147483651, signal=null> +207ms
  pw:browser [pid=22876] starting temporary directories cleanup +0ms   

RANGE: https://chromium.googlesource.com/chromium/src/+log/222f33344315e852d69ea6bbd0a015263f65ac03..f995d3596b3413eeaa91d14fa7dfccb65f6ecd5e

My guess is: https://chromium.googlesource.com/chromium/src/+/a791025efece7e9bc0cb9f0b1ef706bff2f8d4a5

Good:

 "name": "chromium",
  "revision": "1135",
  "installByDefault": true,
  "browserVersion": "129.0.6668.42"
  #      CURRENT_VERSION: 129.0.6668.42
  # BRANCH_BASE_POSITION: 1343869
  BRANCH_COMMIT="7f36635b56905905db2b0330a078898a0780d358"

Bad:

  "name": "chromium",
  "revision": "1136",
  "installByDefault": true,
  "browserVersion": "130.0.6723.6"
  #      CURRENT_VERSION: 130.0.6723.6
  # BRANCH_BASE_POSITION: 1356013
  BRANCH_COMMIT="6f66c7a8f598b00db85445f0fdaabb2d2caaf6b4"

Since https://github.com/microsoft/playwright/pull/32707 and https://github.com/microsoft/playwright-browsers/commit/e553ee74ae5b886a0808fdeeaceef68e4a9f950c

mxschmitt commented 1 month ago

Upstream bug https://issues.chromium.org/u/1/issues/368388543

mxschmitt commented 1 month ago

This has been fixed since https://github.com/microsoft/playwright/pull/32906.