Status Update
Comments
sg...@google.com <sg...@google.com>
ch...@google.com <ch...@google.com> #2
Can you tell how many warnings were emitted after increasing the heap size and getting a successful build?
We discussed limiting the diagnostic to 100 items and then reporting the number of omitted items.
To have all items reported we can make a system property that allows overriding this behavior.
a....@gmail.com <a....@gmail.com> #3
Yes, there're 105,858 lines with 'Startup (method|class) not found'.
ap...@google.com <ap...@google.com> #4
Project: r8
Branch: main
Author: Christoffer Adamsen <
Link:
Limit MissingStartupProfileItemsDiagnostic to 100 items
Expand for full commit details
Limit MissingStartupProfileItemsDiagnostic to 100 items
Bug: b/370937458
Change-Id: I4ef686cac2ee8c7dfe4d09864bb7729017c5e944
Files:
- M
src/main/java/com/android/tools/r8/startup/diagnostic/MissingStartupProfileItemsDiagnostic.java
Hash: de1a3e4872a8013bd94577e209016423392c8e38
Date: Fri Oct 11 12:46:59 2024
ap...@google.com <ap...@google.com> #5
Project: r8
Branch: 8.7
Author: Søren Gjesse <
Link:
Version 8.7.18
Expand for full commit details
Version 8.7.18
Bug: b/370937458
Bug: b/372749733
Change-Id: I33726130f3bf37167ccefa22bcb0cd3d14f6a398
Files:
- M
src/main/java/com/android/tools/r8/Version.java
Hash: 84ea5eee063248e40efa5800a15412e89f45aa20
Date: Fri Oct 11 15:33:20 2024
ap...@google.com <ap...@google.com> #6
Project: r8
Branch: 8.7
Author: Søren Gjesse <
Link:
Limit MissingStartupProfileItemsDiagnostic to 100 items
Expand for full commit details
Limit MissingStartupProfileItemsDiagnostic to 100 items
Bug: b/370937458
Change-Id: I4ef686cac2ee8c7dfe4d09864bb7729017c5e944
Files:
- M
src/main/java/com/android/tools/r8/startup/diagnostic/MissingStartupProfileItemsDiagnostic.java
Hash: 2b0d31305a039835eddc6b11ba65175b1ade2020
Date: Fri Oct 11 15:32:24 2024
ch...@google.com <ch...@google.com> #7
The fix has now been cherry-picked to R8 8.7.18. Which version of R8 are you currently building with?
The fact that you have +100k startup descriptors that do not exist in the app is an indication that something is not correctly setup in your build.
a....@gmail.com <a....@gmail.com> #8
We are using agp version 8.5.2, so this is probably 8.5.10? We are in the process of migrating to 8.7, but we are currently blocked.
ch...@google.com <ch...@google.com> #9
Thanks for the update, I will cherry-pick this back to 8.5 and 8.6 as well.
ap...@google.com <ap...@google.com> #10
Project: r8
Branch: 8.5
Author: Christoffer Adamsen <
Link:
Version 8.5.46
Expand for full commit details
Version 8.5.46
Bug: b/370937458
Change-Id: Iecf2ae7a42f3418f29291ad25c6394d003fd51bb
Files:
- M
src/main/java/com/android/tools/r8/Version.java
Hash: 61330938da7f432e7587009a04c6e3a48bdfffa5
Date: Mon Oct 14 09:56:55 2024
ap...@google.com <ap...@google.com> #11
Project: r8
Branch: 8.5
Author: Christoffer Adamsen <
Link:
Limit MissingStartupProfileItemsDiagnostic to 100 items
Expand for full commit details
Limit MissingStartupProfileItemsDiagnostic to 100 items
Bug: b/370937458
Change-Id: I4ef686cac2ee8c7dfe4d09864bb7729017c5e944
Files:
- M
src/main/java/com/android/tools/r8/startup/diagnostic/MissingStartupProfileItemsDiagnostic.java
Hash: 2b742c8fbcdaf8489eea7c29e98694faa4b3b0db
Date: Mon Oct 14 09:56:46 2024
ap...@google.com <ap...@google.com> #12
Project: r8
Branch: 8.6
Author: Christoffer Adamsen <
Link:
Version 8.6.32
Expand for full commit details
Version 8.6.32
Bug: b/370937458
Change-Id: I6dc835b7b37c6beb70ac21c4ce9db86ed6e298fa
Files:
- M
src/main/java/com/android/tools/r8/Version.java
Hash: bcb1ad58181dd1b9c8af9fa49b4bde12c230e149
Date: Mon Oct 14 09:56:21 2024
ap...@google.com <ap...@google.com> #13
Project: r8
Branch: 8.6
Author: Christoffer Adamsen <
Link:
Limit MissingStartupProfileItemsDiagnostic to 100 items
Expand for full commit details
Limit MissingStartupProfileItemsDiagnostic to 100 items
Bug: b/370937458
Change-Id: I4ef686cac2ee8c7dfe4d09864bb7729017c5e944
Files:
- M
src/main/java/com/android/tools/r8/startup/diagnostic/MissingStartupProfileItemsDiagnostic.java
Hash: 226e5083b01b2b94abeaf69d0c15b5da6972b757
Date: Mon Oct 14 09:56:11 2024
ap...@google.com <ap...@google.com> #14
Project: r8
Branch: 8.5
Author: Christoffer Adamsen <
Link:
Limit MissingStartupProfileItemsDiagnostic to 100 items
Expand for full commit details
Limit MissingStartupProfileItemsDiagnostic to 100 items
Bug: b/370937458
Change-Id: I4ef686cac2ee8c7dfe4d09864bb7729017c5e944
Files:
- M
src/main/java/com/android/tools/r8/startup/diagnostic/MissingStartupProfileItemsDiagnostic.java
Hash: 2b742c8fbcdaf8489eea7c29e98694faa4b3b0db
Date: Mon Oct 14 09:56:46 2024
an...@google.com <an...@google.com> #15
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Ladybug | 2024.2.1 Patch 2
- Android Gradle Plugin 8.7.2
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
Description
We have a large application with 25 Dex files, so when R8 tries to print diagnostics for missing classes or methods, the Gradle client crashes due to out of memory errors.
The issue is resolved by increasing the maximum heap size using JAVA_OPTS for the Gradle wrapper. I haven't yet investigated the origin of the initial errors since we aren't using a Gradle plugin for startup profile generation. However, they persist even if I delete and then recreate the file using a test.