[Question] Assert in auth.cc line 119 when trying to create Auth
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
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- cpp
- Lĩnh vực
- authentication
Hướng nghiên cứu
Bắt đầu với auth/src/auth.cc tại dòng 119 và so sánh flow Windows desktop được báo cáo với ví dụ auth đang hoạt động trong test-app. Tái hiện chuỗi bằng cách sử dụng App::Create, Auth::GetAuth và SignInAnonymously trên cùng một thread. Hoàn tất khi xác định được nguyên nhân của assertion và ghi lại hoặc triển khai một cách giải quyết đã được xác minh cho trường hợp Windows desktop.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
[REQUIRED] Please fill in the following fields:
- Pre-built SDK from the website or open-source from this repo: Pre-build SDK
- Firebase C++ SDK version: 12.1.0
- Main Firebase Components in concern: Auth (Auth, Database, etc.)
- Other Firebase Components in use: App,Firestore,Storage (Auth, Database, etc.)
- Platform you are using the C++ SDK on: Windows (Mac, Windows, or Linux)
- Platform you are targeting: iOS, Android (iOS, Android, and/or desktop)
[REQUIRED] Please describe the question here:
I was not able to reproduce the issue on test-app where auth example works properly on desktop.
Issue occurs only on Desktop when using c++ wrapper on Windows (Android and iOS works fine)
I'm following general FirebaseApp creation:
m_App = firebase::App::Create();
later on when i try to get Auth by calling this code: (from the same thread)
firebase::App* app = FirebaseApp::Get();
if (!app)
return nullptr;
firebase::auth::Auth* auth = firebase::auth::Auth::GetAuth(app);
if (!auth)
return nullptr;
return auth;
I'm getting hard crash with assert from auth.cc line 119
If I try to create auth immediately after creating app i will get a proper object but then calling eg.:
firebase::Future<firebase::auth::AuthResult> result = auth->SignInAnonymously();
Result in exact same assert.
Can you please assist what may be the cause? Is there some kind of releasing object under the hood?
- Ngôn ngữ chính
- C++
- Star
- 326
- Fork
- 138
- Merge trung bình
- 2 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 3
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-cpp-sdk
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
firebase/firebase-cpp-sdk#1905 · 2 bình luận ·
-
api: firestore
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
firebase/firebase-cpp-sdk#1920 · 3 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 70/100
firebase/firebase-cpp-sdk#1904 · 1 bình luận ·
-
new type: question
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
firebase/firebase-cpp-sdk#1892 · 1 bình luận ·
-
nightly-testing
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
firebase/firebase-cpp-sdk#1859 ·
Tất cả issue của firebase/firebase-cpp-sdk
Issue tương tự
-
[CI] Nightly Clang build broken: structured binding captured in a lambda in FileDataSource.cpp Đang mởbug build
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
facebookincubator/velox#19194 ·
-
JIT-compiled number -> Decimal conversion silently overflows instead of raising DECIMAL_OVERFLOW Đang mởfuzz
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
ClickHouse/ClickHouse#122114 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
module/agent platform/macos type/bug/regression
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
enhancement PyCDE
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100