[Question] Assert in auth.cc line 119 when trying to create Auth
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- cpp
- Domain
- authentication
Research direction
Start with auth/src/auth.cc at line 119 and compare the reported Windows desktop flow with the working auth example in test-app. Reproduce the sequence using App::Create, Auth::GetAuth, and SignInAnonymously on the same thread. Done means identifying the cause of the assertion and documenting or implementing a verified resolution for the Windows desktop case.
Written by the indexing model from the issue text.
Description
[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?
- Dominant language
- C++
- Stars
- 326
- Forks
- 138
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from firebase/firebase-cpp-sdk
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
firebase/firebase-cpp-sdk#1905 · 2 comments ·
-
api: firestore
Difficulty 5/5 Over a week Newbie friendliness 35/100
firebase/firebase-cpp-sdk#1920 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 70/100
firebase/firebase-cpp-sdk#1904 · 1 comment ·
-
new type: question
Difficulty 4/5 3-5 days Newbie friendliness 45/100
firebase/firebase-cpp-sdk#1892 · 1 comment ·
-
nightly-testing
Difficulty 4/5 3-5 days Newbie friendliness 25/100
firebase/firebase-cpp-sdk#1859 ·
All issues in firebase/firebase-cpp-sdk
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
ros2/message_filters#338 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
subsurface/subsurface#4984 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
google-ai-edge/LiteRT-LM#3739 ·