Comments (5)
➤ PM Bot commented:
Jira ticket: RCOCOA-2337
from realm-swift.
The code:
let messagesList = getRealm(for: Message.self).objects(Message.self).filter(predicate) //get messages from realm db
if notificationToken == nil {
notificationToken = messagesList.observe(keyPaths: [\Message.isRead]) { [weak self] (changes: RealmCollectionChange) in
switch changes {
case .initial:
print("[notificationToken] initial")
case .update(let results, _, _, _):
print("[notificationToken] update")
let count = results.count // **_Crash here!!!_**
updateUI(count)
case .error(let error):
print("[notificationToken] error")
}
}
}
deinit {
notificationToken?.invalidate()
notificationToken = nil
}
from realm-swift.
Do you think you can extract a minimal repro that we can use to investigate? There's nothing obviously wrong with your code or the calls mentioned in the stacktrace, so it's not clear what could be causing the crash. If we had a repro we could debug, that would go a long way to fixing it.
from realm-swift.
Can you include the code for this getRealm(for: Message.self)
?
Is this a local or sync'd realm
Are you using any kind of threading, await/async or @Actor?
from realm-swift.
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
from realm-swift.
Related Issues (20)
- Crash ITMS-90863: Macs with Apple silicon support issue HOT 9
- skipping cache due to an error: https://github.com/realm/realm-swift: The repository could not be found. Make sure a valid repository exists at the specified location and try again. HOT 3
- Error loading RealmSwift dynamic framework in macOS app HOT 6
- SDKs should not consume stitch_ prefixed fields HOT 1
- v10.49.3 crashing when Embed & Signing a RealmSwift that is not the main target HOT 2
- terminating due to uncaught exception of type realm::util::DecryptionFailed: Decryption failed: 'unable to decrypt after 0 seconds (retry_count=2, from=iv1 == 0, size=16384) HOT 2
- Realm Swift 10.50.0 fails to build HOT 5
- Terminating app due to uncaught exception 'RLMException', reason: 'Attempting to modify object outside of a write transaction - call begin Write Transaction on an RLMRealm instance first HOT 1
- Realm 10.50.0 Cocoapods compile warning HOT 6
- Xcode15 Realm crash HOT 2
- Version 10.47.0 AppStore Connect issues: ITMS-91065: Missing signature HOT 11
- Database has an unsupported version (24) and cannot be upgraded. HOT 10
- 'RealmSwiftObject' is not a member type of struct 'RealmSwift.Realm' HOT 2
- Install statically via SPM HOT 8
- Symbol not found: (_objc_claimAutoreleasedReturnValue) HOT 2
- Realm doesn't build when using Swift on Linux HOT 3
- Realm doesn't build when using Swift on Windows HOT 3
- Partition based Sync not supported in new Apps HOT 5
- Update packaging for Xcode 15.4 HOT 4
- AsyncOpen progress does not reflect the bootstrap change sets HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from realm-swift.