-
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
App crash #8065
Comments
Hi @FreestyleRR Can you please provide a sample project with a reproduction of the crashes. |
same crash in our project:
func called to delete:
|
I'm not sure but maybe I found why app crashed. When I deleting some data I called like that:
|
using method Realm.write you don't need to commit , there already exist |
I managed to reproduce one of the crashes. |
@FreestyleRR your last screenshot seems unrelated to the others stack traces. Are you using any library which does some method/class runtime manipulation, like Regarding the other two screenshots.
And instead of doing a write for every object, try to do this in a batch, this will make the write faster and the commit for all objects will happen at the same time. If you use a reference in a Lastly check if the object is invalidated before rendering it on the view, if you want to use an object as a reference and you don't know if it will get invalidated. |
Have similar crash report, but can't reproduce. |
Hi! Same is happening to us. Any news on that?
EDIT: This happens when we try to delete some objects:
We're using the latest version, Realm (10.37.0). |
Hi @papfonseca can you please attach how are you getting the events to delete, specifically the implementation of |
@FreestyleRR did you try the suggestions from my comment above?. Any updates on this issues after updating to our latest version? |
@dianaafanador3 the last answer from this thread helped me - #8177 |
Closing this as this seems to be related to the use of another library |
Here it is:
Unfortunately We couldn't reproduce it. When this happens, the app is always crashing.
It looks like something get corrupted in the EDIT: I'll try the FreestyleRR suggestion. |
How frequently does the bug occur?
Sometimes
Description
When the application opens, a request is sent to the server, when it returns data, we delete the old ones from the database and immediately write new data, and I think at this moment several users crash.
Stacktrace & log output
First it delete object
Second it add object
Can you reproduce the bug?
Not yet
Reproduction Steps
I can't
Version
all(now using - 10.32.3)
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
iOS 16.0.2, 16.1.2 and other iOS versions
Build environment
Xcode version: ... 14.0
Dependency manager and version: ...
The text was updated successfully, but these errors were encountered: