-
Notifications
You must be signed in to change notification settings - Fork 1.1k
dotc: Error: requirement failed: array index too large, maximum is 2^30 - 1 #9738
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
Without more information there's nothing we can do. Are you actually generating more than 2^30 trees? If you look at |
I believe I don't. Moreover, I'm traversing trees, my output is, essentially, just a long string literal. When compilation succeeds the output is pretty normal and compact.
Sorry if this is of no interest for you. I had a hope that it may be easier for you to repeat the issue locally and debug it. At the moment I don't have more information and not sure if I can provide more - as I said before it's very hard to make a minimized example because the issue manifests occasionally. |
A good first step would be to find a reliable way to reproduce the problem, even if it's not minimized. |
And this is the primary problem. Though I just got into something interesting, seems like it is not related to macros. Last time it happened while building this: https://github.com/zio/izumi-reflect/tree/develop/izumi-reflect/izumi-reflect-thirdparty-boopickle-shaded There are no macros at all. |
I have a hypothesis what this could be. Did you use a long-running resident compiler? I noted that tree ids are not recycled between runs. |
@odersky Yes, this tends to happen after a few compiles with either |
@odersky : yes, usually it helps to restart the compile server, though sometimes it may happen right on the first run. Also seems like it fails while traversing the trees, not while producing new ones (I got to this conclusion with some probabilistic debug prints, but I may be wrong). |
Thanks! Once next release is available I'll test it and report here. |
Sometimes I'm getting this stacktrace while running heavy TASTY macros:
I cannot provide a minimized example - the issue manifests occasionally, so it's really hard to make a minimized example.
It sometimes happens during
izumi-reflect
build. It may be a recent regression, I didn't see it before 0.27The text was updated successfully, but these errors were encountered: