Closed fr4gles closed 2 years ago
Are you still able to reproduce this? We run this code a few thousand times per CI run, and never received this exception.
Because of random nature of this exception I'm not able to prepare minimal repro code for this. But it still happens time to time. As our observations shows, it happens mainly on long running app - when code (like mentioned snipped) was run many times on long lived app.
It looks like some problem related to thread race, even we are not mixing instance usage on different threads.
Closing as part of the triage process and we don't have a repro for it. Feel free to open a new issue if you have a repro, thanks!
Message: TestCleanup method XXX.XXX.BrowserTearDown threw exception. System.NullReferenceException: System.NullReferenceException: Object reference not set an instance of an object..... Stack Trace: PLaywrightTest.get TestOK() Line 127 BrowserTest.BrowserTearDonw()
Playwright version
1.15.2
Operating system
Windows
What browsers are you seeing the problem on?
Chromium
Other information
What happened? / Describe the bug
Invoking
await browser.NewContextAsync()
rarely producesNullReferenceException
.It randomly happens on simplified flow:
Stacktrace:
Code snippet to reproduce your bug
Relevant log output
No response