Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-9823

App crashes due to a cursor not being closed correctly in ContacsAccessor SDK5

VotersStop watchingWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Sometimes the app would crash with the following error:
      android.database.CursorWindowAllocationException: Cursor window could not be created from binder
      The stacktrace points to ContactAccessorSdk5.java:910

      According to this StackOverflow thread this is due to a cursor not being closed correctly. Indeed, if photoCursor.moveToFirst() returns true, photoCursor.close() was never called.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            vladimir.kotikov Vladimir Kotikov
            vladimir.kotikov Vladimir Kotikov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment