Skip to content

WebBrowser doesn't like multiple UI threads - #3429

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

RussKie merged 1 commit into
dotnet:masterfrom
weltkante:issue3358

Conversation

@weltkante

@weltkante weltkante commented Jun 11, 2020 •

Copy link
Copy Markdown
Contributor

Workaround for #3358

(Extended version of PR #3423)

Like mentioned on the other PR this is only a workaround and not a final solution, further investigation to the memory corruption issues are desired. There is also the possibility of another memory corruption source we did not pinpoint yet.

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

Microsoft Reviewers: Open in CodeFlow

@weltkante
weltkante requested a review from a team as a code owner June 11, 2020 12:55
@ghost ghost assigned weltkante Jun 11, 2020
@RussKie
RussKie merged commit ae091e1 into dotnet:master Jun 12, 2020
@ghost ghost added this to the 5.0 Preview7 milestone Jun 12, 2020
@weltkante
weltkante deleted the issue3358 branch June 19, 2020 22:46
@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.

2 participants