zoukankan      html  css  js  c++  java
  • 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)

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

  • 相关阅读:
    网络编程最佳实践一
    【NYOJ】[599]奋斗的小蜗牛
    【NYOJ】[599]奋斗的小蜗牛
    【NYOJ】[477]A+B Problem III
    【NYOJ】[477]A+B Problem III
    【NYOJ】[811]变态最大值
    【NYOJ】[811]变态最大值
    【POJ】[1417]True Liars
    【POJ】[1417]True Liars
    【杭电】[3038]How Many Answers Are Wrong
  • 原文地址:https://www.cnblogs.com/royi123/p/5345337.html
Copyright © 2011-2022 走看看