-
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
There is a problem using the filtering function. #7643
Comments
When the above code is deleted, it runs normally! Only that code has a problem. |
HI @sozohoy |
@sozohoy do you have custom functions for sorting as well? Your filter function looks like it might be calling itself, which could be a problem. |
There is currently no sorting functions. I didn't write it separately because an error occurred. |
What I am curious about is that if I call readMyDb[0].example |
I tested it in another project and it works there. There seems to be a problem with a project I'm working on. |
@sozohoy ok, first of all you are adding Realm via Podfile and Swift Package Manager at once. Please stick to a single source. |
@pavel-ship-it I didn't understand the first thing you said. I took all the parts where the error appears, is this what you want? |
@pavel-ship-it |
|
@pavel-ship-it Here it is!
|
Hi @sozohoy, I took a look at your code for your app. Just a few pointers:
let searchText = "foo"
let testDB = realm.objects(testCourseData.self).filter("someStringProperty == '\(searchText)'") |
I am also seeing something similar. The app crashes when running count on a filtered list. Only happens for some users here, not all. |
@sipersso can you attach the stack traces from this crashes? |
@sozohoy did you find the above response helpful?, are you still getting this error, or you were able to solve this? |
@dianaafanador3 in my case, I could trace it back to a corrupted realm file caused by bugs in the 10.22.0 realm version. It is the same issue as this one #7703 |
Closing this as there is no response from the owner of this issue. @sozohoy if you still having issues, reopen this issue again. |
First of all, I'm Korean, so please understand that I can use wrong English.
The function I want to do is the process of filtering the lecture data in the database, and I want to get the total number of data in the database.
However, I tried to proceed as in the official documentation, but it didn't work.
What should I do?
The code below is the code to load data.
func readData(){
The code below is an error code. What should I do? I hope you take into account that I am a beginner. thank you.
The text was updated successfully, but these errors were encountered: