-
Notifications
You must be signed in to change notification settings - Fork 210
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
Exhausted heap space, Out of memory error in build_runner #3767
Comments
This looks like it got stuck in an infinite loop inside the It could be something else, but that would be the first place I would look. |
Yes, that's a pretty large database and it's possible that drift is unable to properly analyze all the tables. That would be a drift issue, but I'll probably have a hard time reproducing it (is it possible for you to share more details about the tables in a drift issue to help me reproduce this?). It's not unlikely that drift is generating >100k LOC for this input, which can severely slow down other Dart tools like the analyzer. You could look into modular code generation and split tables across multiple files to possibly improve things. |
@simolus3 Thanks for replay. Yes I already have tables in categories like And I did change to modular generator. But still getting error drift_dev config in
I'm using intel macOS with 32 GB RAM if that's help. Logs after failing to generate using this command
|
Should this issue be closed in favor of simolus3/drift#3306? |
I think so, if it turns out to be a build runner or analyzer issue in the end I can always open a more specific one later. |
Team, thanks for nice and powerful Dart language. I'm having issue with build _runner to generate files.
I'm using Drift package to handle my local database. and that package is using
drift_dev
with help of build_runner to generate table definition and boilerplate code.I have 315 tables in my database 😬. Yes in single database
It's taking infinite time 🥵 to build but not able to generate database.g.dart and dao.g.dart files.
Even it's print Out of Memory and Exhausted heap space, trying to allocate 1088 bytes.
Please anyone help me here how to deal with it. Is there any other way to deal with that kind of database?
Output of
flutter doctor -v
This below logs from build_runner command
dart run build_runner build -v
The text was updated successfully, but these errors were encountered: