[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Any reason Firebase SDK might randomly turn itself off? #1242

Closed
dginovker opened this issue Mar 17, 2022 · 3 comments
Closed

[Question] Any reason Firebase SDK might randomly turn itself off? #1242

dginovker opened this issue Mar 17, 2022 · 3 comments
Labels
api: core closed-by-bot needs-info Need information for the developer stale Don't have recent activity type: question

Comments

@dginovker
Copy link

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2019.4.28f1
  • Firebase Unity SDK version: 8.6.0
  • Source you installed the SDK: .unitypackage
  • Problematic Firebase Component: RemoteConfig, Storage, none of the others
  • Other Firebase Components in use: Pretty much all of them tbh
  • Additional SDKs you are using: AppLovin
  • Platform you are using the Unity editor on: Mac, Linux
  • Platform you are targeting: Android
  • Scripting Runtime: IL2CPP

[REQUIRED] Please describe the question here:

We were having an issue on our app with a single user would randomly have their Firebase Analytics turned off mid-app. We narrowed it down to an Application.OpenURL("https://discord.gg/redacted") call, but that's where it gets weird:

03-16 22:22:37.069 24496 24707 V Discord : <-- 200 https://discord.com/api/v9/channels/redacted/messages/redacted/ack (106ms, 14-byte body)
03-16 22:22:37.081  9919 10032 W Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
03-16 22:22:37.082  9919 10032 W Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
03-16 22:22:37.086  9919 10032 W Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
03-16 22:22:37.090  9919 10032 W Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
03-16 22:22:37.094  9919 10032 W Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
03-16 22:22:37.094  1242  1347 I heimdall: update_proc_tgid:436, put sh(25433) in root memcg
03-16 22:22:37.097  9919 10032 W Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
03-16 22:22:37.100 21945 22278 W Unity   : FirebaseStorage.OnAppDisposed()
03-16 22:22:37.100 21945 22278 W Unity   : Firebase.Storage.FirebaseStorage:OnAppDisposed(Object, EventArgs)
03-16 22:22:37.100 21945 22278 W Unity   : System.EventHandler:Invoke(Object, EventArgs)
03-16 22:22:37.100 21945 22278 W Unity   : Firebase.FirebaseApp:Dispose()
03-16 22:22:37.100 21945 22278 W Unity   :  
03-16 22:22:37.100 21945 22278 W Unity   : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39)
03-16 22:22:37.100 21945 22278 W Unity   : 
03-16 22:22:37.101  9919 10032 W Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
03-16 22:22:37.106 21945 22278 W Unity   : FirebaseRemoteConfig.OnAppDisposed()
03-16 22:22:37.106 21945 22278 W Unity   : Firebase.RemoteConfig.FirebaseRemoteConfig:OnAppDisposed(Object, EventArgs)
03-16 22:22:37.106 21945 22278 W Unity   : System.EventHandler:Invoke(Object, EventArgs)
03-16 22:22:37.106 21945 22278 W Unity   : Firebase.FirebaseApp:Dispose()
03-16 22:22:37.106 21945 22278 W Unity   :  
03-16 22:22:37.106 21945 22278 W Unity   : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39)
03-16 22:22:37.106 21945 22278 W Unity   : 

Both FirebaseRemoteConfig and FirebaseStorage are calling .Dispose, but the stack trace doesn't come from anywhere. Is there anything in the SDK that could cause this? Docs don't mention it anywhere, and without a way to check Firebase instanced for if they've been Disposed, we don't have a great solution other than catching the exception and re-initializing everything.

@paulinon
Copy link
Contributor

Hi @dginovker,

This issue seems rather unusual. Could you try if updating the SDK to its latest version makes a difference? If it doesn't, please provide a minimal, reproducible example so that we can identify the cause of this behavior.

@paulinon paulinon added the needs-info Need information for the developer label Mar 18, 2022
@google-oss-bot google-oss-bot added the stale Don't have recent activity label Mar 25, 2022
@google-oss-bot
Copy link

Hey @dginovker. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@google-oss-bot
Copy link

Since there haven't been any recent updates here, I am going to close this issue.

@dginovker if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

@firebase firebase locked and limited conversation to collaborators May 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: core closed-by-bot needs-info Need information for the developer stale Don't have recent activity type: question
Projects
None yet
Development

No branches or pull requests

3 participants