- 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/
我在具有 2CPU 和 3.75GB 内存 (https://aws.amazon.com/ec2/instance-types/) 的 c3.large Amazon EC2 ubuntu 机器上运
我想通过用户空间中的mmap-ing并将地址发送到内核空间从用户空间写入VGA内存(视频内存,而不是缓冲区),我将使用pfn remap将这些mmap-ed地址映射到vga内存(我将通过 lspci
在 Mathematica 中,如果你想让一个函数记住它的值,它在语法上是很轻松的。例如,这是标准示例 - 斐波那契: fib[1] = 1 fib[2] = 1 fib[n_]:= fib[n] =
我读到动态内存是在运行时在堆上分配的,而静态内存是在编译时在堆栈上分配的,因为编译器知道在编译时必须分配多少内存。 考虑以下代码: int n; cin>>n; int a[n]; 如果仅在运行期间读
我是 Python 的新手,但我之前还不知道这一点。我在 for 循环中有一个基本程序,它从站点请求数据并将其保存到文本文件但是当我检查我的任务管理器时,我发现内存使用量只增加了?长时间运行时,这对我
我正在设计一组数学函数并在 CPU 和 GPU(使用 CUDA)版本中实现它们。 其中一些函数基于查找表。大多数表占用 4KB,其中一些占用更多。基于查找表的函数接受一个输入,选择查找表的一两个条目,
读入一个文件,内存被动态分配给一个字符串,文件内容将被放置在这里。这是在函数内部完成的,字符串作为 char **str 传递。 使用 gdb 我发现在行 **(str+i) = fgetc(aFil
我需要证实一个理论。我正在学习 JSP/Java。 在查看了一个现有的应用程序(我没有写)之后,我注意到一些我认为导致我们的性能问题的东西。或者至少是其中的一部分。 它是这样工作的: 1)用户打开搜索
n我想使用memoization缓存某些昂贵操作的结果,这样就不会一遍又一遍地计算它们。 两个memoise和 R.cache适合我的需要。但是,我发现缓存在调用之间并不可靠。 这是一个演示我看到的问
我目前正在分析一些 javascript shell 代码。这是该脚本中的一行: function having() { memory = memory; setTimeout("F0
我有一种情况,我想一次查询数据库,然后再将整个数据缓存在内存中。 我得到了内存中 Elasticsearch 的建议,我用谷歌搜索了它是什么,以及如何在自己的 spring boot 应用程序中实现它
我正在研究 Project Euler (http://projecteuler.net/problem=14) 的第 14 题。我正在尝试使用内存功能,以便将给定数字的序列长度保存为部分结果。我正在
所以,我一直在做 Java 内存/注意力游戏作业。我还没有达到我想要的程度,它只完成了一半,但我确实让 GUI 大部分工作了......直到我尝试向我的框架添加单选按钮。我认为问题可能是因为我将 JF
我一直在尝试使用 Flask-Cache 的 memoize 功能来仅返回 statusTS() 的缓存结果,除非在另一个请求中满足特定条件,然后删除缓存。 但它并没有被删除,并且 Jinja 模板仍
我对如何使用 & 运算符来减少内存感到非常困惑。 我可以回答下面的问题吗? clase C{ function B(&$a){ $this->a = &$a; $thi
在编写代码时,我遇到了一个有趣的问题。 我有一个 PersonPOJO,其 name 作为其 String 成员之一及其 getter 和 setter class PersonPOJO { priv
在此代码中 public class Base { int length, breadth, height; Base(int l, int b, int h) { l
Definition Structure padding is the process of aligning data members of the structure in accordance
在 JavaScript Ninja 的 secret 中,作者提出了以下方案,用于在没有闭包的情况下内存函数结果。他们通过利用函数是对象这一事实并在函数上定义一个属性来存储过去调用函数的结果来实现这
我正在尝试找出 map 消耗的 RAM 量。所以,我做了以下事情;- Map cr = crPair.collectAsMap(); // 200+ entries System.out.printl
我是一名优秀的程序员,十分优秀!