Firebase-auth - Can't get the number of an unknown enum value
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Ít trao đổi
- Lĩnh vực
- authentication, mobile-dev
Hướng nghiên cứu
Bắt đầu với việc khởi tạo FirebaseAuth trong stack trace và private val firestore = FirebaseFirestore.getInstance() được báo cáo trong ProfileRepositoryImpl.kt. So sánh hành vi giữa Firebase BoM 34.5.0 và 34.12.0 bằng cách sử dụng trạng thái xác thực đã được lưu từ một phiên bản SDK trước đó, thay vì cài đặt mới. Được xem là hoàn tất khi đã xác định và xử lý crash khi khởi động unknown-enum, kèm theo một regression test hoặc reproduction đã được xác nhận nếu repository hỗ trợ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
[REQUIRED] Step 2: Describe your environment
- Android Studio version: Android Studio Quail 1 | 2026.1.1
- Firebase Component: Authentication
- Component version: 24.0.1
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
On app startup, the application eagerly initializes Firestore (which forces FirebaseAuth initialization). For only one 1-2 users (for about 50 000 users) — appears to be those with pre-existing persisted auth state written by a previous SDK version — FirebaseAuth.
throws while (de)serializing an internal protobuf enum, crashing the whole app at Application.onCreate.
It is not reproducible on a fresh install / signed-out state; it only reproduces for this user with existing persisted auth state, which is why we cannot trigger it on demand. It is a hard, non-recoverable startup crash for affected users.
The failure is:
java.lang.IllegalArgumentException: Can't get the number of an unknown enum value.
at com.google.android.gms.internal.firebase-auth-api.zzxz.zza(com.google.firebase:firebase-auth@@24.0.1:2)
at com.google.android.gms.internal.firebase-auth-api.zzxh$zzb.zza(com.google.firebase:firebase-auth@@24.0.1:35)
at com.google.android.gms.internal.firebase-auth-api.zzxh$zzb$zza.zza(com.google.firebase:firebase-auth@@24.0.1:11)
at com.google.android.gms.internal.firebase-auth-api.zzbm.zzb(com.google.firebase:firebase-auth@@24.0.1:130)
at com.google.android.gms.internal.firebase-auth-api.zzbm.zzd(com.google.firebase:firebase-auth@@24.0.1:143)
at com.google.android.gms.internal.firebase-auth-api.zzbm.zzd(com.google.firebase:firebase-auth@@24.0.1:143)
at com.google.android.gms.internal.firebase-auth-api.zzbw.zza(com.google.firebase:firebase-auth@@24.0.1:2)
at com.google.android.gms.internal.firebase-auth-api.zzmy$zza.zza(com.google.firebase:firebase-auth@@24.0.1:18)
at com.google.firebase.auth.internal.zzby.zzb(com.google.firebase:firebase-auth@@24.0.1:7)
at com.google.firebase.auth.internal.zzcb.zza(com.google.firebase:firebase-auth@@24.0.1:81)
at com.google.firebase.auth.FirebaseAuth.<init>(com.google.firebase:firebase-auth@@24.0.1:349)
at com.google.firebase.auth.FirebaseAuthRegistrar.lambda$getComponents$0(com.google.firebase:firebase-auth@@24.0.1:11)
at com.google.firebase.components.ComponentRuntime.lambda$discoverComponents$0(...)
at com.google.firebase.firestore.auth.FirebaseAuthCredentialsProvider.<init>(FirebaseAuthCredentialsProvider.java:78)
at com.google.firebase.firestore.FirebaseFirestore.newInstance(FirebaseFirestore.java:196)
at com.google.firebase.firestore.FirebaseFirestore.getInstance(FirebaseFirestore.java:129)
at <our code>.ProfileRepositoryImpl.<init>(ProfileRepositoryImpl.kt) // calls FirebaseFirestore.getInstance()
... (Hilt-injected @Singleton created during Application.onCreate)
Caused by: java.lang.IllegalArgumentException: Can't get the number of an unknown enum value.
Relevant Code:
Crash is reached simply by initializing Firestore, which forces FirebaseAuth init.
private val firestore = FirebaseFirestore.getInstance()
It seems to be introduced since we have updated firebase-bom from 34.5.0 to 34.12.0
Thanks a lot.
- Ngôn ngữ chính
- Java
- Star
- 2.6k
- Fork
- 733
- Merge trung bình
- 2 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 72
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của firebase/firebase-android-sdk
-
api: remoteconfig
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
firebase/firebase-android-sdk#8827 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Crashlytics plugin writes build ID lists in directory listing order, so APKs can differ between machinesCó thể đã có người làm @mrober đã nhận 8 ngày trước. Đang mởapi: crashlytics
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
firebase/firebase-android-sdk#8789 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
api: auth
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
firebase/firebase-android-sdk#8505 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
firebase/firebase-android-sdk#8835 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
firebase/firebase-android-sdk#8832 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của firebase/firebase-android-sdk
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 1 ngày
-
RIS export splits an organization name containing “and” into multiple authorsCó thể đã có người làm @Gautam-aman đã nhận hôm nay. Đang mởstatus: needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
JabRef/jabref#17821 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
FailureContext.java rounds down thresholds in lastedAtLeast()Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày