-
Notifications
You must be signed in to change notification settings - Fork 30
Question about “locals exceed maximum” #2465
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
Comments
Thanks! This is one of the errors we've been chasing for some time, but couldn't find an isolated reproducible test case. Do you have one to share here by any chance? Either an isolated file compilable with |
Yes, I managed to narrow the problem down to a particular long dictionary literal. Let me clean‐up some of the mess left over from my experiments, and then I’ll post a link. |
I don't think it's related to |
This was the offending literal. git clone https://github.com/SDGGiesbrecht/SDGWeb
cd SDGWeb
git checkout 8bd5066bebc69e8d686a879628363689108d8048 With the empty literal variant applied when compiling for the web platform, everything works. But if you comment out the Note that the error doesn’t surface until you actually attempt to launch the tests ( |
But I still don’t know what the error message means; I only know how to dodge it. |
WebAssembly hosts have certain limits placed on modules they load, and binaries not satisfying these limits don't pass validation, which hosts are required to do before actual execution. The Swift toolchain and LLVM unfortunately don't run validation during the build, so this error doesn't surface until you actually load the binary in the host (i.e. the browser). This isn't an error in your code, this is a bug in how LLVM or Thanks for isolating this, we'll try to create a test case for it and submit a patch upstream. |
carton test
fails with the following:I don’t understand what that means or how to go about finding the underlying problem.
The text was updated successfully, but these errors were encountered: