-
Notifications
You must be signed in to change notification settings - Fork 135
iOS Query Builder Crash #724
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
Comments
Thanks for reporting. As I noted in the other issue, the symbolicated stack trace is likely not correct for the First, I recommend to make sure that your project can upgrade to the latest ObjectBox Dart packages (yours appears to be stuck on 4.0.3, the latest available version is 4.2.0, But thanks for sharing the crash log, at least we now know this is happening during building a query. Do you see any pattern on which devices are affected, like model, iOS version? Edit: for our reference, this is internal issue |
@GabrielAraujo Thanks! In that case, can you share more about where the query builder code is used (maybe also compared to the other entities)? The log shows There have been similar issues to this which I think are rooted in the fact that the ObjectBox database is a native component that exists outside of all Dart isolates. Somehow the database gets closed, then causing a crash when trying to use it from Dart. |
So those queries run every 30 seconds or so to fetch locally models that haven't synced yet to the remote servers. Once the changes sync we update the models locally setting this This isolate is spawned at app startup and only closes when app is closed. Not related Note: We've done this migration because we were having some overhead with isolate spawn when using async objectbox operations directly and in some use cases using the sync one with large lists were causing UI jank. |
Description
App is crashing when trying to build a Boolean query condition on iOS. The crash happens on the the C/C++ layer so I couldn't investigate more.
According to this comment on another thread the method
obx_dart_query_find_ptr
was supposed to be of internal usage only?Could you help? This is affecting a portion of our crash free user rate and damaging the company reputation.
Is there an existing issue?
Build info
Steps to reproduce
I couldn't reproduce this issue myself but it is happening on a portion of our production users.
Expected behavior
To not crash when building query condition
Actual behavior
App crashes
Code
Code
Entity
Failing Query
Logs, stack traces
Logs
ObjectBox deps
Crash
Thread
The text was updated successfully, but these errors were encountered: