-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[3.2.0-beta.2] Operand over 16-bits. Got 65536 #16532
Comments
@nullrocket I’m experiencing this same issue. Could you kindly explain how you integrated the fix for #16503 into your project? I’d like to start digging into this but I’m not sure how to get a local version on the VM connected to my project. |
Edited After reading @willviles comment in #16503 I went back and simplified my reproduction some more, it doesn't take a {{component}} or {{each}} to reproduce as I initially thought. I removed the each and just pasted in a large number of components to simulate the number being rendered in the each I had previously set up. The reproduction transitions between two routes with this template in each route, after some number of transitions it will throw the error. Currently it throws the error I'm experiencing in this issue but if you switch ember-source to 3.1.0 you can duplicate the error for #16503 {{my-component text=item}}
{{my-component text=item}}
... about 600 more
https://github.com/nullrocket/glimmer-crash |
@nullrocket thanks I found the caching issue with this, while the template and its handle is cached properly after the routes are first visited, the definition is given a new handle every lookup. |
It is worse, that issue only affects dynamic lookup via component helper, your reproduction is something else, I assumed that every compilable template stayed in a compiled state because all of them do but WrappedBuilder which handles components with a tagName in Ember. Meaning that every invoke of a component with a tag is regenerating all the opcodes, which is why you are hitting this limit. |
#16557 bumped glimmer-vm to include a related fix, whcih was cherry-picked to beta in 9a88250 and to release in 1e55a63 (though release branch is actually on glimmer-vm v0.32.6). Builds should be published for all channels (release, beta, and canary) soon. To test you can use:
Then update @krisselden - Would you mind reviewing and confirming that this is ultimately resolved (and close)? |
@krisselden @rwjblue I ran it through a about 5k iterations of my reproduction and it seems to be fixed for me. No errors and no memory / heap growth. |
Thanks for the fast work on this today! |
Closing this issue as the underlying bug has been fixed (and confirmed with the demo repos provided). If additional issues crop up, we should report as a new issue with a reproduction. |
After the fix for #16503 I updated from 3.0.0 and I am seeing this after a couple route transitions instead of the previous. I can't reproduce except in this application.
The text was updated successfully, but these errors were encountered: