dart-lang / build

A build system for Dart written in Dart
https://pub.dev/packages/build
BSD 3-Clause "New" or "Revised" License
791 stars 211 forks source link

Exhausted heap space, Out of memory error in build_runner #3767

Closed keval-devani closed 1 week ago

keval-devani commented 4 weeks ago

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?


drift: ^2.21.0
sqlite3_flutter_libs: ^0.5.25
path_provider: ^2.1.4
path: ^1.9.0

build_runner: ^2.4.11
drift_dev: ^2.21.0

Output of flutter doctor -v

[✓] Flutter (Channel stable, 3.22.3, on macOS 13.5.1 22G90 darwin-x64, locale en-IN)
    • Flutter version 3.22.3 on channel stable at /Users/imac/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b0850beeb2 (3 months ago), 2024-07-16 21:43:41 -0700
    • Engine revision 235db911ba
    • Dart version 3.4.4
    • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/imac/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/imac/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915915-b509.11)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A240d
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /Applications/Brave Browser.app/Contents/MacOS/Brave Browser

[✓] Android Studio (version 2024.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915915-b509.11)

[✓] Connected device (3 available)
    • macOS (desktop)          • macos                     • darwin-x64     • macOS 13.5.1 22G90 darwin-x64
    • Chrome (web)             • chrome                    • web-javascript • Brave Browser 130.1.71.118

[✓] Network resources
    • All expected network resources are available.

• No issues found!

This below logs from build_runner command dart run build_runner build -v

[INFO] Entrypoint:Generating build script...
[INFO] Entrypoint:Generating build script completed, took 394ms

[INFO] Bootstrap:Precompiling build script......
[INFO] Bootstrap:Precompiling build script... completed, took 6.1s

[FINE] Bootstrap:Core package locations file does not exist
FlutterGen v5.8.0 Loading ...
Reading FlutterGen options from pubspec.yaml
[INFO] BuildDefinition:Initializing inputs
[INFO] BuildDefinition:Building new asset graph...
[INFO] BuildDefinition:Building new asset graph completed, took 1.6s

[INFO] BuildDefinition:Checking for unexpected pre-existing outputs....
[INFO] BuildDefinition:Checking for unexpected pre-existing outputs. completed, took 0ms

[INFO] Build:Running build...
[INFO] Heartbeat:1.1s elapsed, 16/16 actions completed.
[INFO] Heartbeat:2.1s elapsed, 195/213 actions completed.
[INFO] Heartbeat:3.2s elapsed, 222/300 actions completed.
[INFO] Heartbeat:4.3s elapsed, 268/321 actions completed.
[INFO] Heartbeat:5.6s elapsed, 269/323 actions completed.

[INFO] Heartbeat:7.7s elapsed, 331/358 actions completed.
[INFO] Heartbeat:21.3s elapsed, 377/387 actions completed.

[WARNING] retrofit_generator on lib/data/network/api_client.dart:
String must provide a `serializeString()` method which returns a Map.
It is programmer's responsibility to make sure the String is properly serialized

[INFO] Heartbeat:28.1s elapsed, 827/838 actions completed.
[INFO] Heartbeat:29.1s elapsed, 1003/1018 actions completed.
[INFO] Heartbeat:30.1s elapsed, 1060/1076 actions completed.
[INFO] Heartbeat:31.2s elapsed, 1063/1078 actions completed.
[WARNING] drift_dev on lib/data/local/daos/others_dao.dart:
line 44, column 7 of package:botree_sfa/data/local/daos/others_dao.dart: Could not read tables from @DriftAccessor annotation!
Please make sure that all table classes exist.
   ╷
44 │ class OthersDao extends DatabaseAccessor<AppDatabase> with _$OthersDaoMixin {
   │       ^^^^^^^^^
   ╵
[INFO] Heartbeat:32.4s elapsed, 1066/1082 actions completed.
[INFO] Heartbeat:33.4s elapsed, 1068/1084 actions completed.
[INFO] Heartbeat:34.5s elapsed, 1068/1084 actions completed.
[INFO] Heartbeat:35.5s elapsed, 1070/1086 actions completed.
[INFO] Heartbeat:36.5s elapsed, 1070/1086 actions completed.
[INFO] Heartbeat:37.6s elapsed, 1070/1086 actions completed.
[INFO] Heartbeat:38.6s elapsed, 1070/1086 actions completed.
[INFO] Heartbeat:39.6s elapsed, 1072/1088 actions completed.
[INFO] Heartbeat:40.7s elapsed, 1072/1088 actions completed.
[INFO] Heartbeat:41.7s elapsed, 1075/1091 actions completed.
[INFO] Heartbeat:42.8s elapsed, 1075/1091 actions completed.
[INFO] Heartbeat:43.8s elapsed, 1076/1092 actions completed.
[INFO] Heartbeat:44.9s elapsed, 1076/1092 actions completed.
[INFO] Heartbeat:45.9s elapsed, 1077/1093 actions completed.
[INFO] Heartbeat:47.1s elapsed, 1077/1093 actions completed.
[INFO] Heartbeat:48.1s elapsed, 1078/1093 actions completed.
[INFO] Heartbeat:49.2s elapsed, 1080/1096 actions completed.
[INFO] Heartbeat:50.2s elapsed, 1082/1096 actions completed.
[INFO] Heartbeat:51.2s elapsed, 1082/1098 actions completed.
[INFO] Heartbeat:52.3s elapsed, 1082/1098 actions completed.
[INFO] Heartbeat:53.4s elapsed, 1082/1098 actions completed.
[INFO] Heartbeat:54.4s elapsed, 1083/1098 actions completed.
[INFO] Heartbeat:55.6s elapsed, 1084/1100 actions completed.
[INFO] Heartbeat:56.6s elapsed, 1084/1100 actions completed.
[INFO] Heartbeat:57.6s elapsed, 1087/1103 actions completed.
[INFO] Heartbeat:58.7s elapsed, 1087/1103 actions completed.
[INFO] Heartbeat:59.7s elapsed, 1088/1104 actions completed.
[INFO] Heartbeat:1m 0s elapsed, 1088/1104 actions completed.
[INFO] Heartbeat:1m 1s elapsed, 1089/1105 actions completed.
[INFO] Heartbeat:1m 2s elapsed, 1089/1105 actions completed.
[INFO] Heartbeat:1m 3s elapsed, 1092/1106 actions completed.
[INFO] Heartbeat:1m 4s elapsed, 1092/1108 actions completed.
[INFO] Heartbeat:1m 5s elapsed, 1094/1110 actions completed.
[INFO] Heartbeat:1m 6s elapsed, 1094/1110 actions completed.
[INFO] Heartbeat:1m 7s elapsed, 1094/1110 actions completed.
[INFO] Heartbeat:1m 9s elapsed, 1095/1111 actions completed.
[INFO] Heartbeat:1m 10s elapsed, 1095/1111 actions completed.
[INFO] Heartbeat:1m 11s elapsed, 1097/1111 actions completed.
[INFO] Heartbeat:1m 12s elapsed, 1097/1111 actions completed.
[INFO] Heartbeat:1m 13s elapsed, 1097/1111 actions completed.
[INFO] Heartbeat:1m 14s elapsed, 1101/1111 actions completed.
[INFO] Heartbeat:1m 15s elapsed, 1101/1111 actions completed.
[INFO] Heartbeat:1m 16s elapsed, 1101/1111 actions completed.
[INFO] Heartbeat:1m 17s elapsed, 1101/1111 actions completed.
[INFO] Heartbeat:1m 18s elapsed, 1101/1111 actions completed.
[INFO] Heartbeat:1m 19s elapsed, 1101/1111 actions completed.
[INFO] Heartbeat:1m 20s elapsed, 1101/1111 actions completed.
[INFO] Heartbeat:1m 21s elapsed, 1101/1111 actions completed.
[INFO] Heartbeat:1m 22s elapsed, 1101/1111 actions completed.
[INFO] Heartbeat:1m 23s elapsed, 1101/1111 actions completed.
[INFO] Heartbeat:1m 24s elapsed, 1101/1111 actions completed.
[INFO] Heartbeat:1m 25s elapsed, 1101/1111 actions completed.
[INFO] Heartbeat:1m 26s elapsed, 1101/1111 actions completed.
[INFO] Heartbeat:1m 27s elapsed, 1101/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.0s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/configs.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  .. and 5 more

[INFO] Heartbeat:1m 29s elapsed, 1101/1111 actions completed.
[INFO] Heartbeat:1m 30s elapsed, 1101/1111 actions completed.
[INFO] Heartbeat:1m 31s elapsed, 1101/1111 actions completed.
[INFO] Heartbeat:1m 32s elapsed, 1101/1111 actions completed.
[INFO] Heartbeat:1m 33s elapsed, 1101/1111 actions completed.
[INFO] Heartbeat:1m 34s elapsed, 1102/1111 actions completed.
[INFO] Heartbeat:1m 35s elapsed, 1102/1111 actions completed.
[INFO] Heartbeat:1m 36s elapsed, 1102/1111 actions completed.
[INFO] Heartbeat:1m 37s elapsed, 1102/1111 actions completed.
[INFO] Heartbeat:1m 38s elapsed, 1103/1111 actions completed.
[INFO] Heartbeat:1m 39s elapsed, 1103/1111 actions completed.
[INFO] Heartbeat:1m 40s elapsed, 1103/1111 actions completed.
[INFO] Heartbeat:1m 41s elapsed, 1103/1111 actions completed.
[INFO] Heartbeat:1m 43s elapsed, 1103/1111 actions completed.
[INFO] Heartbeat:1m 44s elapsed, 1103/1111 actions completed.
[INFO] Heartbeat:1m 45s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:1m 46s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:1m 47s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:1m 48s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:1m 49s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:1m 50s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:1m 51s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:1m 52s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:1m 53s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:1m 54s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:1m 55s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:1m 56s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:1m 57s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:1m 59s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 0s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.0s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:2m 1s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 2s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 3s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 4s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 5s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 6s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 7s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 8s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 9s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 10s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 12s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 13s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 14s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.0s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:2m 16s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 17s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 18s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 19s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 20s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 21s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 22s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 23s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 24s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 25s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 26s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 27s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 28s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 29s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.1s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:2m 31s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 32s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 33s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 34s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 35s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 36s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 37s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 38s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 39s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 40s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 41s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 42s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 43s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 44s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.0s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:2m 46s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 47s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 48s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 49s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 50s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 51s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 52s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 53s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 54s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 55s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 56s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 57s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 58s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:2m 59s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.0s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:3m 1s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 2s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 3s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 4s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 5s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 6s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 7s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 8s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 9s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 10s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 11s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 12s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 14s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 15s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.1s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:3m 16s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 17s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 18s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 19s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 20s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 21s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 23s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 24s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 25s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 26s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 27s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 28s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 29s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 30s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.2s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:3m 31s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 32s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 33s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 34s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 35s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 36s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 37s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 38s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 39s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 40s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 41s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 42s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 43s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 45s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.0s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:3m 46s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 47s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 48s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 49s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 50s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 51s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 53s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 54s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 55s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 56s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 57s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 58s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:3m 59s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 0s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.1s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:4m 1s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 2s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 3s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 4s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 5s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 7s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 8s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 9s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 10s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 11s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 12s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 13s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 14s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 15s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.1s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:4m 16s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 17s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 18s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 20s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 21s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 22s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 23s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 24s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 25s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 26s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 27s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 28s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 29s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 30s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.0s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:4m 31s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 33s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 34s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 35s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 36s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 37s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 38s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 39s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 40s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 41s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 42s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 43s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 44s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 45s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.1s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:4m 47s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 48s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 49s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 50s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 51s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 52s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 53s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 54s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 55s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 56s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 57s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 58s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:4m 59s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 0s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.0s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:5m 1s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 3s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 4s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 5s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 6s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 7s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 8s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 9s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 10s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 11s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 12s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 13s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 14s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 16s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.1s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:5m 17s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 18s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 19s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 20s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 21s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 22s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 23s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 24s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 25s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 26s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 27s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 28s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 29s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 30s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.0s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:5m 32s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 33s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 34s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 35s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 36s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 37s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 38s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 39s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 40s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 42s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 43s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 44s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 45s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 46s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.1s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:5m 47s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 48s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 49s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 50s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 51s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 52s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 53s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 54s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 55s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 56s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 57s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 58s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:5m 59s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 1s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.1s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:6m 2s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 3s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 4s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 5s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 6s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 7s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 8s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 9s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 10s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 11s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 13s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 14s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 15s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 16s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.0s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:6m 17s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 18s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 19s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 20s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 21s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 22s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 24s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 25s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 26s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 27s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 28s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 29s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 30s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 31s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.0s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:6m 32s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 33s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 34s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 35s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 36s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 37s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 38s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 39s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 41s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 42s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 43s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 44s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 45s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 46s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.1s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:6m 47s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 48s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 49s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 50s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 51s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 52s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 53s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 54s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 56s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 57s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 58s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:6m 59s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 0s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 1s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.1s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:7m 2s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 3s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 4s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 5s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 6s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 7s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 8s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 9s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 10s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 11s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 13s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 14s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 15s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 16s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.1s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:7m 17s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 18s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 19s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 20s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 22s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 23s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 24s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 25s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 26s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 27s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 28s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 29s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 30s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.1s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:7m 32s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 33s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 34s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 35s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 36s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 38s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 39s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 40s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 41s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 42s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 43s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 44s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 45s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 46s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.0s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:7m 47s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 48s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 49s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 51s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 52s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 53s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 54s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 55s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 56s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 57s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 58s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:7m 59s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 0s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 1s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.0s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:8m 2s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 4s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 5s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 6s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 7s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 8s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 9s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 10s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 11s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 12s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 13s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 14s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 15s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 16s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.0s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:8m 17s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 18s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 20s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 21s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 22s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 23s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 24s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 25s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 26s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 27s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 28s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 29s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 30s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 31s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.1s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:8m 32s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 34s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 35s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 36s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 37s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 38s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 39s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 40s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 41s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 42s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 43s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 44s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 45s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 46s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.1s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:8m 48s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 49s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 50s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 51s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 52s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 53s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 54s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 55s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 56s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 57s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:8m 58s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 0s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 1s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.1s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:9m 3s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 4s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 5s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 6s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 7s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 8s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 9s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 10s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 11s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 12s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 13s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 14s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 16s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 17s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.1s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:9m 18s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 19s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 20s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 21s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 22s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 23s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 24s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 25s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 26s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 27s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 28s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 30s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 31s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 32s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.1s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:9m 33s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 34s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 35s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 36s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 37s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 38s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 39s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 41s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 42s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 43s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 44s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 45s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 46s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.1s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:9m 48s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 49s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 50s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 51s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 52s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 53s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 54s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 55s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 56s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 57s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:9m 58s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 0s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 1s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 2s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.0s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:10m 3s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 4s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 5s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 6s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 7s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 9s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 10s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 11s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 12s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 13s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 14s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 15s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 16s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 17s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.0s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:10m 18s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 19s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 20s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 21s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 22s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 23s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 24s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 25s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 26s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 27s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 28s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 29s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 31s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 32s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 15.1s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:10m 33s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 34s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:10m 37s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:12m 1s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 1m 28s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:12m 2s elapsed, 1104/1111 actions completed.
[INFO] Heartbeat:12m 34s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 33.7s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:13m 10s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 36.3s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:13m 50s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 39.9s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

[INFO] Heartbeat:16m 24s elapsed, 1104/1111 actions completed.
[WARNING] Heartbeat:
No actions completed for 2m 33s, waiting on:
  - drift_dev on lib/data/local/tables/tags.dart
  - drift_dev on lib/data/local/tables/masters.dart
  - drift_dev on lib/data/local/tables/reports.dart
  - drift_dev on lib/data/local/database.dart
  - drift_dev on lib/data/local/daos/master_dao.dart
  .. and 2 more

Exhausted heap space, trying to allocate 1088 bytes.
Exhausted heap space, trying to allocate 128 bytes.
Exhausted heap space, trying to allocate 64 bytes.

You have hit a bug in build_runner
Please file an issue with reproduction steps at https://github.com/dart-lang/build/issues

Bad state: Cannot fire new event. Controller is already firing an event
dart:async                                                     _BroadcastStreamController.add
package:logging/src/logger.dart 314:51                         Logger._publish
package:logging/src/logger.dart 238:14                         Logger.log
package:logging/src/logger.dart 296:7                          Logger.severe
package:build_runner_core/src/generate/build_impl.dart 323:17  _SingleBuild._safeBuild.<fn>
jakemac53 commented 4 weeks ago

This looks like it got stuck in an infinite loop inside the drift_dev builder - it didn't make any progress after 2 minutes. cc @simolus3

It could be something else, but that would be the first place I would look.

simolus3 commented 4 weeks ago

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.

keval-devani commented 4 weeks ago

@simolus3 Thanks for replay. Yes I already have tables in categories like configs, masters, reports, tags in different dart files.

And I did change to modular generator. But still getting error

drift_dev config in build.yaml

targets:
  $default:
    builders:
      drift_dev:
        enabled: false

      # Instead, enable drift_dev:analyzer and drift_dev:modular manually:
      drift_dev:analyzer:
        enabled: true
        options: &options
          # Drift build options, as per https://drift.simonbinder.eu/docs/advanced-features/builder_options/
          write_from_json_string_constructor: true
          data_class_to_companions: true
          mutable_classes: true
          sql:
            dialect: sqlite
            options:
              version: "3.39"
              modules: [fts5]
      drift_dev:modular:
        enabled: true
        # We use yaml anchors to give the two builders the same options
        options: *options

I'm using intel macOS with 32 GB RAM if that's help.

Logs after failing to generate using this command dart run build_runner build -d -v

...
...
...

Exhausted heap space, trying to allocate 160 bytes.
[INFO] Heartbeat:22m 43s elapsed, 1251/1258 actions completed.
[WARNING] Heartbeat:
No actions completed for 3m 51s, waiting on:
  - drift_dev:analyzer on lib/data/local/tables/tags.dart
  - drift_dev:analyzer on lib/data/local/tables/masters.dart
  - drift_dev:analyzer on lib/data/local/tables/reports.dart
  - drift_dev:analyzer on lib/data/local/daos/master_dao.dart
  - drift_dev:analyzer on lib/data/local/database.dart
  .. and 2 more

[INFO] Heartbeat:25m 6s elapsed, 1251/1258 actions completed.
[WARNING] Heartbeat:
No actions completed for 2m 22s, waiting on:
  - drift_dev:analyzer on lib/data/local/tables/tags.dart
  - drift_dev:analyzer on lib/data/local/tables/masters.dart
  - drift_dev:analyzer on lib/data/local/tables/reports.dart
  - drift_dev:analyzer on lib/data/local/daos/master_dao.dart
  - drift_dev:analyzer on lib/data/local/database.dart
  .. and 2 more

Exhausted heap space, trying to allocate 1088 bytes.
Exhausted heap space, trying to allocate 64 bytes.
Exhausted heap space, trying to allocate 64 bytes.

You have hit a bug in build_runner
Please file an issue with reproduction steps at https://github.com/dart-lang/build/issues

Bad state: Cannot fire new event. Controller is already firing an event
dart:async                                                     _BroadcastStreamController.add
package:logging/src/logger.dart 314:51                         Logger._publish
package:logging/src/logger.dart 238:14                         Logger.log
package:logging/src/logger.dart 296:7                          Logger.severe
package:build_runner_core/src/generate/build_impl.dart 323:17  _SingleBuild._safeBuild.<fn>
jakemac53 commented 1 week ago

Should this issue be closed in favor of https://github.com/simolus3/drift/issues/3306?

simolus3 commented 1 week ago

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.