-
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 issue: No object with key 'xxx' in 'class_xxx' #8000
Comments
@woohyuknrg Are you able to provide a full stack trace for any of the 3 crashes? |
1st crash: |
2 other crashes: Missing stacktrace: |
@ericjordanmossman We get realm file from user's device,here's the video link open with Realm Studio: https://share.getcloudapp.com/5zuPREyr You can notice that when I scroll to the last records of 'OrderPayment', it shows "No object with key '1441824' in 'class_GuestPayment'", similar to App crash report. Then I check GuestPayment, the last a few records' identifier property value are strange. I set identifier = UUID().uuidString.replacingOccurrences(of: "-", with: ""), but last records' identifier aren't the value I expect. I think something broken when store data to realm. This impact our app seriously. Hope to fix this issue soon. Thank you very much! |
@finnschiermer @jedelbo can you have any input on the potential cause of this issue? |
Maybe something related to device low memory? |
@woohyuknrg Would it be possible for you to share the erroneous file with us? You can send it to realm-help@mongodb.com. |
@jedelbo I have sent the file to your email |
The file is clearly corrupted. This could be fixed by realm/realm-core#5993. Be aware that the fix will not fix already corrupted files, but hopefully prevent creating corrupted files in the future. |
When will the fixed version be released? |
The fix is included in v10.33.0 that was released last week. |
How frequently does the bug occur?
Sometimes
Description
Our app crash 3 times in succession on the same device.
1st crash, call realm.refresh() throws: RLMException · No object with key '1310798' in 'class_PosModule'
2nd and 3rd crash: realm::KeyNotFound · No object with key '0' in 'class_Holiday'
Stacktrace & log output
Can you reproduce the bug?
Not yet
Reproduction Steps
No response
Version
10.30.0
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
iOS 15.3.1
Build environment
Xcode version: 13.4
Dependency manager and version: cocoapods-1.11.3
The text was updated successfully, but these errors were encountered: