ccgus / fmdb

A Cocoa / Objective-C wrapper around SQLite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Application getting crashed on FMDB: -[FMResultSet nextWithError:] + 48

pradipaub36 opened this issue · comments

Our users are facing the app crash issue on the production app while they try to open the app.
I use the latest version of FMDB / FTS in my project to handle the local database operations.

What we do while opening the app is:

  1. Read data from the local database using FMDB on the app starts
  2. Writes data to HealthApp

Application is getting crashed while reading data from the local database as per Apple crash reports!
FMDB
Screenshot 2022-06-08 at 1 42 44 PM
Screenshot 2022-06-08 at 1 43 06 PM

We have integrated the Firebase Crashlytics but we didn't receive this crash there hence I don't have the Stack trace report for the same.

We did several tries to reproduce the issue on our end but we couldn't get success.

Any help would be appreciated!

commented

All threads should be using the same database queue. It looks like your main thread is using a result set that was possibly made on another thread? That's a bad idea, and will lead to crashes.