Remote Config crash editor every time

Open
#1,372 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp, firebase, unity

Research direction

Start at FirebaseRemoteConfig.DefaultInstance and the Firebase.Platform.FirebaseAppUtils:PollCallbacks stack shown in the Editor Crash Log. Reproduce the crash with Unity 2020.3.48f1 and Firebase Unity SDK 11.5.0 without a VPN, then determine whether the failure is in this quickstart or the Firebase Unity SDK. Done means the cause is identified and the editor no longer crashes under the reported network conditions.

Written by the indexing model from the issue text.

Description

api: remoteconfig
[REQUIRED] Please fill in the following fields:
  • Unity editor version: 2020.3.48f1
  • Firebase Unity SDK version: 11.5.0
  • Source you installed the SDK: FirebaseAnalytics.unitypackage
  • Problematic Firebase Component: RemoteConfig in Editor
  • Other Firebase Components in use: Analytics, Crashlytics
  • Additional SDKs you are using: Facebook, Facebook, ApplovinMax, Appsflyer, Appmetrica, AudienceNetwork, ExternalDependencyManager, GoogleMobileAds
  • Platform you are using the Unity editor on: Windows
  • Platform you are targeting: Android
  • Scripting Runtime: IL2CPP
[REQUIRED] Please describe the issue here:

Every time I launch the editor in Eastern Europe (Eastern Ukraine), I get a editor crash. This may be due to the fact that Google services are partially limited and internet has high latency. But every time I call FirebaseRemoteConfig.DefaultInstance I get an editor crash.

If i enable VPN, everything works correctly.

Steps to reproduce:
  1. Start editor without VPN, on East Europe (Eastern Ukraine).
  2. Start FirebaseRemoteConfig.DefaultInstance
  3. Crash

FirebaseRemoteConfig.DefaultInstance.SetDefaultsAsync calls from Start method of other monobehaviour.

All code from documentation Remote Config Get Started
https://firebase.google.com/docs/remote-config/get-started?platform=unity

Relevant Code:
FirebaseRemoteConfig.DefaultInstance.SetDefaultsAsync(_defaultValues).ContinueWithOnMainThread(task =>
        {
            Print.Log("RemoteConfig -> Firebase Remote Config Default values setted.");
        });

        FetchDataAsync();

Editor Log
Editor Crash Log.txt

ERROR: flatbuffers::Parser::Parse() failed: (1, 1): error: illegal character: <
Crash!!!
SymInit: Symbol-SearchPath: 'D:/Unity/Editors/2020.3.48f1/Editor/Data/Mono;.;D:\Unity\Projects\ArrowThrower;D:\Unity\Editors\2020.3.48f1\Editor;C:\Windows;C:\Windows\system32;', symOptions: 534, UserName: 'Yaroslav'
OS-Version: 10.0.0
D:\Unity\Editors\2020.3.48f1\Editor\Unity.exe:Unity.exe (00007FF686440000), size: 84131840 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 2020.3.48.1457
C:\Windows\SYSTEM32\ntdll.dll:ntdll.dll (00007FF84E030000), size: 2064384 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.4355
C:\Windows\System32\KERNEL32.DLL:KERNEL32.DLL (00007FF84CE90000), size: 774144 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3636
C:\Windows\System32\KERNELBASE.dll:KERNELBASE.dll (00007FF84BA00000), size: 3104768 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.4355
C:\Windows\System32\CRYPT32.dll:CRYPT32.dll (00007FF84BD50000), size: 1433600 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.4412
C:\Windows\System32\ucrtbase.dll:ucrtbase.dll (00007FF84B870000), size: 1048576 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3636
C:\Windows\System32\USER32.dll:USER32.dll (00007FF84C480000), size: 1699840 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.4355
C:\Windows\System32\win32u.dll:win32u.dll (00007FF84C030000), size: 139264 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.4412
C:\Windows\System32\GDI32.dll:GDI32.dll (00007FF84DDF0000), size: 176128 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3996
flatbuffers::Parser::Parse() failed: (1, 1): error: illegal character: <
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
UnityEngine.Logger:Log (UnityEngine.LogType,object)
UnityEngine.Debug:LogError (object)
Firebase.Platform.FirebaseLogger:LogMessage (Firebase.Platform.PlatformLogLevel,string)
Firebase.LogUtil:LogMessage (Firebase.LogLevel,string)
Firebase.LogUtil:LogMessageFromCallback (Firebase.LogLevel,string)
Firebase.AppUtil:PollCallbacks ()
Firebase.Platform.FirebaseAppUtils:PollCallbacks ()
Firebase.Platform.FirebaseHandler:Update ()
Firebase.Platform.FirebaseMonoBehaviour:Update ()
Dominant language
C#
Stars
923
Forks
456
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from firebase/quickstart-unity

All issues in firebase/quickstart-unity

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.