Skip to content

WebBrowser doesn't like multiple UI threads - #3423

Merged
RussKie merged 1 commit into
dotnet:masterfrom
weltkante:issue3358
Jun 11, 2020
Merged

RussKie merged 1 commit into
dotnet:masterfrom
weltkante:issue3358

Conversation

@weltkante

Copy link
Copy Markdown
Contributor

Workaround for #3358

Proposed changes

Prevent running WebBrowser control tests on multiple UI threads in parallel as that seems to cause memory corruption (unknown whether root cause is in WinForms or native control)

Customer Impact

no random crashes due to memory corruption in unit tests, should improve CI sucess rates

Regression?

no

Risk

may slow down tests a bit

Before

random CI crashes or test failures that made no sense due to memory corruption

After

prevent memory corruption, allowing CI runs to perform normally

Test methodology

isolated repro scenario into a separate application, it doesn't seem to cause memory corruption when only one UI thread is running the WebBrowser control

@weltkante
weltkante requested a review from a team as a code owner June 10, 2020 18:51
@marklio

marklio commented Jun 10, 2020

Copy link
Copy Markdown

I want to make sure this is considered a workaround to unblock testing rather than a solution to what may be a product reliability issue.

@RussKie

RussKie commented Jun 11, 2020

Copy link
Copy Markdown
Contributor

/azp run

@RussKie RussKie closed this Jun 11, 2020
@ghost ghost assigned weltkante Jun 11, 2020
@RussKie RussKie reopened this Jun 11, 2020
@RussKie

RussKie commented Jun 11, 2020

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@RussKie

RussKie commented Jun 11, 2020

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@RussKie
RussKie merged commit 740c52f into dotnet:master Jun 11, 2020
@ghost ghost added this to the 5.0 Preview7 milestone Jun 11, 2020
@weltkante
weltkante deleted the issue3358 branch June 11, 2020 12:47
@ghost ghost locked as resolved and limited conversation to collaborators Jan 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants