Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Adblock/Cosmetic filters crash #6254

Closed
iccub opened this issue Oct 26, 2022 · 6 comments · Fixed by brave/brave-core#17150, #6936 or #7148
Closed

Adblock/Cosmetic filters crash #6254

iccub opened this issue Oct 26, 2022 · 6 comments · Fixed by brave/brave-core#17150, #6936 or #7148

Comments

@iccub
Copy link
Contributor

iccub commented Oct 26, 2022

Description:

Steps to Reproduce

No way to reproduce found so far.

Actual result:
Crash

Expected result:

Reproduces how often: [Easily reproduced, Intermittent Issue]

Brave Version:

Device details:

Website problems only:

  • did you check with Brave Shields down?
  • did you check in Safari/Firefox (WkWebView-based browsers)?

Additional Information

@iccub
Copy link
Contributor Author

iccub commented Jan 26, 2023

to retest

@antonok-edm
Copy link
Collaborator

This is due to unsafe access of the adblock engine on multiple threads.

Context - https://bravesoftware.slack.com/archives/C7VLGSR55/p1676043650091859

@iccub iccub reopened this Feb 10, 2023
@iccub iccub removed this from the 1.48 milestone Feb 10, 2023
@cuba
Copy link
Contributor

cuba commented Feb 12, 2023

My latest changes here moves all access to the engine to a serial queue: #6857. Meaning we will not be using multiple threads anymore after this change. I did performance and script injection tests and everything works well.

@kjozwiak
Copy link
Member

@iccub @kylehickinson moved this into 1.48 as brave/brave-core#17283 was uplifted into 1.48. Once we get new TF builds with the above changes, we can close this off. CCing @Uni-verse please keep an eye on performance in general when using the next RC with the above and when running through the above verification.

kylehickinson added a commit that referenced this issue Mar 17, 2023
iccub pushed a commit that referenced this issue Mar 20, 2023
…tic filters" (#7107)

Revert "Fix #6254: Fix engine crashes by using serial queue for cosmetic filters (#6936)"

This reverts commit ed8cc34.
@cuba cuba reopened this Mar 25, 2023
@cuba
Copy link
Contributor

cuba commented Mar 25, 2023

Re-opened because it was reverted

@iccub iccub modified the milestones: 1.48, 1.50 Mar 31, 2023
iccub added a commit that referenced this issue Apr 1, 2023
Brandon-T pushed a commit that referenced this issue Apr 11, 2023
arthuredelstein pushed a commit to brave/brave-core that referenced this issue Feb 13, 2024
arthuredelstein pushed a commit to brave/brave-core that referenced this issue Feb 13, 2024
…queue for cosmetic filters" (brave/brave-ios#7107)

Revert "Fix brave/brave-ios#6254: Fix engine crashes by using serial queue for cosmetic filters (brave/brave-ios#6936)"

This reverts commit ed8cc34.
arthuredelstein pushed a commit to brave/brave-core that referenced this issue Feb 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.