Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Question] Assert in auth.cc line 119 when trying to create Auth

Đang mở
#1,680 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ả

needs-triage new type: question
[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?

Image
Image
Image

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

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của firebase/firebase-cpp-sdk

Tất cả issue của firebase/firebase-cpp-sdk

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.