• android开发之数据库游标未关闭导致


    replacements=[Ljava.lang.String;@4192fea8
    HARDWARE=hw7d501l
    matchers=[Ljava.lang.String;@4192fe28
    RADIO=unknown
    HOST=screen2
    HIDE_PRODUCT_INFO=false
    TAGS=release-keys
    ID=HuaweiMediaPad
    MIN_VERSION_LENGTH=8
    MANUFACTURER=HUAWEI
    TYPE=user
    TAG=Build
    TIME=1423803110000
    FINGERPRINT=Huawei/MediaPad/hw7d501l:4.4.2/HuaweiMediaPad/7D503LV1R2C208B011:user/release-keys
    UNKNOWN=unknown
    BOARD=BalongV9R1
    VERSION_MAX_SIZE=30
    PRODUCT=MediaPad
    DISPLAY=7D-503LV100R002C208B011
    USER=jslave
    DEVICE=hw7d501l
    MODEL=X1 7.0
    BOOTLOADER=unknown
    CPU_ABI=armeabi-v7a
    CPU_ABI2=armeabi
    IS_DEBUGGABLE=false
    SERIAL=T7K6R15210003815
    BRAND=Huawei
    java.lang.RuntimeException: createWindowSurface failed EGL_BAD_ALLOC
    at android.view.HardwareRenderer$GlRenderer.createSurface(HardwareRenderer.java:1370)
    at android.view.HardwareRenderer$GlRenderer.createEglSurface(HardwareRenderer.java:1262)
    at android.view.HardwareRenderer$GlRenderer.initialize(HardwareRenderer.java:1079)
    at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1621)
    at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1053)
    at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5959)
    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:780)
    at android.view.Choreographer.doCallbacks(Choreographer.java:593)
    at android.view.Choreographer.doFrame(Choreographer.java:562)
    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:766)
    at android.os.Handler.handleCallback(Handler.java:733)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5356)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:680)
    at dalvik.system.NativeStart.main(Native Method)

    android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed. # Open Cursors=503 (# cursors opened by this proc=503)

    这个问题导致的原因是可能在你的项目中使用循环开启游标没有关闭。

  • 相关阅读:
    Leetcode100.相同的树
    Leetcode53. 最大子序列和
    Leetcode35. 搜索插入位置
    Leetcode27.移除元素
    Leetcode 26. 删除排序数组中的重复项
    Leetcode. 1290 二进制链表转整数
    Leetcode.234 回文链表
    Leetcode206.反转链表
    课本 求素数
    循环法求素数 1306 循环求素数10.1.5.253 ====== 1313 筛选法求素数10.1.5.253
  • 原文地址:https://www.cnblogs.com/royi123/p/5345337.html
Copyright © 2020-2023  润新知