- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我最近将我的代码从 Firebase Client 2.5.2+ 切换到 Firebase Database 9.4.0,现在我经常遇到内存泄漏问题。
这是日志中出现的内容,
09-08 19:48:48.996 5535-5535/com.leskoenterprises.buddybelt D/ResourcesManager: For user 0 new overlays fetched Null
09-08 19:48:49.006 5535-5535/com.leskoenterprises.buddybelt I/DynamiteModule: Considering local module com.google.android.gms.firebase_database:3 and remote module com.google.android.gms.firebase_database:3
09-08 19:48:49.006 5535-5535/com.leskoenterprises.buddybelt I/DynamiteModule: Selected remote version of com.google.android.gms.firebase_database, version >= 3
09-08 19:48:49.036 5535-5535/com.leskoenterprises.buddybelt W/ResourcesManager: getTopLevelResources: /data/app/com.google.android.gms-2/base.apk / 1.0 running in com.leskoenterprises.buddybelt rsrc of package com.google.android.gms
09-08 19:48:49.056 5535-5535/com.leskoenterprises.buddybelt I/InjectionManager: Inside getClassLibPath caller
09-08 19:48:49.086 5535-5535/com.leskoenterprises.buddybelt W/System: ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000008/n/arm64-v8a
09-08 19:48:49.096 5535-5535/com.leskoenterprises.buddybelt D/ChimeraFileApk: Primary ABI of requesting process is arm64-v8a
09-08 19:48:49.096 5535-5535/com.leskoenterprises.buddybelt D/ChimeraFileApk: Classloading successful. Optimized code found.
09-08 19:48:49.136 5535-5535/com.leskoenterprises.buddybelt W/ResourcesManager: getTopLevelResources: /data/app/com.leskoenterprises.buddybelt-2/base.apk / 1.0 running in com.leskoenterprises.buddybelt rsrc of package com.leskoenterprises.buddybelt
09-08 19:48:49.286 5535-5535/com.leskoenterprises.buddybelt I/zzai: Making Creator dynamically
09-08 19:48:49.306 5535-5535/com.leskoenterprises.buddybelt W/System: ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000007/n/arm64-v8a
09-08 19:48:49.316 5535-5535/com.leskoenterprises.buddybelt D/ChimeraFileApk: Primary ABI of requesting process is arm64-v8a
09-08 19:48:49.316 5535-5535/com.leskoenterprises.buddybelt D/ChimeraFileApk: Classloading successful. Optimized code found.
09-08 19:48:49.386 5535-5535/com.leskoenterprises.buddybelt I/Google Maps Android API: Google Play services client version: 9452000
09-08 19:48:49.396 5535-5535/com.leskoenterprises.buddybelt I/Google Maps Android API: Google Play services package version: 9452440
09-08 19:48:49.676 5535-5535/com.leskoenterprises.buddybelt I/c: Token loaded from file. Expires in: 347134577 ms.
09-08 19:48:49.676 5535-5535/com.leskoenterprises.buddybelt I/c: Scheduling next attempt in 346834 seconds.
09-08 19:48:49.756 5535-5535/com.leskoenterprises.buddybelt D/AbsListView: Get MotionRecognitionManager
09-08 19:48:49.766 5535-5535/com.leskoenterprises.buddybelt E/MotionRecognitionManager: mSContextService = android.hardware.scontext.ISContextService$Stub$Proxy@c781c09
09-08 19:48:49.766 5535-5535/com.leskoenterprises.buddybelt E/MotionRecognitionManager: motionService = com.samsung.android.motion.IMotionRecognitionService$Stub$Proxy@fa4de0e
09-08 19:48:49.766 5535-5535/com.leskoenterprises.buddybelt E/MotionRecognitionManager: motionService = com.samsung.android.motion.IMotionRecognitionService$Stub$Proxy@fa4de0e
09-08 19:48:49.796 5535-5535/com.leskoenterprises.buddybelt W/System.err: mkdir failed: EEXIST (File exists) : /storage/emulated/0/Android/data/com.leskoenterprises.buddybelt/cache/debug
09-08 19:48:49.796 5535-5535/com.leskoenterprises.buddybelt W/System.err: mkdir failed: EEXIST (File exists) : /storage/emulated/0/Android/data/com.leskoenterprises.buddybelt/cache
09-08 19:48:49.806 5535-6225/com.leskoenterprises.buddybelt I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
09-08 19:48:49.806 5535-6225/com.leskoenterprises.buddybelt I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
09-08 19:48:49.866 5535-6225/com.leskoenterprises.buddybelt I/qtaguid: Tagging socket 77 with tag 3000110100000000{805310721,0} uid -1, pid: 5535, getuid(): 10414
09-08 19:48:49.866 5535-6225/com.leskoenterprises.buddybelt I/qtaguid: Untagging socket 77
09-08 19:48:49.866 5535-6225/com.leskoenterprises.buddybelt I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
09-08 19:48:49.866 5535-6225/com.leskoenterprises.buddybelt I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
09-08 19:48:49.866 5535-6225/com.leskoenterprises.buddybelt I/qtaguid: Tagging socket 77 with tag 3000110100000000{805310721,0} uid -1, pid: 5535, getuid(): 10414
09-08 19:48:49.886 5535-5535/com.leskoenterprises.buddybelt D/Activity: performCreate Call Injection manager
09-08 19:48:49.926 5535-5535/com.leskoenterprises.buddybelt I/InjectionManager: dispatchOnViewCreated > Target : com.leskoenterprises.buddybelt.MapsActivity isFragment :false
09-08 19:48:49.936 5535-5535/com.leskoenterprises.buddybelt D/SecWifiDisplayUtil: Metadata value : SecSettings2
09-08 19:48:49.936 5535-5535/com.leskoenterprises.buddybelt D/ViewRootImpl: #1 mView = com.android.internal.policy.PhoneWindow$DecorView{d79e00b I.E...... R.....ID 0,0-0,0}
09-08 19:48:49.996 5535-6225/com.leskoenterprises.buddybelt I/qtaguid: Tagging socket 84 with tag 3000110100000000{805310721,0} uid -1, pid: 5535, getuid(): 10414
09-08 19:48:50.006 5535-5535/com.leskoenterprises.buddybelt I/System.out: MAPSonAuthStateChanged:signed_in:r3j0QrNzWHQ0U3Cdjz5Py110X6y2
09-08 19:48:50.066 5535-5800/com.leskoenterprises.buddybelt D/mali_winsys: new_window_surface returns 0x3000, [1440x2560]-format:1
09-08 19:48:50.116 5535-5535/com.leskoenterprises.buddybelt W/DisplayListCanvas: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
09-08 19:48:50.126 5535-6275/com.leskoenterprises.buddybelt D/libEGL: eglInitialize EGLDisplay = 0x7f5c90dea8
09-08 19:48:50.136 5535-6225/com.leskoenterprises.buddybelt I/qtaguid: Untagging socket 77
09-08 19:48:50.146 5535-6275/com.leskoenterprises.buddybelt D/mali_winsys: new_window_surface returns 0x3000, [1440x2040]-format:2
09-08 19:48:50.206 5535-5535/com.leskoenterprises.buddybelt I/InjectionManager: dispatchCreateOptionsMenu :com.leskoenterprises.buddybelt.MapsActivity
09-08 19:48:50.206 5535-5535/com.leskoenterprises.buddybelt I/InjectionManager: dispatchPrepareOptionsMenu :com.leskoenterprises.buddybelt.MapsActivity
09-08 19:48:50.206 5535-5535/com.leskoenterprises.buddybelt D/ViewRootImpl: MSG_RESIZED_REPORT: ci=Rect(0, 96 - 0, 0) vi=Rect(0, 96 - 0, 0) or=1
09-08 19:48:50.266 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; getDrawOrder(): no-op, return DrawOrder.HEADS_UP_DISPLAY
09-08 19:48:50.266 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; getDrawOrder(): no-op, return DrawOrder.HEADS_UP_DISPLAY
09-08 19:48:50.266 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; getDrawOrder(): no-op, return DrawOrder.HEADS_UP_DISPLAY
09-08 19:48:50.266 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; getDrawOrder(): no-op, return DrawOrder.HEADS_UP_DISPLAY
09-08 19:48:50.266 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; getDrawOrder(): no-op, return DrawOrder.HEADS_UP_DISPLAY
09-08 19:48:50.266 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; getDrawOrder(): no-op, return DrawOrder.HEADS_UP_DISPLAY
09-08 19:48:50.266 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; getDrawOrder(): no-op, return DrawOrder.HEADS_UP_DISPLAY
09-08 19:48:50.286 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:50.376 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:50.416 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:50.446 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:50.476 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:50.486 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:50.526 5535-5546/com.leskoenterprises.buddybelt I/art: Background sticky concurrent mark sweep GC freed 23351(693KB) AllocSpace objects, 7(4MB) LOS objects, 0% free, 192MB/192MB, paused 25.943ms total 104.066ms
09-08 19:48:50.526 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:50.536 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:50.566 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:50.586 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:50.606 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:50.686 5535-5541/com.leskoenterprises.buddybelt W/art: Suspending all threads took: 76.794ms
09-08 19:48:50.686 5535-5546/com.leskoenterprises.buddybelt I/art: Background partial concurrent mark sweep GC freed 15513(565KB) AllocSpace objects, 24(6MB) LOS objects, 7% free, 189MB/205MB, paused 46.811ms total 161.788ms
09-08 19:48:50.716 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:50.736 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:50.746 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:50.756 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:50.776 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:50.786 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:50.806 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:50.826 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:50.836 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:50.856 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:50.876 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:50.886 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:50.906 5535-6275/com.leskoenterprises.buddybelt W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op
09-08 19:48:51.106 5535-5535/com.leskoenterprises.buddybelt D/AndroidRuntime: Shutting down VM
09-08 19:48:51.146 5535-5541/com.leskoenterprises.buddybelt W/art: Suspending all threads took: 36.104ms
09-08 19:48:51.576 5535-5546/com.leskoenterprises.buddybelt I/art: Background sticky concurrent mark sweep GC freed 278200(13MB) AllocSpace objects, 12(6MB) LOS objects, 0% free, 230MB/230MB, paused 38.106ms total 428.917ms
09-08 19:48:51.656 5535-5541/com.leskoenterprises.buddybelt W/art: Suspending all threads took: 42.349ms
09-08 19:48:51.906 5535-6277/com.leskoenterprises.buddybelt W/DynamiteModule: Local module descriptor class for com.google.android.gms.googlecertificates not found.
09-08 19:48:51.946 5535-6277/com.leskoenterprises.buddybelt W/ResourcesManager: getTopLevelResources: /data/app/com.google.android.gms-2/base.apk / 1.0 running in com.leskoenterprises.buddybelt rsrc of package com.google.android.gms
09-08 19:48:51.966 5535-6277/com.leskoenterprises.buddybelt I/DynamiteModule: Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:1
09-08 19:48:51.966 5535-6277/com.leskoenterprises.buddybelt I/DynamiteModule: Selected remote version of com.google.android.gms.googlecertificates, version >= 1
09-08 19:48:51.976 5535-5535/com.leskoenterprises.buddybelt I/art: Waiting for a blocking GC Alloc
09-08 19:48:51.996 5535-5546/com.leskoenterprises.buddybelt I/art: Background partial concurrent mark sweep GC freed 70069(7MB) AllocSpace objects, 11(22MB) LOS objects, 6% free, 225MB/241MB, paused 14.201ms total 94.583ms
09-08 19:48:51.996 5535-5535/com.leskoenterprises.buddybelt I/art: WaitForGcToComplete blocked for 11.582ms for cause Alloc
09-08 19:48:51.996 5535-5535/com.leskoenterprises.buddybelt I/art: Starting a blocking GC Alloc
09-08 19:48:52.016 5535-6277/com.leskoenterprises.buddybelt D/ChimeraFileApk: Primary ABI of requesting process is arm64-v8a
09-08 19:48:52.016 5535-6277/com.leskoenterprises.buddybelt D/ChimeraFileApk: Classloading successful. Optimized code found.
09-08 19:48:52.016 5535-6277/com.leskoenterprises.buddybelt D/GoogleCertificates: com.google.android.gms.googlecertificates module is loaded
09-08 19:48:52.076 5535-5546/com.leskoenterprises.buddybelt I/art: Background sticky concurrent mark sweep GC freed 50945(5MB) AllocSpace objects, 0(0B) LOS objects, 0% free, 249MB/249MB, paused 5.239ms total 47.605ms
09-08 19:48:52.156 5535-5541/com.leskoenterprises.buddybelt W/art: Suspending all threads took: 39.823ms
09-08 19:48:52.156 5535-5546/com.leskoenterprises.buddybelt W/art: Suspending all threads took: 5.245ms
09-08 19:48:52.166 5535-5546/com.leskoenterprises.buddybelt I/art: Background partial concurrent mark sweep GC freed 33547(3MB) AllocSpace objects, 1(15MB) LOS objects, 6% free, 234MB/250MB, paused 6.064ms total 73.149ms
09-08 19:48:52.196 5535-6277/com.leskoenterprises.buddybelt D/GoogleCertificatesImpl: Fetched 163 Google release certificates
09-08 19:48:52.196 5535-5535/com.leskoenterprises.buddybelt I/art: Starting a blocking GC Alloc
09-08 19:48:52.196 5535-5535/com.leskoenterprises.buddybelt I/art: Starting a blocking GC Alloc
09-08 19:48:52.196 5535-6277/com.leskoenterprises.buddybelt D/GoogleCertificatesImpl: Fetched 318 Google certificates
09-08 19:48:52.206 5535-5535/com.leskoenterprises.buddybelt I/art: Alloc sticky concurrent mark sweep GC freed 33137(3MB) AllocSpace objects, 0(0B) LOS objects, 6% free, 233MB/249MB, paused 2.273ms total 15.101ms
09-08 19:48:52.246 5535-5535/com.leskoenterprises.buddybelt I/art: Waiting for a blocking GC Alloc
09-08 19:48:52.256 5535-5535/com.leskoenterprises.buddybelt I/art: WaitForGcToComplete blocked for 13.671ms for cause Alloc
09-08 19:48:52.256 5535-5535/com.leskoenterprises.buddybelt I/art: Starting a blocking GC Alloc
09-08 19:48:52.266 5535-5535/com.leskoenterprises.buddybelt I/art: Starting a blocking GC Alloc
09-08 19:48:52.326 5535-5535/com.leskoenterprises.buddybelt I/art: Alloc partial concurrent mark sweep GC freed 183(18KB) AllocSpace objects, 1(23MB) LOS objects, 6% free, 228MB/244MB, paused 622us total 63.926ms
09-08 19:48:52.366 5535-5535/com.leskoenterprises.buddybelt I/art: Waiting for a blocking GC Alloc
09-08 19:48:52.366 5535-5535/com.leskoenterprises.buddybelt I/art: WaitForGcToComplete blocked for 9.222ms for cause Alloc
09-08 19:48:52.366 5535-5535/com.leskoenterprises.buddybelt I/art: Starting a blocking GC Alloc
09-08 19:48:52.376 5535-5535/com.leskoenterprises.buddybelt I/art: Starting a blocking GC Alloc
09-08 19:48:52.436 5535-5535/com.leskoenterprises.buddybelt I/art: Clamp target GC heap from 264MB to 256MB
09-08 19:48:52.436 5535-5535/com.leskoenterprises.buddybelt I/art: Alloc partial concurrent mark sweep GC freed 37(3KB) AllocSpace objects, 0(0B) LOS objects, 3% free, 248MB/256MB, paused 627us total 56.868ms
09-08 19:48:52.446 5535-5535/com.leskoenterprises.buddybelt I/art: Starting a blocking GC Alloc
09-08 19:48:52.446 5535-5535/com.leskoenterprises.buddybelt I/art: Alloc sticky concurrent mark sweep GC freed 0(0B) AllocSpace objects, 0(0B) LOS objects, 3% free, 248MB/256MB, paused 507us total 5.864ms
09-08 19:48:52.456 5535-5535/com.leskoenterprises.buddybelt I/art: Starting a blocking GC Alloc
09-08 19:48:52.526 5535-5535/com.leskoenterprises.buddybelt I/art: Clamp target GC heap from 264MB to 256MB
09-08 19:48:52.526 5535-5535/com.leskoenterprises.buddybelt I/art: Alloc concurrent mark sweep GC freed 25(12KB) AllocSpace objects, 0(0B) LOS objects, 3% free, 248MB/256MB, paused 513us total 72.830ms
09-08 19:48:52.536 5535-5535/com.leskoenterprises.buddybelt I/art: Forcing collection of SoftReferences for 19MB allocation
09-08 19:48:52.536 5535-5535/com.leskoenterprises.buddybelt I/art: Starting a blocking GC Alloc
09-08 19:48:52.596 5535-5535/com.leskoenterprises.buddybelt I/art: Clamp target GC heap from 264MB to 256MB
09-08 19:48:52.596 5535-5535/com.leskoenterprises.buddybelt I/art: Alloc concurrent mark sweep GC freed 6(128B) AllocSpace objects, 0(0B) LOS objects, 3% free, 248MB/256MB, paused 534us total 65.833ms
09-08 19:48:52.606 5535-5535/com.leskoenterprises.buddybelt W/art: Throwing OutOfMemoryError "Failed to allocate a 20169966 byte allocation with 8353792 free bytes and 7MB until OOM"
09-08 19:48:52.606 5535-5535/com.leskoenterprises.buddybelt I/art: Starting a blocking GC Alloc
09-08 19:48:52.606 5535-5535/com.leskoenterprises.buddybelt I/art: Starting a blocking GC Alloc
09-08 19:48:52.616 5535-5535/com.leskoenterprises.buddybelt I/art: Alloc sticky concurrent mark sweep GC freed 3(368B) AllocSpace objects, 0(0B) LOS objects, 3% free, 248MB/256MB, paused 557us total 5.973ms
09-08 19:48:52.616 5535-5535/com.leskoenterprises.buddybelt I/art: Starting a blocking GC Alloc
09-08 19:48:52.686 5535-5535/com.leskoenterprises.buddybelt I/art: Clamp target GC heap from 264MB to 256MB
09-08 19:48:52.686 5535-5535/com.leskoenterprises.buddybelt I/art: Alloc partial concurrent mark sweep GC freed 14(512B) AllocSpace objects, 0(0B) LOS objects, 3% free, 248MB/256MB, paused 677us total 64.068ms
09-08 19:48:52.696 5535-5535/com.leskoenterprises.buddybelt W/art: Suspending all threads took: 8.278ms
09-08 19:48:52.696 5535-5535/com.leskoenterprises.buddybelt I/art: Starting a blocking GC Alloc
09-08 19:48:52.756 5535-5535/com.leskoenterprises.buddybelt I/art: Clamp target GC heap from 264MB to 256MB
09-08 19:48:52.756 5535-5535/com.leskoenterprises.buddybelt I/art: Alloc concurrent mark sweep GC freed 3(96B) AllocSpace objects, 0(0B) LOS objects, 3% free, 248MB/256MB, paused 505us total 60.523ms
09-08 19:48:52.766 5535-5535/com.leskoenterprises.buddybelt I/art: Forcing collection of SoftReferences for 19MB allocation
09-08 19:48:52.766 5535-5535/com.leskoenterprises.buddybelt I/art: Starting a blocking GC Alloc
09-08 19:48:52.836 5535-5535/com.leskoenterprises.buddybelt I/art: Clamp target GC heap from 264MB to 256MB
09-08 19:48:52.836 5535-5535/com.leskoenterprises.buddybelt I/art: Alloc concurrent mark sweep GC freed 1(32B) AllocSpace objects, 0(0B) LOS objects, 3% free, 248MB/256MB, paused 486us total 69.653ms
09-08 19:48:52.836 5535-5535/com.leskoenterprises.buddybelt I/art: Starting a blocking GC HomogeneousSpaceCompact
09-08 19:48:53.066 5535-5535/com.leskoenterprises.buddybelt I/art: Clamp target GC heap from 264MB to 256MB
09-08 19:48:53.066 5535-5535/com.leskoenterprises.buddybelt I/art: HomogeneousSpaceCompact marksweep + semispace GC freed 2(64B) AllocSpace objects, 0(0B) LOS objects, 3% free, 248MB/256MB, paused 227.030ms total 227.030ms
09-08 19:48:53.066 5535-5535/com.leskoenterprises.buddybelt W/art: Throwing OutOfMemoryError "Failed to allocate a 20169966 byte allocation with 8349984 free bytes and 7MB until OOM"
09-08 19:48:53.086 5535-5535/com.leskoenterprises.buddybelt E/AndroidRuntime: Error reporting crash
java.lang.OutOfMemoryError: Failed to allocate a 20169966 byte allocation with 8349984 free bytes and 7MB until OOM
at java.lang.StringFactory.newStringFromChars(Native Method)
at java.lang.AbstractStringBuilder.toString(AbstractStringBuilder.java:629)
at java.lang.StringBuilder.toString(StringBuilder.java:663)
at com.android.internal.os.RuntimeInit.Clog_e(RuntimeInit.java:60)
at com.android.internal.os.RuntimeInit.access$200(RuntimeInit.java:44)
at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:92)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
09-08 19:48:53.086 5535-5535/com.leskoenterprises.buddybelt I/Process: Sending signal. PID: 5535 SIG: 9
另外,我的典型事件监听器是这样的,
public void getEmail(String uid) {
// DatabaseReference ref = FirebaseDatabase.getInstance().getReference(); // This is static.. I thought maybe it was because I was instantiating it over and over again...
Query queryRef = ref.orderByChild("emails").equalTo(uid);
queryRef.addChildEventListener(new ChildEventListener() {
@Override
public void onChildAdded(DataSnapshot dataSnapshot, String s) {
System.out.println("GETKEY: GETUIDS: " + dataSnapshot.getKey());
String useremail = dataSnapshot.getKey();
}
@Override
public void onChildChanged(DataSnapshot dataSnapshot, String s) {
}
@Override
public void onChildRemoved(DataSnapshot dataSnapshot) {
}
@Override
public void onChildMoved(DataSnapshot dataSnapshot, String s) {
}
@Override
public void onCancelled(DatabaseError firebaseError) {
}
});
}
我应该删除事件监听器吗?如果是这样,我应该怎么做?
谢谢!
最佳答案
在 firebase 3 上,回调发生了变化。这就是您通常回电的方式。
queryRef.addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
}
@Override
public void onCancelled(DatabaseError databaseError) {
}
});
关于java - 切换到 Firebase 数据库 9.4.0 内存泄漏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39401872/
我刚刚设置了新的 Firebase 托管以及我的自定义域和我的网页等... 一切都很好,除了真正困扰我的是默认域: projectname.web.app projectname.firebaseap
Firebase 云消息传递和 Firebase 应用内消息传递有什么区别?它们都会向您的应用发送发生了某些事情的通知。我查看了他们的文档,这些是他们的单行描述: Firebase 云消息传递: Fi
是否有任何工具可以帮助将数据从开发迁移到登台再到生产?如果没有,是否有计划 build 它们? 我知道您可以从 Forge 导出 JSON 和导入 JSON,但这不包括授权和安全设置。 最佳答案 我们
firebase 网络应用和 firebase 托管有什么区别?据我所知,网络应用程序用于实际上只是浏览器的应用程序,并且 firebase 托管仅用于网站。 最佳答案 Firebase for We
我有两个 firebase 项目 F1 和 F2。我正在使用基于密码的身份验证来识别 F1 上的用户。我希望在 F2 中识别相同的用户。所以我正在考虑以下基于 this question 的场景: C
正在使用 firebase 云功能 构建服务器,我需要其他服务器来调用我的服务器端点。最重要的是,我需要这些调用我的服务器的第三方域进行身份验证。 问题 1:如何创建这样的服务帐户,在调用中包含服务帐
我开发了一个应用程序来测试使用 flutter 和谷歌身份验证的谷歌登录功能。该项目是一个封闭的项目,只有我可以访问它。但最近我看到有一个来自未知电子邮件 ID 的谷歌登录。用户如何在没有构建我的应用
我有 2 个存储库,一个用于 firebase 功能,另一个用于静态 firebase 托管 react 站点。他们都使用相同的firebase项目。 myfirebaseproject --- fi
背景 -我正在设置一项新功能,允许用户选择他们所在的城市,因为我的应用程序是一个公共(public)交通应用程序。我希望城市位于单独的数据库中,为此我在我的 firebase 项目中创建了一个辅助数据
我构建了一个网络平台,允许用户使用一个用户帐户注册多个网络应用程序。每个应用程序都有自己独立的 Firebase 数据库。是否可以使用 firebase 身份验证并在各种 firebase 数据库之间
在 Firebase 控制台内的 Cloud Messaging View 下,用户可以创建测试通知。此功能还允许您安排通知将发送到一个设备或一组设备的时间。 是否可以创建和发送预定 使用 Fireb
我们正在为我们最近的项目使用 firebase 平台。我们最近推出并一直在监控使用情况。 我可以在 firebase 控制台中看到 firebase 调用的总数,但找不到查看每个函数调用次数的方法。
我正在开发一个使用 Webpack 捆绑模块的 Web 应用程序。无论出于何种原因,在应用程序中引入 Firebase 都会导致 Webpack 抛出错误。当 Webpack 尝试加载 Firebas
我无法在 firebase 控制台中提交支持请求。 登录 Firebase 控制台 导航至 https://firebase.google.com/support/contact/troublesho
我安装 Firebase CLI (firebase-tools) https://github.com/firebase/firebase-tools通过此代码: curl -sL firebase
在我的应用程序中,我尝试使用Firebase crash10.2.1,但无法获得编译的好处。我不断收到消息: 'Failed to resolve:com.google.firebase:fireba
我的 firebase 应用有一个注册用户列表。这些是通过电子邮件和密码身份验证创建的。 我想将 Firebase 数据和用户列表传输到另一个 Firebase 应用。 传输 firebase 数据很
如果我将数据插入到 firebase 中的 node/a/0 中。 结果将把a视为数组a[0]。 同样,如果我在 node/a/1 中设置数据,第一个数组将变为 null "a" : [
我是 Firebase 新手,我正在尝试 Firebase 数据库规则和 Firebase 身份验证。 我尝试使用 firebase 身份验证来执行 firebase 数据库规则。 因此,我创建了一封
所以场景如下: 当我从 Firebase 存储访问文件时: 我从存储桶获取文件(.html、.png、.zip 等)(尺寸较小,不超过 2mb)。 将该文件存储在我的本地存储中,这样应用就不需要再次下
我是一名优秀的程序员,十分优秀!