realm / realm-java

Realm is a mobile database: a replacement for SQLite & ORMs
http://realm.io
Apache License 2.0
11.45k stars 1.75k forks source link

Error when deleting RealmObject: Key not found #7710

Closed hamzaozturk closed 1 year ago

hamzaozturk commented 1 year ago

How frequently does the bug occur?

All the time

Description

Trying to delete all data using realm.deleteAll() but getting error.

Stacktrace & log output

libc++abi: terminating with uncaught exception of type realm::KeyNotFound: No object with key '0' in 'class_Broadcast'
dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib:/usr/lib/libMTLCapture.dylib
terminating with uncaught exception of type realm::KeyNotFound: No object with key '0' in 'class_Broadcast'


### Can you reproduce the bug?

Yes, always

### Reproduction Steps

_No response_

### Version

10.28.3

### What SDK flavour are you using?

Local Database only

### Are you using encryption?

No, not using encryption

### Platform OS and version(s)

iOS

### Build environment

Xcode: 13.4.1
iOS: 15.6