-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Crash when looping through RLMResults #6241
Comments
Can you reproduce it (perhaps unreliable)? How and where do you do that? How frequently does it happen? |
In my app I can reproduce it. I have a ViewController with a tableview that shows data I retrieve from a Realm. That viewcontroller is one of the first I show. When I navigate from that viewcontroller to another viewcontroller and navigate back than in the viewWillAppear I try to retrieve the data (again) that is the moment the crash appears. I can get the count from the RLMResults and ik gives me the correct number of objects, but the moment I enter the for loop it results in a crash. |
So you can reliably reproduce this - is it every single time? |
(Un)fortunately I can reliably reproduce this. It is on a device. |
Well, "if we can reproduce it we can fix it" :-). |
I second your first statement ;-) What is the best way to share? A zip over WeTransfer and a password via email? |
@MV-EricDeHaan You can create a private issue at support.realm.io and share the password there. Reference this github issue. @tgoyne Can you see anything obvious here? |
For internal reference to the app sent in to support: https://support.realm.io/a/tickets/4694. |
Goals
Looping through objects in RLMResults
Expected Results
Enumeration of realm objects
Actual Results
Sometimes it does enumerate but sometimes it crashes...
Steps to Reproduce
Code Sample
Version of Realm and Tooling
Realm framework version: 3.14.1
Realm Object Server version: ?
Xcode version: 10.3
iOS/OSX version: 12.3
Dependency manager + version: ?
The text was updated successfully, but these errors were encountered: