Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-1920

Crash when a query is destructed and unregistered from the database

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.8.0
    • 3.0
    • iOS
    • Security Level: Public
    • None
    • Jay 51, Jay 52, Jay 53
    • 3

    Description

      There are a few users reporting the same issue that they experience multiple crashes in the query when the query is released. All of them said that they don't close the database in their application either. Currently, they don't have reproducible steps and mostly the issue happens to their end-users.

      As this happens to multiple users, I think we should at least review the issue and code from our side.

      Issue: https://github.com/couchbase/couchbase-lite-ios/issues/2781

      Crash Log: https://pastebin.com/raw/dBwFGR4d

      Exception : EXC_BAD_ACCESS KERN_INVALID_ADDRESS

      Forum Post: https://forums.couchbase.com/t/c4error-code-2-ios-application-crash/29921/5

      Attachments

        1. bt-all.txt
          13 kB
        2. swift.zip
          32.50 MB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            pasin Pasin Suriyentrakorn created issue -
            pasin Pasin Suriyentrakorn made changes -
            Field Original Value New Value
            Description There are a few users reporting the same issue that they experience multiple crashes in the query when the query is released. All of them said that they don't close the database in their application either. Currently, they don't have reproducible steps and mostly the issue happens to their end-users.

            As this happens to multiple users, I think we should at least review the issue and code from our side.

            Issue: [https://github.com/couchbase/couchbase-lite-ios/issues/2781]

            Crash Log: [https://pastebin.com/raw/dBwFGR4d
            ]

            Exception : EXC_BAD_ACCESS KERN_INVALID_ADDRESS

            Forum Post: [https://forums.couchbase.com/t/c4error-code-2-ios-application-crash/29921/5]
            There are a few users reporting the same issue that they experience multiple crashes in the query when the query is released. All of them said that they don't close the database in their application either. Currently, they don't have reproducible steps and mostly the issue happens to their end-users.

            As this happens to multiple users, I think we should at least review the issue and code from our side.

            Issue: [https://github.com/couchbase/couchbase-lite-ios/issues/2781]

            Crash Log: [https://pastebin.com/raw/dBwFGR4d]

            Exception : EXC_BAD_ACCESS KERN_INVALID_ADDRESS

            Forum Post: [https://forums.couchbase.com/t/c4error-code-2-ios-application-crash/29921/5]
            Jayahari.Vavachan Jay Vavachan made changes -
            Attachment swift.zip [ 139548 ]
            Jayahari.Vavachan Jay Vavachan made changes -
            Attachment bt-all.txt [ 139581 ]
            Jayahari.Vavachan Jay Vavachan made changes -
            Link This issue relates to CBL-1898 [ CBL-1898 ]
            Jayahari.Vavachan Jay Vavachan made changes -
            Component/s iOS [ 15348 ]
            Jayahari.Vavachan Jay Vavachan made changes -
            Link This issue relates to CBL-1961 [ CBL-1961 ]
            Jayahari.Vavachan Jay Vavachan made changes -
            Link This issue relates to CBL-2012 [ CBL-2012 ]
            jimb Jim Borden made changes -
            Rank Ranked higher
            daniel.petersen Daniel Petersen made changes -
            Assignee The Lite [ cbgto ] Jay Vavachan [ jayahari.vavachan ]
            pasin Pasin Suriyentrakorn made changes -
            Component/s iOS [ 15348 ]
            daniel.petersen Daniel Petersen made changes -
            Story Points 3
            daniel.petersen Daniel Petersen made changes -
            Sprint Jay 51 [ 1687 ]
            daniel.petersen Daniel Petersen made changes -
            Rank Ranked lower
            Jayahari.Vavachan Jay Vavachan made changes -
            Component/s LiteCore [ 15347 ]
            Jayahari.Vavachan Jay Vavachan made changes -
            Resolution Not a Bug [ 10200 ]
            Status Open [ 1 ] Resolved [ 5 ]
            Jayahari.Vavachan Jay Vavachan made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            pasin Pasin Suriyentrakorn made changes -
            Resolution Not a Bug [ 10200 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            jimb Jim Borden made changes -
            Sprint Jay 51 [ 1687 ] Jay 51, Sandy 53 [ 1687, 1709 ]
            Jayahari.Vavachan Jay Vavachan made changes -
            Status Reopened [ 4 ] In Progress [ 3 ]
            daniel.petersen Daniel Petersen made changes -
            Sprint Jay 51, Jay 52 [ 1687, 1709 ] Jay 51, Jay 52, Sandy 54 [ 1687, 1709, 1730 ]
            Automated transition triggered when Jayahari Vavachan created pull request #2873 in GitHub -
            Status In Progress [ 3 ] In Review [ 10107 ]
            Jayahari.Vavachan Jay Vavachan made changes -
            Status In Review [ 10107 ] In Progress [ 3 ]
            Jayahari.Vavachan Jay Vavachan made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Resolved [ 5 ]
            Jayahari.Vavachan Jay Vavachan made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            Jayahari.Vavachan Jay Vavachan made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            Jayahari.Vavachan Jay Vavachan made changes -
            Affects Version/s 2.8.0 [ 16189 ]
            Affects Version/s Lithium [ 16190 ]
            Jayahari.Vavachan Jay Vavachan made changes -
            Issue Type Task [ 3 ] Bug [ 1 ]
            Jayahari.Vavachan Jay Vavachan made changes -
            Required Mobile Fields Mandatory:
             - CBL / SG Version:
               - SG Config:
             - Steps to Reproduce:
             - Actual Result:
             - Expected Result:
             - Logs :
                  SGW LOGS: sgcollect info
                  CBL LOGS:
                  Logcat LOGS: for Android tickets
             - Github link for the code:
             - Jenkins job failure link:
             - Pytest Command
             - What is the last build this test passed:
            Jayahari.Vavachan Jay Vavachan made changes -
            Resolution Fixed [ 1 ]
            Status Reopened [ 4 ] Resolved [ 5 ]
            Jayahari.Vavachan Jay Vavachan made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

            People

              Jayahari.Vavachan Jay Vavachan
              pasin Pasin Suriyentrakorn
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty