-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
amp-list: [src] changes don't properly dispose old bindings #12517
Comments
L530 checks that the bindings found so far ( Abstractly this means that on any AMP page, you can only have 2000 bindings e.g. |
I have changed my code design and I don't get this error anymore. |
Glad to hear that you found a solution!
Interesting. This shouldn't happen if the array itself didn't change (with some limits).
It shouldn't erase values of other variables since |
@leonalicious Is this still an issue or can it be closed? |
hey William, actually we are still facing maximum 2000 bindings issue, please give me some time and I will be writing a demo for this. you may also close this if you want. |
Hi William, is it any By looking at the screenshot I attached in this issue, I suspect whenever |
That's correct, but the bindings in previously rendered elements will be removed. "Total number of bindings" should exactly equal the number of |
Currently there are 2 The first gif is 30 seconds which shows how to reproduce the error, basically, what i did was to click between two categories
This is weird, because based on our understanding, the previous bindings should be removed, that's why I am only clicking between two categories And the gif below shows how the error appears. Any ideas ? @choumx |
A demo page has been set up at https://randomtestapp-a5a6f.firebaseapp.com/amp-binding-limit-exceeds-issue.html. |
Thanks for sharing that example. This is definitely a bug and can be fixed. |
Stumbled on a couple more bugs. 😄
|
@leonalicious Verified this is fixed on version 1515455265699. |
@choumx |
I can't repro the bug with that example. @leonalicious What version of AMP are you running? I can't find the RTV in the GIF ending with "6756". |
I am using |
Fired up a demo at https://0f4218e2.ngrok.io/index.html |
@choumx would you have an update on the bug here, based on the demo at https://0f4218e2.ngrok.io/index.html ? |
Looks like there's still a lingering race condition trigger for this bug. Also your tunnel is down:
|
This is a high priority issue but it hasn't been updated in awhile. @choumx Do you have any updates? |
Planning to tackle this in the sprint after AMP Conf. |
I am currently facing a Maximum number of bindings reached (2000). Additional elements with bindings will be ignored issue.
based on my research, at [bind-impl.js#L532]
(https://github.com/ampproject/amphtml/blob/master/extensions/amp-bind/0.1/bind-impl.js#L532) will change the limitExceeded from false to true,
and this causes me an error which is = 106 + 1 > 106 when i am trying to select countries on my 4th or 5th times.
can you please elaborate more on the L530, what is this IF statement checking
bindings.length + boundProperties.length > limit
does ? I am also curious how does this IF check is relevant to 2000 bindings numbers.Appreciate more sharing from you. Thanks in advanced.
@choumx
The text was updated successfully, but these errors were encountered: