You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, my application used to use two realm files, one encrypted in the main application, one in the shared folder because previously it was not possible to use an encrypted database in the shared folder. Several releases ago, support for encrypted database in a shared folder was added to Realm, so I rewrote the application to work with one encrypted realm file, which stored in shared folder. The application database has many models and a large amount of data, there are constant writes/reads and multiple observers + frequent read/write from Push Extension. I didn't notice any crashes until I submitted the branch for beta testing, but now we have 100 crashes from 4 users in 30 days. Unfortunately, as usual, I can't reproduce this crash with the Xcode connected and I don't understand what is causing it. Apart from the transition to storing the realm file in another place, there were no changes, the development branch is stable and doesn't have these crashes.
OFFTOP: sometimes the error does not contain a stack trace, but just looks like this:
Fatal Exception: realm::util::DecryptionFailed
Decryption failed: 'unable to decrypt after 0 seconds (retry_count=0, from=i != bytes_read, size=16384)'
Most often crashes when returning to the application or when starting after app termination. Accroding to breadcrumbs the crash does not happen immediately, but after the screen with the UITable based on RLMNotificationToken
Version
14.5.2
What Atlas Services are you using?
Local Database only
Are you using encryption?
Yes
Platform OS and version(s)
ios 17, ios 18
Build environment
Xcode version: 15.3
Dependency manager and version: SPM
The text was updated successfully, but these errors were encountered:
How frequently does the bug occur?
Always
Description
Hello, my application used to use two realm files, one encrypted in the main application, one in the shared folder because previously it was not possible to use an encrypted database in the shared folder. Several releases ago, support for encrypted database in a shared folder was added to Realm, so I rewrote the application to work with one encrypted realm file, which stored in shared folder. The application database has many models and a large amount of data, there are constant writes/reads and multiple observers + frequent read/write from Push Extension. I didn't notice any crashes until I submitted the branch for beta testing, but now we have 100 crashes from 4 users in 30 days. Unfortunately, as usual, I can't reproduce this crash with the Xcode connected and I don't understand what is causing it. Apart from the transition to storing the realm file in another place, there were no changes, the development branch is stable and doesn't have these crashes.
OFFTOP: sometimes the error does not contain a stack trace, but just looks like this:
Stacktrace & log output
Can you reproduce the bug?
No
Reproduction Steps
Most often crashes when returning to the application or when starting after app termination. Accroding to breadcrumbs the crash does not happen immediately, but after the screen with the UITable based on RLMNotificationToken
Version
14.5.2
What Atlas Services are you using?
Local Database only
Are you using encryption?
Yes
Platform OS and version(s)
ios 17, ios 18
Build environment
Xcode version: 15.3
Dependency manager and version: SPM
The text was updated successfully, but these errors were encountered: