firebase / firebase/firebase-cpp-sdk

[Bug] Intermittent network connections can create high cpu-use situations for desktop applications.

Offen
#1,629 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
api: auth new type: question
Vorherrschende Sprache
C++
Sterne
326
Forks
137
Ø Merge
3 T. 9 Std.
Gemergte PRs (30 T.)
5

Beschreibung

### [REQUIRED] Please fill in the following fields:

* Pre-built SDK
* Firebase C++ SDK version: 11.6.0
* Problematic Firebase Component: Auth
* Other Firebase Components in use: Database/Functions/Storage
* Platform you are using the C++ SDK on: Windows
* Platform you are targeting: Desktop

### [REQUIRED] Please describe the issue here:

Intermittent network connections can create high cpu-use situations for desktop applications.

#### Steps to reproduce:
- Sign into firebase auth.
- Close app.
- Remove internet.
- Open app and instantiate a user.

or

- interrupt internet access.

The following spams the console thousands of times:
```
INFO: USE_AUTH_EMULATOR not set.
INFO: USE_AUTH_EMULATOR not set.
```

This creates significant CPU load and overhead when the network connection is lost. I expect the attempt to connect to a live auth instance fails, but there is no rate limit on retries after time 'x', or graceful management of that particular scenario.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

No source file or test is named. Start by tracing Firebase Auth initialization after opening the desktop app without internet, then reproduce the repeated “USE_AUTH_EMULATOR not set” output during connection loss. Done means intermittent connectivity no longer causes unbounded log spam or significant CPU load.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
cpp
Bereich
authentication, desktop
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.