Mobile build size analysis crashes for Android AAB uploads

Aperta
#4,515 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
android, docker, shell

Direzione di ricerca

Usa il repository MauiSentryTest collegato, iniziando da build.sh e upload.sh, per riprodurre gli upload iOS e Android nella configurazione self-hosted. Leggi l'eccezione allegata di sentry-size-monitoring-issue.txt e confronta il percorso di elaborazione self-hosted con il comportamento SaaS. Il lavoro è completato quando l'AAB Android viene elaborato senza eccezioni e compare in Mobile Builds con la suddivisione delle sue dimensioni.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Self-Hosted Version

26.8.0

CPU Architecture

aarch64

Docker Version

Docker version 29.8.0, build 88096ef

Docker Compose Version

Docker Compose version v5.5.1

Machine Specification
  • My system meets the minimum system requirements of Sentry
Installation Type

New feature on upgraded instance
(EDIT: This feature rolled out a few releases ago, but we are only trying it out for the first time now so it may not be related specifically to 26.8.0)

Steps to Reproduce

Build a .NET MAUI app and produce an iOS .ipa and an Android .aab.
Sample repo has been provided here, pre-compiled .aab can be provided on request.

build.sh will build the iOS and Android apps.
upload.sh will upload the relevant .ipa and .aab. This assumes your environment is setup with a correct .sentryclirc which lists org and project.

Expected Result

Able to see the size breakdown of size analysis by going to Project -> Releases -> Mobile Builds

Actual Result

iOS shows as expected.

Android throws an exception when trying to process the .aab.

Image

Additionally when looking at the Mobile Builds tab it does not show

Image

Uploading the same files to a SaaS instance works as expected for both size analysis and listing size in the table.

Here is a copy of the exception thrown on screen.

2026-09-15 - sentry-size-monitoring-issue.txt

Failed to perform size analysis: bundletool command failed with return code 1 stdout: stderr: Exception in thread "Thread-0" java.io.UncheckedIOException: java.io.IOException: Stream closed at com.android.tools.build.bundletool.androidtools.DefaultCommandExecutor$OutputCapturer.lambda$startCapture$0(DefaultCommandExecutor.java:105) at java.base/java.lang.Thread.run(Thread.java:840) Caused by: java.io.IOException: Stream closed at java.base/java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:168) at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:334) at java.base/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:287) at java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:330) at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:190) at java.base/java.io.InputStreamReader.read(InputStreamReader.java:177) at java.base/java.io.BufferedReader.fill(BufferedReader.java:162) at ...

Event ID

No response

Lingua principale
Shell
Stelle
9.7k
Fork
2k
Merge medio
3g 2h
PR unite (30g)
16

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di getsentry/self-hosted

Tutte le issue di getsentry/self-hosted

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.