-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assertion failed: ndx < m_size with (ndx, m_size) = [0, 0] #7311
Comments
I just noticed that I am seeing two different assertions. This is the second one: /Users/rob/Library/Developer/Xcode/DerivedData/PROJ-apmilanlxdaqowehxscxlwtxrcbs/SourcePackages/checkouts/realm-core/src/realm/alloc.hpp:426: [realm-core-13.17.1] Assertion failed: v % 8 == 0 with (v) = [1347769685] Let me know if you'd like for me to create another issue with the relevant stack trace. I just thought it might help to show you that I see both assertions, and not one of them occurs more than the other. |
It is highly possible that you are experiencing a crash due to some corruption that we fixed in core 13.20.1.
And getting weird errors coming from the Array header, which usually means that you are reading some part of the file that is rubbish. |
How frequently does the bug occur?
Sometimes
Description
Expected:
Results.first
,Results.map
, andResults.count
can be called without crashing.Actual: All three crash when accessed.
NOTE: I am able to access the
realm
property on theResults
object without it crashing.Stacktrace & log output
The callstack here is triggered when a realm notification occurs on the observed results:
The above call stack is triggered by a write. Here is the call stack that triggers the observe block:
Can you reproduce the bug?
Sometimes
Reproduction Steps
Unfortunately, our app is so complex that I couldn't even tell you how to reproduce it.
Version
10.42.0
What Atlas Services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
iPhone 14 Pro (physical) iOS 16.6, iPhone 14 Pro (simulator) iOS 16.4
Build environment
Xcode version: 14.3.1
Dependency manager and version: Swift Package Manager
The text was updated successfully, but these errors were encountered: