-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chrome and Firefox goes in crash with Prebid.js with IAB CMP #8360
Comments
… infinite loop In some situations userID submodules can throw exceptions (prebid#8360) which then, after prebid#8201, causes the ID system to get stuck in an infinite loop.
You probably discovered #7707 . Do you have index exchange (ix) as a bidder? The fix is easy: upgrade Prebid 🤗 |
@muuki88 We are using the latest Prebid version. So it's not the bug you have linked to me. @dgirardi Yes, if you need you can follow my steps to reproduce CMP error. I have also recorded a video: https://drive.google.com/file/d/1MyMwgTS35eN1p1YfU8fifN6htRX1h6U5/view?usp=sharing |
@salvoaranzulla the video was very helpful, thank you - bug reports are one of those things that get no comments when they're well done :) |
… infinite loop (prebid#8362) In some situations userID submodules can throw exceptions (prebid#8360) which then, after prebid#8201, causes the ID system to get stuck in an infinite loop.
@dgirardi I have updated my examples with latest version of Prebid.js. I keep seeing the error: VM193:1 Uncaught (in promise) SyntaxError: Unexpected end of JSON input The browser is not crashing anymore. Is that the expected behaviour of your bugfix? |
@dgirardi With that error, the bidding is not starting. So no calls are made by Prebid.js when I see that error in JS console. The problem seems to be generated by ID5 module. |
@dgirardi I have found the problem. The problem is generated by this line code in ID5 module: The module tries to interpret the cookie pbjs-id5id as JSON but that cookie contains just a white space (which is a not a JSON): I think that the problem is in this function: Prebid.js/modules/id5IdSystem.js Line 252 in bcfb127
Because that, Prebid crashes and bidding is not starting. Before your fix in the latest version, also the browser crashes. |
@smenzer fyi |
@salvoaranzulla would you be able to verify #8401 ? The error you see is, as far as I can tell, due to your repro steps forcing an invalid cookie for ID5 (First set date A, which causes Prebid to try to expire the cookie with it; then roll the date back, so that Prebid sees that cookie as no longer expired - but its contents are not valid). To me that seems unlikely to happen in practice - did you run into it in production? |
we're on it...will post a PR shortly. |
@smenzer could you review 8401 |
you guys beat me too it! the PR looks good, thanks |
Type of issue
Chrome and Firefox goes in crash with Prebid.js with IAB CMP while reading the consent.
Description
Chrome and Firefox goes in crash with Prebid.js when IAB CMP invalidates old consent.
Steps to reproduce
Close browser and open the browser in incognito mode https://www.aranzulla.it/DEBUG-iubenda-articolo.html?forceDate=2022-01-01&debug=true. Press "X" button on the right top.
Open https://www.aranzulla.it/DEBUG-iubenda-articolo.html?forceDate=2022-12-01&debug=true e do not nothing.
Refresh the page. On JS console, you will see a Prebid.js error:
Uncaught (in promise) SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at prebid6.21.1.js:10:1222
at Array.forEach ()
at Object.getId (prebid6.21.1.js:10:1177)
at ee (prebid6.21.1.js:18:11998)
at prebid6.21.1.js:18:12774
at Array.reduce ()
at ne (prebid6.21.1.js:18:12745)
at prebid6.21.1.js:18:7832
at prebid6.21.1.js:18:7729
I have recorded a video: https://drive.google.com/file/d/1MyMwgTS35eN1p1YfU8fifN6htRX1h6U5/view?usp=sharing
Test page
I have recorded a video: https://drive.google.com/file/d/1MyMwgTS35eN1p1YfU8fifN6htRX1h6U5/view?usp=sharing
Expected results
No browser crashes.
Actual results
Browser crashes.
Platform details
Chrome / FF
Prebid.js 6.21.1
Other information
The text was updated successfully, but these errors were encountered: