Repository navigation
App not able to access firebase #50705
Copy link
Copy link
Closed
Description
hey guys i could really use some help I'm creating an app with flutter and it was running perfectly fine. when i started it up earlier I got this message.
D/FlutterActivity( 9935): Using the launch theme as normal theme.
D/FlutterActivityAndFragmentDelegate( 9935): Setting up FlutterEngine.
D/FlutterActivityAndFragmentDelegate( 9935): No preferred FlutterEngine was provided. Creating a new FlutterEngine for this FlutterFragment.
D/FlutterActivityAndFragmentDelegate( 9935): Attaching FlutterEngine to the Activity that owns this Fragment.
D/FlutterView( 9935): Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@b7ad9fe
D/FlutterActivityAndFragmentDelegate( 9935): Executing Dart entrypoint: main, and sending initial route: /
Syncing files to device Android SDK built for x86...
I/Cover.Me( 9935): Background concurrent copying GC freed 2937(283KB) AllocSpace objects, 1(20KB) LOS objects, 49% free, 1548KB/3096KB, paused 991us total 923.151ms
I/Cover.Me( 9935): WaitForGcToComplete blocked ProfileSaver on HeapTrim for 907.874ms
I/Cover.Me( 9935): Background young concurrent copying GC freed 13508(719KB) AllocSpace objects, 7(192KB) LOS objects, 22% free, 2393KB/3096KB, paused 898us total 133.145ms
D/FlutterView( 6408): Detaching from a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@2185ddf
I/Cover.Me( 9935): Background young concurrent copying GC freed 5834(376KB) AllocSpace objects, 8(416KB) LOS objects, 25% free, 2298KB/3096KB, paused 51.809ms total 295.151ms
I/FA ( 9935): Tag Manager is not found and thus will not be used
D/EGL_emulation( 9935): eglMakeCurrent: 0xdf3373c0: ver 3 0 (tinfo 0xbafbb4b0)
D/eglCodecCommon( 9935): setVertexArrayObject: set vao to 0 (0) 1 0
I/OpenGLRenderer( 9935): Davey! duration=5130ms; Flags=1, IntendedVsync=2152243720243, Vsync=2152410386903, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=2152425968200, AnimationStart=2152426054700, PerformTraversalsStart=2152426121600, DrawStart=2156207230700, SyncQueued=2156263782800, SyncStart=2156268249400, IssueDrawCommandsStart=2156270305800, SwapBuffers=2156873084500, FrameCompleted=2157378685400, DequeueBufferDuration=114502000, QueueBufferDuration=43749000,
I/Choreographer( 9935): Skipped 297 frames! The application may be doing too much work on its main thread.
I/OpenGLRenderer( 9935): Davey! duration=717ms; Flags=0, IntendedVsync=2157612844771, Vsync=2157912844759, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=2157919475600, AnimationStart=2157919567200, PerformTraversalsStart=2157919647600, DrawStart=2157954649400, SyncQueued=2157954727300, SyncStart=2157955788100, IssueDrawCommandsStart=2157956736000, SwapBuffers=2157974772000, FrameCompleted=2158331789300, DequeueBufferDuration=60053000, QueueBufferDuration=173626000,
W/Cover.Me( 9935): Verification of void com.google.android.gms.internal.measurement.zzb.() took 375.728ms
E/FirebaseInstanceId( 9935): binding to the service failed
I/Cover.Me( 9935): Background concurrent copying GC freed 7046(447KB) AllocSpace objects, 14(668KB) LOS objects, 49% free, 1879KB/3758KB, paused 5.796ms total 427.733ms
D/EGL_emulation( 9935): eglMakeCurrent: 0xd721a960: ver 3 0 (tinfo 0xbc4f22a0)
D/eglCodecCommon( 9935): setVertexArrayObject: set vao to 0 (0) 1 0
W/IInputConnectionWrapper( 9935): beginBatchEdit on inactive InputConnection
W/IInputConnectionWrapper( 9935): endBatchEdit on inactive InputConnection
I/BiChannelGoogleApi( 9935): [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzaq@1e183b
D/FirebaseAuth( 9935): Notifying id token listeners about user ( Jez1hdGmxTfK4GtuOP1HrwkPFIi2 ).
D/FirebaseAuth( 9935): Notifying auth state listeners about user ( Jez1hdGmxTfK4GtuOP1HrwkPFIi2 ).
W/Cover.Me( 9935): Verification of void com.google.firebase.firestore.local.SQLiteLruReferenceDelegate.onTransactionStarted() took 136.506ms
W/Cover.Me( 9935): Verification of void com.google.firebase.firestore.local.SQLiteMutationQueue.writeMutationQueueMetadata() took 193.936ms
W/DynamiteModule( 9935): Local module descriptor class for providerinstaller not found.
I/Cover.Me( 9935): Background young concurrent copying GC freed 19502(1117KB) AllocSpace objects, 8(416KB) LOS objects, 40% free, 2236KB/3758KB, paused 1.103ms total 549.276ms
W/Cover.Me( 9935): Verification of com.google.firestore.v1.WriteResultOrBuilder com.google.firestore.v1.WriteResponse.getWriteResultsOrBuilder(int) took 144.072ms
I/DynamiteModule( 9935): Considering local module providerinstaller:0 and remote module providerinstaller:0
W/ProviderInstaller( 9935): Failed to load providerinstaller module: No acceptable module found. Local version is 0 and remote version is 0.
I/Cover.Me( 9935): The ClassLoaderContext is a special shared library.
I/Cover.Me( 9935): The ClassLoaderContext is a special shared library.
W/Cover.Me( 9935): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed)
W/Cover.Me( 9935): Accessing hidden method Lsun/misc/Unsafe;->arrayBaseOffset(Ljava/lang/Class;)I (greylist,core-platform-api, linking, allowed)
W/Cover.Me( 9935): Accessing hidden method Lsun/misc/Unsafe;->copyMemory(JJJ)V (greylist, linking, allowed)
W/Cover.Me( 9935): Accessing hidden method Lsun/misc/Unsafe;->objectFieldOffset(Ljava/lang/reflect/Field;)J (greylist,core-platform-api, linking, allowed)
W/Cover.Me( 9935): Accessing hidden method Lsun/misc/Unsafe;->getByte(J)B (greylist,core-platform-api, linking, allowed)
W/Cover.Me( 9935): Accessing hidden method Lsun/misc/Unsafe;->getByte(Ljava/lang/Object;J)B (greylist,core-platform-api, linking, allowed)
W/Cover.Me( 9935): Accessing hidden method Lsun/misc/Unsafe;->getLong(J)J (greylist,core-platform-api, linking, allowed)
W/Cover.Me( 9935): Accessing hidden method Lsun/misc/Unsafe;->putByte(JB)V (greylist,core-platform-api, linking, allowed)
W/Cover.Me( 9935): Accessing hidden method Lsun/misc/Unsafe;->putByte(Ljava/lang/Object;JB)V (greylist,core-platform-api, linking, allowed)
W/Cover.Me( 9935): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, reflection, allowed)
W/Cover.Me( 9935): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, reflection, allowed)
W/Cover.Me( 9935): Accessing hidden field Ljava/nio/Buffer;->address:J (greylist, reflection, allowed)
I/Cover.Me( 9935): The ClassLoaderContext is a special shared library.
V/NativeCrypto( 9935): Registering com/google/android/gms/org/conscrypt/NativeCrypto's 286 native methods...
W/Cover.Me( 9935): Accessing hidden method Ljava/security/spec/ECParameterSpec;->getCurveName()Ljava/lang/String; (greylist, reflection, allowed)
D/NetworkSecurityConfig( 9935): No Network Security Config specified, using platform default
I/ProviderInstaller( 9935): Installed default security provider GmsCore_OpenSSL
W/Cover.Me( 9935): Verification of void io.opencensus.tags.NoopTags$NoopTagPropagationComponent.() took 143.979ms
W/Cover.Me( 9935): Verification of void com.google.common.base.MoreObjects.() took 260.102ms
W/Cover.Me( 9935): Verification of void io.grpc.internal.PickFirstLoadBalancer.handleNameResolutionError(io.grpc.Status) took 162.739ms
W/Cover.Me( 9935): Verification of void io.grpc.okhttp.OkHttpClientTransport.shutdownNow(io.grpc.Status) took 105.552ms
W/Cover.Me( 9935): Verification of void io.grpc.okhttp.internal.framed.Http2$Writer.writeContinuationFrames(int, long) took 137.799ms
W/Cover.Me( 9935): Accessing hidden field Ljava/net/Socket;->impl:Ljava/net/SocketImpl; (greylist, reflection, allowed)
W/Cover.Me( 9935): Accessing hidden method Ldalvik/system/CloseGuard;->get()Ldalvik/system/CloseGuard; (greylist,core-platform-api, linking, allowed)
W/Cover.Me( 9935): Accessing hidden method Ldalvik/system/CloseGuard;->open(Ljava/lang/String;)V (greylist,core-platform-api, linking, allowed)
W/Cover.Me( 9935): Accessing hidden field Ljava/io/FileDescriptor;->descriptor:I (greylist, JNI, allowed)
I/Cover.Me( 9935): Background concurrent copying GC freed 16059(1041KB) AllocSpace objects, 2(104KB) LOS objects, 49% free, 2715KB/5430KB, paused 869us total 649.688ms
W/Cover.Me( 9935): Accessing hidden method Ljava/security/spec/ECParameterSpec;->setCurveName(Ljava/lang/String;)V (greylist, reflection, allowed)
W/Cover.Me( 9935): Verification of void io.grpc.okhttp.internal.OkHostnameVerifier.() took 116.944ms
W/Cover.Me( 9935): Accessing hidden method Ldalvik/system/BlockGuard;->getThreadPolicy()Ldalvik/system/BlockGuard$Policy; (greylist,core-platform-api, linking, allowed)
W/Cover.Me( 9935): Accessing hidden method Ldalvik/system/BlockGuard$Policy;->onNetwork()V (greylist, linking, allowed)
W/Cover.Me( 9935): Verification of void com.google.firebase.firestore.proto.MaybeDocument.mergeNoDocument(com.google.firebase.firestore.proto.NoDocument) took 101.558ms
W/Activity( 9935): Can request only one set of permissions at a time
W/Cover.Me( 9935): Verification of java.lang.Object com.google.android.gms.location.zzah.createFromParcel(android.os.Parcel) took 111.667ms
I/flutter ( 9935): fetch set hearing
W/Cover.Me( 9935): Accessing hidden method Ldalvik/system/CloseGuard;->close()V (greylist,core-platform-api, linking, allowed)
D/EGL_emulation( 9935): eglMakeCurrent: 0xdf3373c0: ver 3 0 (tinfo 0xbafbb4b0)
D/FlutterActivity(10199): Using the launch theme as normal theme.
D/FlutterActivityAndFragmentDelegate(10199): Setting up FlutterEngine.
D/FlutterActivityAndFragmentDelegate(10199): No preferred FlutterEngine was provided. Creating a new FlutterEngine for this FlutterFragment.
W/Cover.Me( 9935): JNI critical lock held for 38.069ms on Thread[31,tid=10198,Runnable,Thread*=0xd3d7ee00,peer=0x1302f6d0,"Measurement Worker"]
D/FlutterActivityAndFragmentDelegate(10199): Attaching FlutterEngine to the Activity that owns this Fragment.
D/FlutterView(10199): Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@2185ddf
D/FlutterActivityAndFragmentDelegate(10199): Executing Dart entrypoint: main, and sending initial route: /
D/FlutterView( 9935): Detaching from a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@b7ad9fe
W/Cover.Me( 9935): Verification of void io.flutter.embedding.android.FlutterSplashView$SavedState.() took 101.460ms
W/Cover.Me( 9935): Accessing hidden method Ldalvik/system/CloseGuard;->warnIfOpen()V (greylist,core-platform-api, linking, allowed)
Ive created a brand new flutter app and i still get.
D/FlutterActivity(10199): Using the launch theme as normal theme.
D/FlutterActivityAndFragmentDelegate(10199): Setting up FlutterEngine.
D/FlutterActivityAndFragmentDelegate(10199): No preferred FlutterEngine was provided. Creating a new FlutterEngine for this FlutterFragment.
D/FlutterActivityAndFragmentDelegate(10199): Attaching FlutterEngine to the Activity that owns this Fragment.
D/FlutterView(10199): Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@2185ddf
D/FlutterActivityAndFragmentDelegate(10199): Executing Dart entrypoint: main, and sending initial route: /
Syncing files to device Android SDK built for x86...
D/EGL_emulation(10199): eglMakeCurrent: 0xd721a0c0: ver 3 0 (tinfo 0xd720f030)
D/eglCodecCommon(10199): setVertexArrayObject: set vao to 0 (0) 1 0
I/le.cover_me_ne(10199): NativeAlloc concurrent copying GC freed 2481(277KB) AllocSpace objects, 3(60KB) LOS objects, 57% free, 1132KB/2668KB, paused 897us total 273.482ms
I/OpenGLRenderer(10199): Davey! duration=2905ms; Flags=1, IntendedVsync=2558565036622, Vsync=2558781703280, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=2558794667900, AnimationStart=2558794772000, PerformTraversalsStart=2558794850400, DrawStart=2560359375700, SyncQueued=2560362508200, SyncStart=2560368021700, IssueDrawCommandsStart=2560377863200, SwapBuffers=2560959111900, FrameCompleted=2561476006100, DequeueBufferDuration=24878000, QueueBufferDuration=37087000,
I/Choreographer(10199): Skipped 161 frames! The application may be doing too much work on its main thread.
D/FlutterView( 9935): Detaching from a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@b7ad9fe
D/EGL_emulation(10199): eglMakeCurrent: 0xd721a360: ver 3 0 (tinfo 0xd720f700)
D/eglCodecCommon(10199): setVertexArrayObject: set vao to 0 (0) 1 0
The app does run but it is not communicating with firebase.
if I need to provide more information please let me know what you need.
Thank you for any help
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
TahaTesser commentedon Feb 13, 2020
Hi @wcyankees424
can you please provide your
flutter doctor -vandflutter run --verbose?Also, to better address the issue, would be helpful if you could post a minimal code sample to reproduce the problem
Thank you
wcyankees424 commentedon Feb 13, 2020
flutter doctor -v
[√] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.17763.973], locale en-US)
• Flutter version 1.12.13+hotfix.8 at C:\Users\caron\flutter
• Framework revision 0b8abb4 (2 days ago), 2020-02-11 11:44:36 -0800
• Engine revision e1e6ced
• Dart version 2.7.0
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at C:\Users\caron\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
• All Android licenses accepted.
[√] Android Studio (version 3.5)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 43.0.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[√] VS Code (version 1.42.0)
• VS Code at C:\Users\caron\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.8.1
[!] Connected device
! No devices available
! Doctor found issues in 1 category.
wcyankees424 commentedon Feb 13, 2020
wcyankees424 commentedon Feb 13, 2020
this issue persists even in a brand new flutter app so i don't think it has much to do with my app itself but i can provide you with a code snippet what should I provide?
TahaTesser commentedon Feb 13, 2020
Hi @wcyankees424
Can you please check device is connected and execute
flutter run --verbose?Thank you
wcyankees424 commentedon Feb 13, 2020
flutter run --verbose
sorry about that
u100021209 commentedon Feb 13, 2020
I also get this message even if I run a new project.
D/FlutterActivity(20328): Using the launch theme as normal theme.
D/FlutterActivityAndFragmentDelegate(20328): Setting up FlutterEngine.
D/FlutterActivityAndFragmentDelegate(20328): No preferred FlutterEngine was provided. Creating a new FlutterEngine for this FlutterFragment.
D/FlutterActivityAndFragmentDelegate(20328): Attaching FlutterEngine to the Activity that owns this Fragment.
D/FlutterView(20328): Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@3fee3be
D/FlutterActivityAndFragmentDelegate(20328): Executing Dart entrypoint: main, and sending initial route: /
Syncing files to device ASUS X00QD...
21 remaining items
TahaTesser commentedon Feb 14, 2020
Hi @wcyankees424
Glad it worked out for you.
Thank you for contribution
christopherfujino commentedon Feb 14, 2020
I'm glad you got your app working. As far as logs being more verbose, this is actually working as intended, see #50628 for more context.
talatkuyuk commentedon Feb 14, 2020
Nowadays, I am receiving exact the same messages from flutter like wcyankees424 . The firebase authentication connection is also lost and unable to login or create user. 3-4 days ago they were all good, suddenly I started to receive these messages.
I have solved the firebase authantication and cloud firestore issues by booting cold the emulator via android studio AVD. This was something google play issue. Google play service was updated in the emulator. Now, my project is able to connect firebase authantication and cloud firestore.
But, I continue to get messages:
D/FlutterActivity( 5366): Using the launch theme as normal theme.
D/FlutterActivityAndFragmentDelegate( 5366): Setting up FlutterEngine.
D/FlutterActivityAndFragmentDelegate( 5366): No preferred FlutterEngine was provided. Creating a new FlutterEngine for this FlutterFragment.
D/FlutterActivityAndFragmentDelegate( 5366): Attaching FlutterEngine to the Activity that owns this Fragment.
D/FlutterView( 5366): Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@63b778e
D/FlutterActivityAndFragmentDelegate( 5366): Executing Dart entrypoint: main, and sending initial route: /
D/EGL_emulation( 5366): eglMakeCurrent: 0x97b91900: ver 2 0 (tinfo 0x97bd5f40)
I have also noticed that I started to get these messages after upgraing the flutter TODAY since I receieved a message there is update for flutter. (>flutter upgrade --force)
christopherfujino commentedon Feb 16, 2020
@talatkuyuk please see my above comment regarding logs.
joekendal commentedon May 7, 2020
Followed @wcyankees424 's steps by creating a new project, problem still persists
joekendal commentedon May 7, 2020
If you stumble onto this thread in the future after Googling the problem then I just wanted to let you know that I did not manage to fix this but by removing Google Analytics integration from the Firebase Console and then removing google_analytics from the pubspec and build.gradle, I was able to continue developing my app so that I could make progress and hopefully come back to this issue after I'm done with the core product features. You may want to try experimenting with different google analytics package versions though..
dragosholban commentedon May 8, 2020
I have the same issue, flutter app is not able to access Firestore for the first few minutes after installing on device. I always get:
(21.3.0) [OnlineStateTracker]: Could not reach Cloud Firestore backend. Backend didn't respond within 10 secondsAfter some time passes, I get in the logs:
... then it suddenly works. Anyone can help?
joekendal commentedon May 9, 2020
@dragosholban idk but ik they released an update today
casualcoder404 commentedon May 9, 2020
I'm also having a same issue and any help will be much appreciated.
#56767 (comment)
casualcoder404 commentedon May 9, 2020
I tried removing Analytics integration from console, updated google services json file and commented out firebase_analytics: ^5.0.2
But I couldn't find any trace in build.gradle and the problem persists.
When I setData to firestore, it doesn't show up in whenComplete or on firebase console, however when I query the same data using .get() I can receive it inside my app.
Please help
joekendal commentedon May 10, 2020
@casualcoder404 What's the error message. Can you post the logs
casualcoder404 commentedon May 10, 2020
Thanks for reply brother.
I figured out that my app was exceeding the daily 50k free writes of firebase spark plan.
But I didn't get any error in my log or on my console. There should be some way to get notified.
github-actions commentedon Aug 21, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.